帝国栏目列表设置会员查看权限
来源:帝国CMS
作者:
2020-06-12
列表模板最上面加下面代码
<!--code.start-->?
if(!$_COOKIE[ecmsmlusername])
{
echo"<script>alert('还未登陆');history.go(-1);</script>";
exit();
}
?<!--code.end-->
ecms为你的cookie前缀,可以看e/class/config.php
列表模板最上面加下面代码
<!--code.start-->?
if(!$_COOKIE[ecmsmlusername])
{
echo"<script>alert('还未登陆');history.go(-1);</script>";
exit();
}
?<!--code.end-->
ecms为你的cookie前缀,可以看e/class/config.php