I have no clue on what I am talking about, but I did not get it to work in 6.5 without some changes.
Since $isbanned always was 1 in my test, i was banning another moderator as test... this is when it always sent an banned PM (maybe mail) even if the $hasaccess checkbox was not changed... is this check if status moderator to avoid banning of mods? I never tried banning a normal user btw. but are experimenting there maybe now... if i have time.
I changed like this, and now it works for me, thought i dont really know what I have done
if ($hasaccess == "1") {
$isbanned = "0";
}
else {
$isbanned = "1";
}
Then later when one used showuser.php to look for the ban status it always said permanently banned... so i had to change the list(x,x,x,x,x) thing to fetch variables $banover and $banreason from the query...
list(xxxxxxxxxxxxxxxx,$floodcontrol,$banover,$banreason)=$dbh->fetch_array($sth);
have no clue what I am doing wrong from the start, does any of this make any sense, i am really newbie in php things...