Warning: Undefined array key "night" in /www/wwwroot/dhaomu.com/wp-content/themes/b2/header.php on line 18

EcShop暂时关闭后管理员可查看页面的方法

ecshop教程:ecshop暂时关闭后管理员可查看页面的方法!ecshop本身具备暂时关闭网站的功能,并可以自定义关闭的公告。那么ecshop暂时关闭后管理员如何可以查看页面呢?

ecshop教程:ecshop暂时关闭后管理员可查看页面的方法!ecshop本身具备暂时关闭网站的功能,并可以自定义关闭的公告。那么ecshop暂时关闭后管理员如何可以查看页面呢?

打开 /includes/init.php 文件

找到(约122行)

if ($_CFG['shop_closed'] == 1)  
{  
    /* 商店关闭了,输出关闭的消息 */  
    header('Content-type: text/html; charset='.EC_CHARSET);  
    die('<div style="margin: 150px; text-align: center; font-size: 14px"><p>' . $_LANG['shop_closed'] . '</p><p>' . $_CFG['close_comment'] . '</p></div>');  
}

修改为

if ($_CFG['shop_closed'] == 1)  
{  
    /* 商店关闭了,输出关闭的消息 */  
    if (!isset($_SESSION['admin_name']))  
    {  
        header('Content-type: text/html; charset='.EC_CHARSET);  
        die('<div style="margin: 150px; text-align: center; font-size: 14px"><p>' . $_LANG['shop_closed'] . '</p><p>' . $_CFG['close_comment'] . '</p></div>');      
    }  
}
温馨提示:
1.本站大部分内容均收集于网络!若内容若侵犯到您的权益,请发送邮件至:duhaomu@163.com,我们将第一时间处理!
2.资源所需价格并非资源售卖价格,是收集、整理、编辑详情以及本站运营的适当补贴,并且本站不提供任何免费技术支持。
3.所有资源仅限于参考和学习,版权归原作者所有,更多请阅读网站声明

给TA赞赏
共{{data.count}}人
人已赞赏
编程技巧

织梦让相关文章标签likearticle的mytypeid支持多个栏目和子栏目

2022-5-9 0:00:00

编程技巧

织梦自定义字段option下拉默认值过多无法显示解决方法

2022-5-11 0:00:00

0 条回复 A文章作者 M管理员

Warning: Trying to access array offset on value of type null in /www/wwwroot/dhaomu.com/wp-content/themes/b2/functions.php on line 3914

Warning: Trying to access array offset on value of type null in /www/wwwroot/dhaomu.com/wp-content/themes/b2/functions.php on line 3914
----《》
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索