Quote:
Originally posted by Smoothie
It would be great if the person who created this hack could lend some assistance. I would like for my mods to be able to temp ban without the risk of one of them banning me.
|
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();
}