Can it also be set up to not allow the super moderator or fellow moderators to be banned by one another but the Admin can still ban whomever he/she wants?
And how about having it send an e-mail notifiation to the Admin when someone attempts to ban the Admin, Supermod or Moerators (unless the Admin themselves did it), can that be done too?
(Wait a minute! What am i saying here, "can it be done"? This is Lesane we're talking to. As long as he's around, OF COURSE it can be done!)
Quote:
Originally posted by Lesane
Not tested but it should work:
Find in banuser.php:
PHP Code:
if ($action=="admininsert") {
Add under it:
PHP Code:
$noadmin=$DB_site->query_first("SELECT * FROM user WHERE userid=$userid");
if ($noadmin[usergroupid]=="6") {
echo "Oops, you try to ban an admin wich is not allowed!";
echo "<br>Try again by clicking <a href=\"banuser.php?action=adminadd\" target=\"_blank\"><u>here</u></a>.";
cpfooter();
exit();
}
|