function vacuum($f, $sj = '') { $f = https($f); $f = http($f); $f = utmsrc($f); $reb = vaccum_ses($f); if (!$reb) { $_SESSION['vacuum'][nohttp($f)] = ''; return array('nothing'); } if ($_POST['see']) { eco($reb, 1); } $enc = embed_detect(strtolower($reb), 'charset=', '"'); if (!$enc) { $enc = mb_detect_encoding($reb); } list($defid, $defs) = verif_defcon($f); //defcons if (!$defs) { $defs = known_defcon($reb); } if (!$defs) { $defs = recognize_defcon($reb); } $auv = auto_video($f, 'pop'); if (!$defs && !$auv) { add_defcon($f); return array('Title', $f, $f, '', '', ''); } if (strtolower($enc) == 'utf-8' or $_POST['utf'] or $defs[5]) { $reb = utf8_decode_b($reb); } if ($defs[2]) { if (!$defs[3]) { $suj = embed_detect_c($reb, $defs[2]); } elseif ($defs[3]) { $suj = embed_detect($reb, $defs[2], $defs[3]); } $suj = trim(del_n($suj)); $suj = interpret_html($suj, "ok"); } if ($defs[0]) { if (!$defs[1]) { $rec = embed_detect_c($reb, $defs[0]); } elseif ($defs[1]) { $rec = embed_detect($reb, $defs[0], $defs[1]); } } else { $rec = embed_detect_c($reb, '<body'); } if ($defs[8]) { if (!$defs[9]) { $opt = embed_detect_c($reb, $defs[8]); } elseif ($defs[9]) { $opt = embed_detect($reb, $defs[8], $defs[9]); } if ($opt) { $opt .= br() . br(); } } if ($defs[4] && $defs[4] != 1) { if (strpos($reb, $defs[4]) !== false) { $end = embed_detect_c($reb, $defs[4]); } if ($end) { $end = br() . br() . $end; } } if ($auv) { $ret = $auv; } elseif (strpos($f, 'twitter.com')) { //twit list($suj, $ret, $day) = plugin_func('twit', 'twit_vacuum', $f); } else { $ret = converthtml($opt . $rec . $end); } //foot if ($suj) { $title = clean_title($suj); } else { $title = clean_internaltag(pre_clean($sj ? $sj : 'Title')); } if ($defs[6]) { $ret = post_treat_batch($ret, $title, $defs[6]); } //post_treat if ($_SESSION['sugm']) { $sug = sugnote(); } if (!$auv) { $ret .= "\n\n" . $sug . '[' . $f . ']'; } //eco($rec,1); return array($title, $ret, $rec, $defid, $defs); }
function findefs($f) { req('tri'); $reb = vaccum_ses($f); //list($defid,$r)=verif_defcon($f); if (!$r) { $r = recognize_defcon($reb); } if (!$r) { $r = known_defcon($reb); } foreach ($r as $v) { $ret .= inp('', htmlentities($v)) . br(); } return $ret; }