} if (!empty($_GET["email"])) { require_once CLASS_DIR . "mail.php"; $_GET["partSize"] = isset($_GET["partSize"]) && is_numeric($_GET["partSize"]) ? $_GET["partSize"] * 1024 * 1024 : false; if (xmail($fromaddr, $_GET["email"], "File " . basename($file["file"]), "File: " . basename($file["file"]) . "\r\n" . "Link: " . $_GET["link"] . (!empty($_GET["comment"]) ? "\r\n" . "Comments: " . str_replace("\\r\\n", "\r\n", $_GET["comment"]) : ""), $pathWithName, $_GET["partSize"], $_GET["partSize"] && !empty($_GET["method"]) ? $_GET["method"] : '')) { print $L->sprintf($L->say['mail_file_sent'], $_GET['email'], basename($file['file'])); } else { print "<div class='acthistory_result'>" . $L->say['mail_error_send'] . "</div>"; } } if ($options['new_window']) { print '<br /><a href="javascript:window.close();">' . $L->say['closewin'] . '</a>'; } else { $rnd = rand(11, 99); // generate delete link echo $L->sprintf($L->say['_del_link'], 'del.php?d=' . str_replace("=", "", rotN(base64_encode($file["date"] . ':' . '4puZ'), $rnd)) . "-" . $rnd, date("M-d, Y - H:i:s", $file["date"])); print "<br /><a id='tdone' href=\"" . $PHP_SELF . "\">[ <b><span id='txtdone'>" . $L->say['back_main'] . " ]</b></span></a><br />"; } } else { @unlink($pathWithName); print $L->say['con_lost'] . "<br /><a href=\"javascript:location.reload();\">" . $L->say['_reload'] . "</a>"; print '<script type="text/javascript">setTimeout("location.reload()",1000);</script>'; } //check whether this index called from audl.php $audlparam = isset($_GET["idx"]) ? $_GET["idx"] : ''; if ($audlparam != '') { $audlparam = explode('|', $audlparam); $audlparam[0] = $audlparam[0] != '' ? true : false; if ($audlparam[1] == '') { $audlparam[1] = 'none'; }
} else { $ktr = strtolower($ktr); } $rt .= $ktr; } if (strlen($nE) < 2) { $nE = trim('0' . $nE); } return $rt . $nE; } isset($_GET["sg_md5"]) ? $s_md5 = $_GET["sg_md5"] : ($s_md5 = ''); isset($_GET["md5"]) ? $p_md5 = $_GET["md5"] : ($p_md5 = ''); isset($_GET["rs"]) ? $rs_auth = $_GET["rs"] : ($rs_auth = ''); isset($_GET["key"]) ? $rs_key = $_GET["key"] : ($rs_key = ''); if ($s_md5 != '' && $p_md5 != '' && $rs_auth != '') { exit('null'); } if ($p_md5 != '') { $parts = explode(":::", $p_md5); echo "_hash_" . utf8_strrev(base64_encode(md5($parts[0]) . ":" . md5($parts[1]))) . "_/hash_"; } if ($rs_auth != '' && $rs_key != '') { $parts = explode(":::", $rs_auth); $usrpass = $parts[0] . ":" . $parts[1]; $strROTr = rotN(strrev($usrpass), $rs_key); $encE = encEnti($strROTr, $rs_key); echo "_hash_" . $encE . "_/hash_"; } if ($s_md5 != '') { echo "_hash_" . md5($s_md5) . "_/hash_"; }
if (isset($_GET['met'])) { if ($_GET['met'] == 'ajax') { $wajax = true; } } if (!isset($_GET['d'])) { notexist(); } else { $dkey = $_GET['d']; $ck_showall = isset($_COOKIE["showAll"]) ? $_COOKIE["showAll"] : false; if (!preg_match('/^[a-zA-Z0-9]{20}-[0-9]{2}$/', $dkey, $match)) { notexist(); } else { $rotKey = stristr($dkey, "-"); $rotKey = (int) substr($rotKey, 1, strlen($rotKey)); $hashdel = explode(":", trim(base64_decode(rotN($_GET['d'], -$rotKey)))); $fileDate = (int) $hashdel[0]; $backupshow_all = $options['show_all']; $options['show_all'] = true; _create_list(true, false, 1); } if (!$list) { notexist(); } else { $fileName = $list[$fileDate]["name"]; // we load $list from show download mode unset($list); $options['show_all'] = $backupshow_all; _create_list(true, false, 2); } if (!file_exists($fileName) || strlen($fileName) == 0) {
/* <![CDATA[ */ var dFile = new Object(); var text = "", thead, tfoot; <?php echo "var _dlpath = '" . ($options["download_dir"] != "" ? "{$options["download_dir"]}" : "/") . "';{$nn}{$nn}"; foreach ($list as $key => $file) { if (isset($file["name"]) && @file_exists($file["name"])) { $c++; if ($kumulatifsz) { $total_size += getfilesize($file["name"]); } echo 'dFile["' . $file["date"] . '"] = new Object();' . $nn; echo 'dFile["' . $file["date"] . '"]["name"] = "' . xmlentities(basename($file["name"]), false) . '"' . $nn; echo 'dFile["' . $file["date"] . '"]["size"] = "' . $file["size"] . '"' . $nn; echo 'dFile["' . $file["date"] . '"]["age"] = "' . $file["age"] . '"' . $nn; $rnd = rand(11, 99); echo 'dFile["' . $file["date"] . '"]["delkey"] = "' . str_replace("=", "", rotN(base64_encode($file["date"] . ':' . '4puZ'), $rnd)) . "-" . $rnd . '"' . $nn; } } // end loop all files echo 'total_size = "' . $total_size . '";' . "{$nn}"; echo 'c = "' . $c . '";' . "{$nn}"; $lynx_del = $options["deletelink_in_lynx"] && !$options["disable_to"]["act_delete"]; $morethanone = $c > 1; ?> thead = "<table id='intbl' cellpadding='1' cellspacing='1' class='sortable' style='display: none;'>"; thead+= "<tr valign='bottom' align='center' id='filelist_title_head' class='filelist_title'>"; thead+= "<td><b class='sorttable_nosort'><\/b><\/td>"; thead+= "<td align='right'><b> <?php echo $L->say['_fname']; ?> <\/b><\/td>";
function dcd($c) { $pt = ""; $bfC = $c; if ($c == "") { return $pt; } $rRot = (int) substr($c, -2); if (!is_numeric($rRot)) { return false; } else { $bfC = strtoupper(substr($c, 0, -2)); $pj = strlen($bfC); $i = 0; } if ($pj % 2 != 0) { return false; } while ($i < $pj) { $hs = chr(hexdec(substr($bfC, $i, 2))); $pt .= $hs; $i = $i + 2; } $pt = strrev(rotN($pt, -$rRot)); return $pt; }
$resXML .= ' <filelinktr>' . $_flinktr . '</filelinktr>' . $rn; } $_fcomment = ''; if ($options["show_column_sfile"]["comments"] == true && $file["comment"]) { $_fcomment = str_replace("\\r\\n", "<br/>", isset($file["comment"]) ? $file["comment"] : ""); $resXML .= ' <filecomment>' . $_fcomment . '</filecomment>' . $rn; } $_fip = ''; if ((!isset($_COOKIE['showAll']) || isset($_COOKIE['showAll']) && $_COOKIE['showAll'] != 1) && $options["show_column_sfile"]["ip"] == true) { $_fip = isset($file["ip"]) ? $file["ip"] : "?"; $resXML .= ' <fileip>' . $_fip . '</fileip>' . $rn; } $_fdkey = ''; if ($feat_ajax["ajax_delete"] == "1") { $rnd = rand(11, 99); $_fdkey = str_replace("=", "", rotN(base64_encode($file["date"] . ':' . '4puZ'), $rnd)) . "-" . $rnd; $resXML .= ' <filedelkey>' . $_fdkey . '</filedelkey>' . $rn; } } //--end file_exits } //--end foreach $resXML .= '</files>' . $rn; if (isset($list["files"]["totalfile"])) { $total_files = $list["files"]["totalfile"]; } $resXML .= '<succeed>' . ($total_files > 0 ? '1' : '0') . '</succeed>' . $rn; $resXML .= $total_files > 0 ? '' : '<msg>' . $L->say['tabel_no_file'] . '</msg>' . $rn; $resXML .= "\n" . '<totalfiles>' . $total_files . '</totalfiles>' . $rn; $_totsize = str_replace(" ", "((space))", bytesToKbOrMbOrGb($total_size)); $_totsize = str_replace(" ", "((space))", $_totsize);
} if (isset($_REQUEST["net_acc"]) && $_REQUEST["net_acc"] == "on") { $cook = isset($_REQUEST["net_cookie"]) ? $_REQUEST["net_cookie"] : $premium_acc['netload_in']['cookie']; $start_link .= '&net_hash=' . encEnti(rotN($cook, $rnum)) . $rnum; } if (isset($_REQUEST["rs_acc"]) && $_REQUEST["rs_acc"] == "on") { $cook = isset($_REQUEST["rs_cookie"]) ? $_REQUEST["rs_cookie"] : $premium_acc['rapidshare_com']['cookie']; $start_link .= '&rs_hash=' . encEnti(rotN($cook, $rnum)) . $rnum; } if (isset($_REQUEST["ul_acc"]) && $_REQUEST["ul_acc"] == "on") { $cook = isset($_REQUEST["ul_cookie"]) ? $_REQUEST["ul_cookie"] : $premium_acc['uploaded_to']['cookie']; $start_link .= '&ul_hash=' . encEnti(rotN($cook, $rnum)) . $rnum; } if (isset($_REQUEST["upl_acc"]) && $_REQUEST["upl_acc"] == "on") { $cook = isset($_REQUEST["upl_cookie"]) ? $_REQUEST["upl_cookie"] : $premium_acc['uploading_com']['cookie']; $start_link .= '&upl_hash=' . encEnti(rotN($cook, $rnum)) . $rnum; } ?> <script type="text/javascript" src="<?php echo STATIC_DIR; ?> ajax.js"></script> <script type="text/javascript"> /* <![CDATA[ */ var audl=<?php echo $options['audl'] > 0 ? $options['audl'] : 0; ?> ; //batas max autodownload var set_delay=0; var delay_=0; var current_dlink=-1;