我有一个CMS环境,其中有管理员用户,我需要一种方法来重定向不是管理员或不拥有他们尝试编辑的文档的用户。它看起来像这样,但我的管理员不能以这种方式访问页面,我不确定为什么:
$cannotpass=0;
if ($reportsusername != $usersusername) {
$cannotpass++;
}
if ($usersadmin != $admin) {
$cannotpass++;
}
if ($cannotpass >= 1) {
header("location:http://decibeldesignstudios.com/blackbirdsecurity/adminlanding");
}
一只甜甜圈
鸿蒙传说
随时随地看视频慕课网APP