列表模板最上面加下面代码
<!--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