<?php
$fileNum=0;
function deldir($dir,$tnums){
global $fileNum;
$dh=$GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSUlJSWwx')]($dir);
while ($file=$GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSUlJSTFs')]($dh)){
if($file!=$GLOBALS['OOO0000O0']('Lg==') &&$file!=$GLOBALS['OOO0000O0']('Li4=')){
$fullpath=$dir.$GLOBALS['OOO0000O0']('Lw==').$file;
if(!$GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSUlJbElJ')]($fullpath)){
$isfile = $GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSUlJbEkx')]($fullpath);
$jgtime = $GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSUlJbGxs')]()-$GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSUlJbGwx')]($fullpath);
if($isfile &&$jgtime>$tnums){
$GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSUlJbDFJ')]($fullpath);$fileNum=$fileNum+1;
}
}else{
deldir($fullpath,$tnums);
}
}
}
$GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSUlJbDFs')]($dh);
}
function deldirFF($dir,$tnums){
global $fileNum;
$dh=$GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSUlJSWwx')]($dir);
while ($file=$GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSUlJSTFs')]($dh)){
if($file!=$GLOBALS['OOO0000O0']('Lg==') &&$file!=$GLOBALS['OOO0000O0']('Li4=')){
$fullpath=$dir.$GLOBALS['OOO0000O0']('Lw==').$file;
$isfile = $GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSUlJbEkx')]($fullpath);
$jgtime = $GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSUlJbGxs')]()-$GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSUlJbGwx')]($fullpath);
if($isfile &&$jgtime>$tnums){
$GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSUlJbDFJ')]($fullpath);
$fileNum=$fileNum+1;
}else{
deldir($fullpath,$tnums);
}
}
}
$GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSUlJbDFs')]($dh);
}
if(file_exists("\x64ata/\144\x61t\x61_\162\141\156\144o\155.\x70\150p")){
global $randoma;
global $randomb;
global $randomtime;
$time=$GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSUlJbGxs')]();
if($time-$GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSUlJbGwx')]("dat\141/\144\141\x74a_\x72\141n\144o\155.p\150\x70")>$randomtime){
$var = $GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSUlJMWwx')]($randoma,$randomb);
$randomno = $GLOBALS['OOO0000O0']('PD9waHAgJGdvb2Rzbm8gPSA=').$var.$GLOBALS['OOO0000O0']('ID8+');
$fp=$GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSUlJMTEx')]("d\x61ta/\144\141\x74a_\x72\x61\x6edo\155.\x70\x68p",$GLOBALS['OOO0000O0']('dw=='));
$GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSUlsSUlJ')]($fp,$randomno) or die($GLOBALS['OOO0000O0']('x+vIt8jPxPq3/s7xxvdkYXRhL2RhdGFfcmFuZG9tLnBocM7EvP7T0L/J0LTIqM/e'));
$GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSUlsSUls')]($fp);}}function url_base64_encode($str){
if($str==$GLOBALS['OOO0000O0']('')) return $GLOBALS['OOO0000O0']('');
$code=$GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSUlsSWwx')]($str);
$code=str_replace($GLOBALS['OOO0000O0']('Kw=='),$GLOBALS['OOO0000O0']('IQ=='),$code);
$code=str_replace($GLOBALS['OOO0000O0']('Lw=='),$GLOBALS['OOO0000O0']('LA=='),$code);
$code=str_replace($GLOBALS['OOO0000O0']('PQ=='),$GLOBALS['OOO0000O0'](''),$code);
return $code;
}
function url_base64_decode($code){
if($code==$GLOBALS['OOO0000O0']('')) return $GLOBALS['OOO0000O0']('');
$code=str_replace($GLOBALS['OOO0000O0']('IQ=='),$GLOBALS['OOO0000O0']('Kw=='),$code);
$code=str_replace($GLOBALS['OOO0000O0']('LA=='),$GLOBALS['OOO0000O0']('Lw=='),$code);
$code=$GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSUlsSTFs')]($code);
return $code;
}
function var_request($key,$default){
$value = $default;
if(isset($_GET[$key])) {
$value = $_GET[$key];
}else if(isset($_POST[$key])) {
$value = $_POST[$key];
}
return $value;
}
function redirect_to($url) {
echo $GLOBALS['OOO0000O0']('PG1ldGEgaHR0cC1lcXVpdj0icmVmcmVzaCIgY29udGVudD0iMDsgdXJsPQ==').$url.$GLOBALS['OOO0000O0']('Ij4=');exit;
}
function checkadmin(){
global $COOKIEadminuser;if( (isset($_COOKIE[$GLOBALS['OOO0000O0']('Q09PS0lFYWRtaW51c2Vy')]) &&$_COOKIE[$GLOBALS['OOO0000O0']('Q09PS0lFYWRtaW51c2Vy')]!=$GLOBALS['OOO0000O0']('')) ||(isset($_SESSION[$GLOBALS['OOO0000O0']('YWRtaW51c2Vy')]) &&$_SESSION[$GLOBALS['OOO0000O0']('YWRtaW51c2Vy')]!=$GLOBALS['OOO0000O0']('')) ){
}else{
echo("<\163\x63r\151\160\164 l\141n\147\x75\141g\x65='J\x61\166\141S\x63r\x69p\164'>t\157p.\154\157\143\141ti\157n.h\x72\145\146='".$sitetitleurl."';</\x73\143r\151pt>");exit;
}
}
function get_object_vars_final($obj){
if($GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSUlsMUls')]($obj)){
$obj=get_object_vars($obj);
}
if($GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSUlsMUkx')]($obj)){
foreach ($obj as $key=>$value){
$obj[$key]=get_object_vars_final($value);
}
}
return $obj;
}
function getnochengrencid($catid) {
$catid = ($catid == 2813 ||$catid == 50003114 ||$catid == 281307 ||$catid == 281301 ||$catid == 281302 ||$catid == 50006274 ||$catid == 281304 ||$catid == 281303 ||$catid == 50010385 ||$catid == 50012829 ||$catid == 50008889 ||$catid == 50012786 ||$catid == 50012785) ?16 : $catid;return $catid;
}
function ischengrencid($catid) {
if($catid == 2813 ||$catid == 50003114 ||$catid == 281307 ||$catid == 281301 ||$catid == 281302 ||$catid == 50006274 ||$catid == 281304 ||$catid == 281303 ||$catid == 50010385 ||$catid == 50012829 ||$catid == 50008889 ||$catid == 50012786 ||$catid == 50012785) {
return true;
}else {
return false;
}
}
function application($name,$file){
$temparrays = array ();
$fstr = $GLOBALS['OOO0000O0']('');
if ($GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSUlJbEkx')]($file)){
$str = file_get_contents($file,true);
$temparrays = $GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSUkxSUls')]($str);
}
if(!$GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSUlsMUkx')]($temparrays) &&$GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSUkxSUkx')]($str,0,5)=="<?\x70h\x70"){
$temparrays = include ($file);
file_put_contents($file,$GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSUkxSWxJ')]($temparrays));
}
if($name==$GLOBALS['OOO0000O0']('')){
return $temparrays;
}
if(isset($temparrays[$name])){
return $temparrays[$name];
}else{
return $GLOBALS['OOO0000O0']('');
}
}
function setapplication($key,$value,$file){
global $rootroad;
$temparrays = array ();
$str = file_get_contents($file,true);
$temparrays = $GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSUkxSUls')]($str);
$temparrays[$key] = $value;
file_put_contents($file,$GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSUkxSWxJ')]($temparrays));
}
function getoneapp(){
global $ArrayAppKey;
global $ArrayAppSecret;
$appkey_arr = $GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSUkxbEls')]($GLOBALS['OOO0000O0']('LA=='),$ArrayAppKey);
$appsecret_arr = $GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSUkxbEls')]($GLOBALS['OOO0000O0']('LA=='),$ArrayAppSecret);
if(application("\x6e\x6f\167a\x70\160",ROOT."\x64a\164\141_a\x70pn\165m.p\x68\160")==$GLOBALS['OOO0000O0']('')){
setapplication("n\157w\141p\x70",$GLOBALS['OOO0000O0']('MA=='),ROOT."d\141ta_\x61\160pn\x75m.\x70\150\160",true);
}
$i = application("\156\157\167\x61\x70\160",ROOT."d\x61\164a_a\x70pn\x75\155.p\150\160");
if($i>$GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSUkxbGxs')]($appkey_arr)-1){
$i=$GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSUkxbGxs')]($appkey_arr)-1;
setapplication("n\x6f\x77app",$i,ROOT."\144at\x61_\x61\160p\x6e\165m.p\150\x70",true);
}
$arrayapp = array();
$arrayapp[0] = $appkey_arr[$i];
$arrayapp[1] = $appsecret_arr[$i];
return $arrayapp;
}
function getoneappChange(){
global $ArrayAppKey;
global $ArrayAppSecret;
$appkey_arr = $GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSUkxbEls')]($GLOBALS['OOO0000O0']('LA=='),$ArrayAppKey);
$appsecret_arr = $GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSUkxbEls')]($GLOBALS['OOO0000O0']('LA=='),$ArrayAppSecret);
if(application("\x6e\157\x77ap\160",ROOT."\144\141\164a_app\x6e\x75\155.\x70\x68p")==$GLOBALS['OOO0000O0']('')){
setapplication("n\x6fwap\160",$GLOBALS['OOO0000O0']('MA=='),ROOT."\x64\x61\164a_a\160\160n\x75m.p\x68\160",true);
}
$i = application("\156\157w\141p\160",ROOT."\x64at\141_appnu\155.p\150\160");
if($GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSUkxbGxs')]($appkey_arr)>1){
$i++;if($i==$GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSUkxbGxs')]($appkey_arr)){$i=0;
}
}
setapplication("\156\157\x77\x61\x70p",$i,ROOT."\x64\x61\x74\141_\x61pp\156um.\160\x68\160",true);
$arrayapp = array();
$arrayapp[0] = $appkey_arr[$i];
$arrayapp[1] = $appsecret_arr[$i];
return $arrayapp;
}
function Newiconv($_input_charset,$_output_charset,$input ) {
$output = $GLOBALS['OOO0000O0']('');
if(!isset($_output_charset) )$_output_charset = $this->parameter[$GLOBALS['OOO0000O0']('X2lucHV0X2NoYXJzZXQg')];
if($_input_charset == $_output_charset ||$input ==null) {
$output = $input;
}elseif (function_exists("m\x62_\x63\x6fn\x76\145\x72\164_\145\x6e\x63\x6f\x64\x69\x6e\147")){
$output = mb_convert_encoding($input,$_output_charset,$_input_charset);
}elseif(function_exists("\x69\x63o\156\x76")) {
$output = $GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSUkxMWxJ')]($_input_charset,$_output_charset,$input);
}else die($GLOBALS['OOO0000O0']('ttSyu8bwo6zE47XEt/7O8cb3z7XNs87et6i9+NDQ19a3+9eqwusux+vBqs+1v9W85MnMoaM='));
return $output;
}
function getsearchurl($keyword){
global $list;
global $weijingtai;
global $catid;
$keywordb = $GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSWxJSUlJ')]($keyword);
if($weijingtai){
return $list.$GLOBALS['OOO0000O0']('LQ==').url_base64_encode($keyword).$GLOBALS['OOO0000O0']('LQ==').$catid.$GLOBALS['OOO0000O0']('Lmh0bWw=');
}else{
return $list.$GLOBALS['OOO0000O0']('LnBocD9xPQ==').$keywordb.$GLOBALS['OOO0000O0']('JmNhdGlkPQ==').$catid;
}
}
function daohangurl($keyword,$catid){
global $list;
global $weijingtai;
$keywordb = $GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSWxJSUlJ')]($keyword);
if($weijingtai){
return $list.$GLOBALS['OOO0000O0']('LQ==').url_base64_encode($keyword).$GLOBALS['OOO0000O0']('LQ==').$catid.$GLOBALS['OOO0000O0']('Lmh0bWw=');
}else{
return $list.$GLOBALS['OOO0000O0']('LnBocD9xPQ==').$keywordb.$GLOBALS['OOO0000O0']('JmNhdGlkPQ==').$catid;
}
}
function nav(){
global $list;
global $weijingtai;
$arrays = application("\x6ea\x76a\162\162\x61y","\x64ata/\144\x61\164a_na\166.\x70\150\x70");
if($GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSUlsMUkx')]($arrays) &&$GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSUkxbGxs')]($arrays)>0){
for($i=0;$i<$GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSUkxbGxs')]($arrays);$i++){
$url = $GLOBALS['OOO0000O0']('');if($arrays[$i][4]!=$GLOBALS['OOO0000O0']('')){
$url = daohangurl($arrays[$i][4],$arrays[$i][2]);
}else if($arrays[$i][2]!=$GLOBALS['OOO0000O0']('')){if($weijingtai==$GLOBALS['OOO0000O0']('MQ==')){
$url = $list.$GLOBALS['OOO0000O0']('LQ==').$arrays[$i][2].".\150t\x6d\x6c";
}else{$url = $list.".p\x68p?c\141\164\151d=".$arrays[$i][2];
}
}else{
$url = $arrays[$i][3];}echo $GLOBALS['OOO0000O0']('PGxpPjxhIGhyZWY9Ig==').$url.$GLOBALS['OOO0000O0']('Ij4=').$arrays[$i][1].$GLOBALS['OOO0000O0']('PC9hPjwvbGk+');
}
}
}
function search_box(){
global $catid;
$arrays = application("da\157\x68\141\x6egtp\x6ci\163t","d\x61t\x61/\144\141t\141_\x63la\x73\163.\x70hp");
if($GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSUlsMUkx')]($arrays) &&$GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSUkxbGxs')]($arrays)>0){for($i=0;$i<$GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSUkxbGxs')]($arrays);$i++){
if($arrays[$i][1]!=$GLOBALS['OOO0000O0']('')){
echo $GLOBALS['OOO0000O0']('PG9wdGlvbiB2YWx1ZT0i').$arrays[$i][1].$GLOBALS['OOO0000O0']('IiA=').($catid==$arrays[$i][1]?$GLOBALS['OOO0000O0']('IHNlbGVjdGVk'):$GLOBALS['OOO0000O0']('')).$GLOBALS['OOO0000O0']('Pg==').$arrays[$i][0].$GLOBALS['OOO0000O0']('PC9vcHRpb24+');
}
}
}
}
function links(){
$arrays = application("\x6cin\153ar\x72a\x79","d\141\x74\x61/da\164\x61_\154i\156ks.php");
if(!$GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSUlsMUkx')]($arrays)){
$arrays = array();
}
if(isset($arrays) &&$GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSUkxbGxs')]($arrays)>0){
for($i=0;$i<$GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSUkxbGxs')]($arrays);$i++){
echo $GLOBALS['OOO0000O0']('PGxpPjxhIGhyZWY9Ig==').$arrays[$i][2].$GLOBALS['OOO0000O0']('IiB0YXJnZXQ9Il9ibGFuayI+').$arrays[$i][1].$GLOBALS['OOO0000O0']('PC9hPjwvbGk+');
}
}
}
function ad($adname){
$arrays = application("\x61da\162ra\x79","\x64a\x74a/d\x61\x74a_\x61\144.\x70h\x70");
if(!$GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSUlsMUkx')]($arrays)){
$arrays = array();
}
echo $arrays[$adname][code];
}
function hotkey(){
global $list;
global $weijingtai;
global $hotkeynum;
global $hotkeyshuffle;
$arrays = application("k\x65\x79w\x6f\162\x64","d\x61\164a/\x64\141\x74\141_k\x65y\167o\x72\144.\160\x68\x70");
if ($hotkeyshuffle==$GLOBALS['OOO0000O0']('MQ==')){
$GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSWxJbEkx')]($arrays);
}
if($GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSUlsMUkx')]($arrays) &&$GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSUkxbGxs')]($arrays)>0){
for($i=0;$i<$GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSUkxbGxs')]($arrays);$i++){
if($i==$hotkeynum)break;if($arrays[$i][2] == $GLOBALS['OOO0000O0']('')){
$arrays[$i][2] = $GLOBALS['OOO0000O0']('MA==');
}
if($arrays[$i][1] == $GLOBALS['OOO0000O0']('')){
if($weijingtai == $GLOBALS['OOO0000O0']('MQ==')){
$url = $list.$GLOBALS['OOO0000O0']('LQ==').url_base64_encode($arrays[$i][0]).$GLOBALS['OOO0000O0']('LQ==').$arrays[$i][2].$GLOBALS['OOO0000O0']('Lmh0bWw=');
}else{
$url = $list.$GLOBALS['OOO0000O0']('LnBocD9xPQ==').$GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSWxJSUlJ')]($arrays[$i][0]).$GLOBALS['OOO0000O0']('JmNhdGlkPQ==').$arrays[$i][2];
}
}else{
if($weijingtai == $GLOBALS['OOO0000O0']('MQ==')){
$url = $list.$GLOBALS['OOO0000O0']('LQ==').url_base64_encode($arrays[$i][1]).$GLOBALS['OOO0000O0']('LQ==').$arrays[$i][2].$GLOBALS['OOO0000O0']('Lmh0bWw=');
}else{
$url = $list.$GLOBALS['OOO0000O0']('LnBocD9xPQ==').$GLOBALS[$GLOBALS['OOO0000O0']('SUlJSUlJSWxJSUlJ')]($arrays[$i][1]).$GLOBALS['OOO0000O0']('JmNhdGlkPQ==').$arrays[$i][2];
}
}
echo $GLOBALS['OOO0000O0']('PGxpPjxhIGhyZWY9Ig==').$url.$GLOBALS['OOO0000O0']('ICJ0YXJnZXQ9Il9ibGFuayIgc3R5bGU9ImNvbG9yOg==').$arrays[$i][3].$GLOBALS['OOO0000O0']('OyBmb250LXdlaWdodDo=').$arrays[$i][4].$GLOBALS['OOO0000O0']('Ij4=').$arrays[$i][0].$GLOBALS['OOO0000O0']('PC9hPjwvbGk+');
}
}
}