首页 > 运营 > 帮助中心 > 正文

ECSHOP如何删除自动识别手机与平板电脑功能

2019-10-16 21:43:27
字体:
来源:转载
供稿:网友
找到index.php,删除24-39行:

$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;
        }
    }
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表