Version: 1.20, by TilkiBey
Developer Last Online: May 2016
Category: Administrative and Maintenance Tools -
Version: 4.0.x
Rating:
Released: 08-17-2010
Last Update: Never
Installs: 19
Code Changes
No support by the author.
at 1st, i am sorry if i opened this thread to wrong category
at 2nd, i am sorry bout my English =)
at my forum, an admin deleted a user account without our permission
after deletion, there are a lot of db errors
so, i ve to find a solve for this problem and i found =)
Superadmins (from config.php file) can delete users
but, normal admins can NOT delete users
..::Upgrade Instructions::..
1-) Download new user.php file from ur license account
2-) Follow install instructions
..::Install Instructions::..
1-) download and open admincp/user.php file
2-a) find
PHP Code:
print_cp_header($vbphrase['user_manager']);
2-b) replace with
PHP Code:
if ($_REQUEST['do'] == 'remove' AND !in_array($vbulletin->userinfo['userid'], preg_split('#\s*,\s*#s', $vbulletin->config['SpecialUsers']['superadministrators'], -1, PREG_SPLIT_NO_EMPTY))){ print_cp_header('Access Denied'); } else{ print_cp_header($vbphrase['user_manager']); }
3-a) find
PHP Code:
if ($_REQUEST['do'] == 'remove') {
3-b) add BELOW
PHP Code:
if (!in_array($vbulletin->userinfo['userid'], preg_split('#\s*,\s*#s', $vbulletin->config['SpecialUsers']['superadministrators'], -1, PREG_SPLIT_NO_EMPTY))) { print_table_start(); print_table_header('Access Denied'); echo "<td class=\"alt1\" nowrap=\"nowrap\" align=\"center\">You Have No Permission For This Process</td>"; print_table_footer(2, '', '', 0); } else{
I have installed this mod on vb 4.0.6 Patch 1 but now I cannot delete any users.
Normal admins now cannot delete users which is excellent but when I, as the super admin, try to delete I just get redirected to a blank page and the deletion doesn't complete.
I have looked at the code but I can't see any reason why this is occurring.
I have installed this mod on vb 4.0.6 Patch 1 but now I cannot delete any users.
Normal admins now cannot delete users which is excellent but when I, as the super admin, try to delete I just get redirected to a blank page and the deletion doesn't complete.
I have looked at the code but I can't see any reason why this is occurring.
Any help would be greatly appreciated.
-Mike
thx for reporting and i'm soryy bout i am late, bout bairam =)
bug is fixed and modification is updated 1.10
so, u can use more safely now =)
Thank you very much! I really do appreciate this modification as the admin I put it in place for did end up causing problems and we had to let him go. He never hit this but I was more comfortable having it there!!
Thank you very much! I really do appreciate this modification as the admin I put it in place for did end up causing problems and we had to let him go. He never hit this but I was more comfortable having it there!!
-Mike
i am very happy if this modif. helped to u ^^
regards...