###################################################################################
### Patch By: Gizzy ###
### Email: Gizmo@undergroundnews.com ###
### ###
### Moderator Control Panel Lock-Out v0.1 ###
### ###
### Feel that if you wanted people to have access to your control panel that ###
### you'd have given them Admin's? Well then this patch is for you. This ###
### patch will allow you to lock all Moderators out of your Control Panel. ###
### ###
### Compatability: Should work on all versions. ###
### Tested On: 6.4 ###
### ###
### Please report all bugs to UBBDev. ###
### http://www.ubbdev.com/ubbcgi/ultimatebb.cgi?ubb=get_topic&f=33&t=000007 ###
###################################################################################
### Files Modified: ###
### ###
### CGI: ###
### cp_lib.cgi ###
### vars_wordlets_cp.cgi ###
### ###
### Templates: ###
### cp_common.pl ###
###################################################################################
### in vars_wordlets_cp.cgi ###
#####################################
# FIND: ###
#################
q!access_denied_notanadmin! => q!Sorry, you are not an administrator or moderator, so you may not gain access to the control panel.!,
#################
# REPLACE WITH: #
#################
q!access_denied_notanadmin! => q!Sorry, but you're not an administrator, you may not gain access to the control panel.!,
#####################################
### in: cp_lib.cgi ###
#####################################
# FIND: #
#################
if (($profile[8] ne 'Administrator') && ($profile[8] ne 'Moderator')) {
&AppendAdminLog($username, $status, "Log In", "Failed", "User is NOT an Admin or Mod");
&StandardHTML($vars_wordlets_cp{access_denied_notanadmin});
}
#################
# REPLACE WITH: #
#################
if ($profile[8] ne 'Administrator') {
&AppendAdminLog($username, $status, "Log In", "Failed", "User is NOT an Administrator.");
&StandardHTML($vars_wordlets_cp{access_denied_notanadmin});
}
#####################################
### in: cp_common.pl ###
#####################################
# REMOVE: #
#################
if (userStatus == "Moderator") {
document.writeln("");
}
#################
# REMOVE: #
#################
if (userStatus == "Moderator") {
document.writeln("");
}
#################
# FINAL STEPS: #
#################
Upload all files to your web-server and login, all moderators will no longer be able to access your control pannel.
###################################################################################
### End of file. Please report all bugs or requests to http://www.ubbdev.com/ ###
###################################################################################