Example #1
0
        } 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_";
}
Example #2
0
 function ipcounter()
 {
     global $options;
     $xhandle = @opendir($this->tmp_dir);
     if ($xhandle) {
         while ($buin = readdir($xhandle)) {
             if (preg_match("@{$this->userip}@i", $buin)) {
                 $this->heute = $this->heute + 1;
             }
         }
         $ckusr = decEnti((string) base64_decode(urldecode($_COOKIE['rxyzusr'])));
         $ckusr = is_numeric($ckusr) ? $ckusr : '******';
         if ($ckusr != '' && $ckusr > $this->heute) {
             $this->heute = $ckusr;
         } else {
             setcookie('rxyzusr', base64_encode(encEnti((string) $this->heute)), TIME_NOW + $options['delay_per_ip'] * 3600);
         }
         closedir($xhandle);
         error_reporting(false);
         $xhandle = @opendir($this->tmp_dir);
         while ($buin = readdir($xhandle)) {
             if ($buin == "." || $buin == "..") {
                 $buin = "fu";
             }
             $xd = @filemtime($this->tmp_dir . $buin);
             $xd = getNowzone($xd);
             $altr = TIME_NOW - $xd;
             if ($altr > $options['delay_per_ip'] * 3600) {
                 if (is_dir($this->tmp_dir . $buin)) {
                     @rmdir($this->tmp_dir . $buin);
                 } else {
                     @unlink($this->tmp_dir . $buin);
                 }
             }
         }
         closedir($xhandle);
         error_reporting(true);
     }
 }
Example #3
0
    }
    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;