File Information Table"; $deadlinks = ""; $snapshot = ""; $myfe = "myf="; $rtitle = "File Functionality"; $flh = ""; $omyh1stuff = ""; $fnameis = ""; $lnameis = ""; $pnameis = ""; $undefined = " "; $urlsuffix = ""; $urllist = ""; $statuslist = ""; $linelist = ""; $collist = ""; $askwhentwo = ""; $outrepis = ""; $zipcnt = 0; if (isset($_GET['myf'])) { $huhis = explode("strong>", $_GET['myf']); if (sizeof($huhis) >= 3) $undefined = str_replace("", " ", " " . $huhis[1]); } else if (isset($_POST['myf'])) { if ($_POST['myf'] != "") $undefined = " " . $_POST['myf'] . " "; } if (isset($_GET['deadlinks'])) { $urlsuffix = "?deadlinks=" . urlencode(urldecode($_GET['deadlinks'])); $omyh1stuff = " mh(); "; //" omyh1=document.getElementById('myh1'); if (omyh1.innerHTML.indexOf(' Please wait ') == -1) { omyh1.innerHTML = omyh1.innerHTML + ' ... Please wait while we analyze your URLs ... '; } "; $title = "Dead Links via File of Absolute URLs Report"; $deadlinks = "y"; $myfe = "deadlinks=Report%20list%20of%20dead%20links%20of%20file%20of%20URLs&myf="; if ($_GET['deadlinks'] == "") { $mode = "Report list of dead links of file of Absolute URLs"; } else { $mode = urldecode($_GET['deadlinks']); } } else if (isset($_POST['deadlinks'])) { $urlsuffix = "?deadlinks=" . urlencode(urldecode($_POST['deadlinks'])); $omyh1stuff = " mh(); "; //" omyh1=document.getElementById('myh1'); if (omyh1.innerHTML.indexOf(' Please wait ') == -1) { omyh1.innerHTML = omyh1.innerHTML + ' ... Please wait while we analyze your URLs ... '; } "; $title = "Dead Links via File of Absolute URLs Report"; $deadlinks = "y"; $myfe = "deadlinks=Report%20list%20of%20dead%20links%20of%20file%20of%20URLs&myf="; if ($_POST['deadlinks'] == "") { $mode = "Report list of dead links of file of Absolute URLs"; } else { $mode = urldecode($_POST['deadlinks']); } } else if (isset($_GET['differences'])) { $askwhentwo = " "; //if (bigj == 1) { alert(881); document.getElementById(\"f1name\").value = ininf; } else if (bigj == 2) { alert(888); document.getElementById(\"f2name\").value = ininf; document.getElementById(\"ddiff\").style.display=\"block\"; document.getElementById(\"btwo\").click(); } "; $urlsuffix = "?differences=" . urlencode(urldecode($_GET['differences'])); $omyh1stuff = " mh(); "; //" omyh1=document.getElementById('myh1'); if (omyh1.innerHTML.indexOf(' Please wait ') == -1) { omyh1.innerHTML = omyh1.innerHTML + ' ... Please wait while we analyze your URLs ... '; } "; $title = "File Differences Table"; $deadlinks = "n"; $myfe = "differences=Report%20list%20of%20file%20differences%20of%20file%20list&myf="; if ($_GET['differences'] == "") { $mode = "Report list of file differences of file list"; } else { $mode = urldecode($_GET['differences']); } $outrepis = diffask(); } else if (isset($_POST['differences'])) { $askwhentwo = " "; //if (bigj == 1) { alert(882); document.getElementById(\"f1name\").value = ininf; } else if (bigj == 2) { alert(887); document.getElementById(\"f2name\").value = ininf; document.getElementById(\"ddiff\").style.display=\"block\"; document.getElementById(\"btwo\").click(); } "; $urlsuffix = "?deadlinks=" . urlencode(urldecode($_POST['differences'])); $omyh1stuff = " mh(); "; //" omyh1=document.getElementById('myh1'); if (omyh1.innerHTML.indexOf(' Please wait ') == -1) { omyh1.innerHTML = omyh1.innerHTML + ' ... Please wait while we analyze your URLs ... '; } "; $title = "File Differences Table"; $deadlinks = "n"; $myfe = "differences=Report%20list%20of%20file%20differences%20of%20file%20list&myf="; if ($_POST['differences'] == "") { $mode = "Report list of file differences of file list"; } else { $mode = urldecode($_POST['differences']); } $outrepis = diffask(); } else if (isset($_GET['zipfile'])) { if (isset($_GET['fnum'])) { $zipf = zipfile(); if ($zipf != "") { if (file_exists($zipf)) { $zipfs = explode("/", $zipf); $myext = $zipfs[sizeof($zipfs) - 1]; $mydir = str_replace("/" . $myext, "/", $zipf); echo "
"; } } if ($_GET['fnum'] != 0) exit; } else if (isset($_POST['dir']) && isset($_POST['ext'])) { if (strpos($_POST['dir'], "/tmp/zips/") !== false) { header('Content-Type: application/zip'); header('Content-Disposition: inline; filename=' . $_POST['ext']) ; //header("Content-Length: ". filesize($_POST['dir'] . $_POST['ext'])); echo file_get_contents($_POST['dir'] . $_POST['ext']); } } $sword = 'Zip'; $askwhentwo = " "; //if (bigj == 1) { alert(881); document.getElementById(\"f1name\").value = ininf; } else if (bigj == 2) { alert(888); document.getElementById(\"f2name\").value = ininf; document.getElementById(\"ddiff\").style.display=\"block\"; document.getElementById(\"btwo\").click(); } "; $urlsuffix = "?zipfile=" . urlencode(urldecode($_GET['zipfile'])); $omyh1stuff = " mh(); "; //" omyh1=document.getElementById('myh1'); if (omyh1.innerHTML.indexOf(' Please wait ') == -1) { omyh1.innerHTML = omyh1.innerHTML + ' ... Please wait while we analyze your URLs ... '; } "; $title = "Zipfile Information Table"; $deadlinks = "no"; $myfe = "zipfile=Report%20list%20of%20zipped%20up%20files&myf="; if ($_GET['zipfile'] == "") { $mode = "Zip up file"; } else { $mode = urldecode($_GET['zipfile']); } } else if (isset($_POST['zipfile'])) { if (isset($_GET['fnum'])) { $zipf = zipfile(); if ($zipf != "") { if (file_exists($zipf)) { $zipfs = explode("/", $zipf); $myext = $zipfs[sizeof($zipfs) - 1]; $mydir = str_replace("/" . $myext, "/", $zipf); echo ""; } } if ($_GET['fnum'] != 0) exit; } else if (isset($_POST['dir']) && isset($_POST['ext'])) { if (strpos($_POST['dir'], "/tmp/zips/") !== false) { header('Content-Type: application/zip'); header('Content-Disposition: inline; filename=' . $_POST['ext']) ; //header("Content-Length: ". filesize($_POST['dir'] . $_POST['ext'])); echo file_get_contents($_POST['dir'] . $_POST['ext']); } } $sword = 'Zip'; $askwhentwo = " "; //if (bigj == 1) { alert(882); document.getElementById(\"f1name\").value = ininf; } else if (bigj == 2) { alert(887); document.getElementById(\"f2name\").value = ininf; document.getElementById(\"ddiff\").style.display=\"block\"; document.getElementById(\"btwo\").click(); } "; $urlsuffix = "?zipfile=" . urlencode(urldecode($_POST['zipfile'])); $omyh1stuff = " mh(); "; //" omyh1=document.getElementById('myh1'); if (omyh1.innerHTML.indexOf(' Please wait ') == -1) { omyh1.innerHTML = omyh1.innerHTML + ' ... Please wait while we analyze your URLs ... '; } "; $title = "Zipfile Information Table"; $deadlinks = "no"; $myfe = "zipfile=Report%20list%20of%20zipped%20up%20files&myf="; if ($_POST['zipfile'] == "") { $mode = "Report list of zipped up files"; } else { $mode = urldecode($_POST['zipfile']); } //$outrepis = diffask(); } $youthtml = ""; function zipfile() { $backidea = ""; $ks = explode(";", $_GET['fnum']); $k = $ks[sizeof($ks) - 1]; try { exec('mkdir /tmp/zips'); } catch (Exception $qw) { } try { exec('mkdir /tmp/zips/' . str_replace(".", "_", str_replace(":", "_", $_SERVER['REMOTE_ADDR']))); } catch (Exception $qwq) { } if ($k > 0) { if (sizeof($ks) > 1) { if (!file_exists('/tmp/zips/' . str_replace(".", "_", str_replace(":", "_", $_SERVER['REMOTE_ADDR'])) . '/' . basename($ks[0]))) { //$uriPhp = 'data://' . substr($_POST['z' . $k . 'data'], 5); //$binary = file_get_contents($uriPhp); // Strip the crud from the front of the string [1] if (1 == 2 && isset($_FILES['z' . $k . 'data'])) { file_put_contents('/tmp/zips/' . str_replace(".", "_", str_replace(":", "_", $_SERVER['REMOTE_ADDR'])) . '/' . basename($ks[0]), file_get_contents($_FILES['z' . $k . 'data']['tmp_name'])); } else { file_put_contents('/tmp/zips/' . str_replace(".", "_", str_replace(":", "_", $_SERVER['REMOTE_ADDR'])) . '/' . basename($ks[0]), file_get_contents($_POST['z' . $k . 'data'])); //$stuffs = explode(",", $_POST['z' . $k . 'data']); //$encodeString = substr($_POST['z' . $k . 'data'],strpos($_POST['z' . $k . 'data'],",")+1); //$encodeString = str_replace(' ', '+', $encodeString); //$decoded = base64_decode($encodedString); //file_put_contents('/tmp/zips/' . str_replace(".", "_", str_replace(":", "_", $_SERVER['REMOTE_ADDR'])) . '/' . basename($ks[0]), $decoded); } } } else if (isset($_POST['z' . $k . 'name']) && $_POST['z' . $k . 'name'] != "") { if (!file_exists('/tmp/zips/' . str_replace(".", "_", str_replace(":", "_", $_SERVER['REMOTE_ADDR'])) . '/' . basename($_POST['z' . $k . 'name']))) { //$uriPhp = 'data://' . substr($_POST['z' . $k . 'data'], 5); //$binary = file_get_contents($uriPhp); file_put_contents('/tmp/zips/' . str_replace(".", "_", str_replace(":", "_", $_SERVER['REMOTE_ADDR'])) . '/' . basename($ks[0]), file_get_contents($_POST['z' . $k . 'data'])); //$stuffs = explode(",", $_POST['z' . $k . 'data']); //$encodeString = substr($_POST['z' . $k . 'data'],strpos($_POST['z' . $k . 'data'],",")+1); //$encodeString = str_replace(' ', '+', $encodeString); //$decoded = base64_decode($encodedString); //file_put_contents('/tmp/zips/x.x', file_get_contents('/tmp/zips/x.x') . "\nfile=" . basename($_POST['z' . $k . 'name'])); //file_put_contents('/tmp/zips/' . str_replace(".", "_", str_replace(":", "_", $_SERVER['REMOTE_ADDR'])) . '/' . basename($_POST['z' . $k . 'name']), $decoded); } } else if (isset($_FILES['z' . $k . 'name'])) { if (!file_exists('/tmp/zips/' . str_replace(".", "_", str_replace(":", "_", $_SERVER['REMOTE_ADDR'])) . '/' . basename($_POST['z' . $k . 'name']))) { file_put_contents('/tmp/zips/' . str_replace(".", "_", str_replace(":", "_", $_SERVER['REMOTE_ADDR'])) . '/' . basename($ks[0]), file_get_contents($_FILES['z' . $k . 'data']['tmp_name'])); } } else { //file_put_contents('/tmp/zips/x.x', file_get_contents('/tmp/zips/x.x') . "\ncmd=" . 'zip -mrjT /tmp/zips/' . str_replace(".", "_", str_replace(":", "_", $_SERVER['REMOTE_ADDR'])) . '_' . basename($_GET['zname']) . ' /tmp/zips/' . str_replace(".", "_", str_replace(":", "_", $_SERVER['REMOTE_ADDR'])) . '/*'); $backidea = '/tmp/zips/' . str_replace(".", "_", str_replace(":", "_", $_SERVER['REMOTE_ADDR'])) . '_' . basename($_GET['zname']); exec('zip -mrjT /tmp/zips/' . str_replace(".", "_", str_replace(":", "_", $_SERVER['REMOTE_ADDR'])) . '_' . basename($_GET['zname']) . ' /tmp/zips/' . str_replace(".", "_", str_replace(":", "_", $_SERVER['REMOTE_ADDR'])) . '/*'); } } return $backidea; } function diffask() { $ourrepis = ""; if (isset($_POST['f1data'])) { exec(' mkdir /tmp/diffs'); file_put_contents("/tmp/diffs/" . basename($_POST['f1name']), $_POST['f1data']); $ffile = "/tmp/diffs/" . basename($_POST['f1name']); if ($_POST['f2data'] == "") { $ourrepis = "Filename " . $_POST['f1name'] . " on its lonesome but you'll be pleased to know it does not have a split personality.
"; } else { $ssdir = "diffs/"; file_put_contents("/tmp/" . $ssdir . basename($_POST['f2name']), $_POST['f2data']); exec(' diff "' . $ffile . '" "/tmp/' . $ssdir . basename($_POST['f2name']) . '" > /tmp/diffs/xd.xd '); //$ourrepis = "Filename " . $_POST['f1name'] . " differs from filename " . $_POST['f2name'] . " as below:" . $ine . "
"; } function prelook($xinfl) { global $fnameis; global $lnameis; global $pnameis; global $undefined; $outinfl = $xinfl; $fnameis = ""; if (strpos($xinfl, "http(") !== false || strpos($xinfl, "HTTP(") !== false) { $zxinfl = explode(")", substr($xinfl, 5)); $hbit = "(" . $zxinfl[0] . ")"; $outinfl = str_replace($hbit, "", $outinfl); $fnameis = str_replace(" undefined ", $undefined, str_replace("(", " in ", str_replace(")", "", str_replace("|", " on line ", str_replace("@", " at column ", $hbit))))); } return $outinfl; } function pluck($sdelim, $pstr, $bstr, $edelim, $ourln, $ourcp) { global $urllist, $statuslist, $linelist, $collist, $fnameis; if ($sdelim == "=") { if (strpos($bstr, "'") !== false && strpos($bstr, '"') !== false) { if (strpos($bstr, "'") < strpos($bstr, '"')) { $sdelim = "'"; } else { $sdelim = '"'; } } } if ($sdelim == "") { $preturl = explode($edelim, $bstr); $pturl = explode("<", $preturl[0]); $turl = explode(chr(92), $pturl[0]); } else { $preturl = explode($sdelim, $bstr); $pturl = explode("<", $preturl[0]); $turl = explode(chr(92), $pturl[0]); } $endl = ""; if (strpos(substr(trim($pstr . $turl[0]), 8), "/") === false) $turl[0] = trim($turl[0]) . "/"; $urllist .= $pstr . $turl[0] . "Please wait while we analyze your URLs ...
Please wait while we analyze your URLs ...