列表模板最上面加下面代码
<!–code.start–>?
if(!$_COOKIE[ecmsmlusername])
{
echo”<script>alert(‘还未登陆’);history.go(-1);</script>”;
exit();
}
?<!–code.end–>
ecms为你的cookie前缀,可以看e/class/config.php
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
列表模板最上面加下面代码
<!–code.start–>?
if(!$_COOKIE[ecmsmlusername])
{
echo”<script>alert(‘还未登陆’);history.go(-1);</script>”;
exit();
}
?<!–code.end–>
ecms为你的cookie前缀,可以看e/class/config.php
暂无评论内容