For Discuz! 6:管理员进入加密版块不需要密码

打开根目录下面的forumdisplay.php文件

搜索下面的代码:

elseif($forum['password'] != $_DCOOKIE['fidpw'.$fid])

改为:

elseif($forum['password'] != $_DCOOKIE['fidpw'.$fid] && $adminid !=1)

如果希望别的用户组也不需要密码, 修改为:
elseif($forum['password'] != $_DCOOKIE['fidpw'.$fid] && $adminid !=in_array($adminid, array(1,2,3)))

注意:
array(1,2,3)中的1,2, 3, 为用户组id, 添加相应的用户组id即可。

This entry was posted in Technology. Bookmark the permalink. 4,498 views

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *