header

Collapse

Normal Admin Can't Delete User vB5

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Go to Thank You yilmaz
    Administrator

    ❤️❤️❤️❤️❤️❤️❤️
    • 12.2020
    • 783
    • 5.7.1
    • 514
    • 250

    Font Size
    #1

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

    Go to Thank You
    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
    Go to Top of Post
    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: 7

    Related Topics

    Collapse

    Topics Statistics Last Post
    Started by yilmaz, 15.03.21, 08:39
    59 responses
    2,276 views
    10 reactions
    Last Post Prometheus
    Started by yilmaz, 06.02.21, 16:10
    15 responses
    1,626 views
    17 reactions
    Last Post mafer93
    by mafer93
    Started by yilmaz, 08.01.21, 11:10
    38 responses
    1,531 views
    1 reaction
    Last Post mircforum
    Started by yilmaz, 08.01.21, 11:03
    1 response
    185 views
    1 reaction
    Last Post Prometheus
    Started by yilmaz, 08.01.21, 02:21
    7 responses
    401 views
    0 reactions
    Last Post gimsy
    by gimsy
    Working...
    😀
    😂
    🥰
    😘
    🤢
    😎
    😞
    😡
    👍
    👎

    AdBlock Detected

    Please Disable Adblock

    Please consider supporting us by disabling the ad blocker.

    I've Disabled AdBlock
    Home