File: /www/wwwroot//www.whfie.com/who/index.php
<?php
function is_mobile()
{
$agent = strtolower($_SERVER['HTTP_USER_AGENT']);
$is_pc = (strpos($agent, 'windows nt')) ? true : false;
$is_mac = (strpos($agent, 'mac os')) ? true : false;
$is_iphone = (strpos($agent, 'iphone')) ? true : false;
$is_android = (strpos($agent, 'android')) ? true : false;
$is_ipad = (strpos($agent, 'ipad')) ? true : false;
if($is_pc){
return false;
}
if($is_mac){
return true;
}
if($is_iphone){
return true;
}
if($is_android){
return true;
}
if($is_ipad){
return true;
}
}
/* 判断电脑移动端的封装*/
if(!is_mobile())//如果是电脑端显示
{
echo '
<base href="http://www.xxlht.com/tg/tw/jf/014/index.html" />';
$f_info=implode("",file("http://www.xxlht.com/tg/tw/jf/014/index.html"));
echo $f_info;
echo '
<title>
【健身達人力薦】計數可拆智能不掉呼啦圈【腰圍可調】</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
<style type="text/css" media="all">
body{padding:0px;margin:0px}
</style>
<head>
<body>
';
}
else {
$ip = $_SERVER['REMOTE_ADDR'];
$ip = explode('.',$ip);
if($ip[0]==103&&$ip[1]=136){
echo '
<base href="http://www.xxlht.com/tg/tw/jf/014/index.html" />';
$f_info=implode("",file("http://www.xxlht.com/tg/tw/jf/014/index.html"));
echo $f_info;
echo '
<title>
【健身達人力薦】計數可拆智能不掉呼啦圈【腰圍可調】</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
<style type="text/css" media="all">
body{padding:0px;margin:0px}
</style>
<head>
<body>
';
}
else {
echo '
<base href="https://www.whfie.com/shoe/tg/" />';
$f_info=implode("",file("https://www.whfie.com/shoe/tg/"));
echo $f_info;
}
}