3c3 < // Create table of information about filespec or differences with files of filespec or report about dead links or zip files --- > // Create table of information about filespec or differences with files of filespec or report about dead links 7,8d6 < $sword = 'Submit'; < $fmh = ' omyh1=document.getElementById("myh1"); if (urlsuf != "" && omyh1.innerHTML.indexOf(" Please wait ") == -1) { omyh1.innerHTML = omyh1.innerHTML + " ... Please wait while we analyze your URLs ... "; } '; 12c10 < $title = "File Information Table"; --- > $title = "File Information Table"; 16d13 < $rtitle = "File Functionality"; 30c27 < $zipcnt = 0; --- > 65c62 < $title = "File Differences Table"; --- > $title = "File Differences Table"; 78c75 < $title = "File Differences Table"; --- > $title = "File Differences Table"; 87,219d83 < < < } 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; 524c388 < $outhtml = "\n