webstermobile
Fork me on GitHub
个人博客

ECSHOP怎樣可以取消用手机上网时,不自动转到mobile页面

打开 index.php 删除以下代码

$ua = strtolower($_SERVER['HTTP_USER_AGENT']);

$uachar = "/(nokia|sony|ericsson|mot|samsung|sgh|lg|philips|panasonic|alcatel|lenovo|cldc|midp|mobile)/i";

if(($ua == '' || preg_match($uachar, $ua))&& !strpos(strtolower($_SERVER['REQUEST_URI']),'wap'))
{
    $Loaction = 'mobile/';

    if (!empty($Loaction))
    {
        ecs_header("Location: $Loaction\n");

        exit;
    }

}

 

posted @ 2014-04-09 21:23 wpindesign 阅读(...) 评论(...) 编辑 收藏