Announcement

Collapse
No announcement yet.

Normal Admin Can't Delete User vB5

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Font Size
    #1

    vB5.X.X Normal Admin Can't Delete User vB5

    Tested in vbulletin version 5.6.4 works fine

    Description:
    ====================================
    Superadmins (from "core/includes/config.php" file) can delete users
    but, normal admins can NOT delete users

    How to install :
    ====================================
    Follow install instructions

    1-) download and open "core/admincp/user.php" file

    2-a) find

    PHP Code:
    print_cp_header($vbphrase['user_manager'], ''$extraheader); 
    2-b) replace with

    PHP Code:
    if ($_REQUEST['do'] == 'remove' AND !in_array($vbulletin->userinfo['userid'], preg_split('#\s*,\s*#s'$vb5_config['SpecialUsers']['superadmins'], -1PREG_SPLIT_NO_EMPTY))){
        
    print_cp_header('Access Denied');
    }
    else{
        
    print_cp_header($vbphrase['user_manager'], ''$extraheader);

    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'$vb5_config['SpecialUsers']['superadmins'], -1PREG_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{ 
    4-a) find

    PHP Code:
    // ###################### Start Kill ####################### 
    4-b) add ABOVE

    PHP Code:

    5-) save and upload to ur admincp directory. that's all

    Notice: u can edit sentences manuel which re highlighted at ss

    How to uninstall:
    ========================================
    It is sufficient to overwrite the "core/admincp/user.php" file on your server with its original.

    -----
    Mark as installed get support.

    for vB4

    Attached Files
    chicoynano chicoynano bosss bosss like this.
    Similar Threads
X

Thread Information

Collapse

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

    Those who read this thread

    Collapse

    Members who have read this thread: 5

    Working...
    X

    AdBlock Detected

    Please Disable Adblock

    Please consider supporting us by disabling the ad blocker.

    I've Disabled AdBlock