I also have suggestion regarding banned IPs. I concluded that it's better not to block forum posts / main page etc. when an IP is blocked (IP can be shared by many people and some of them may be useful clicking on ads or something ;) So I'd suggest to change this:
if($user_id!=1 and db_ipCheck($thisIp,$thisIpMask,$user_id)) {
$banRes=db_ipCheck($thisIp,$thisIpMask,$user_id);
if($banRes===TRUE) $banRes='';
$title=$sitename.' - '.$l_forbidden;
echo ParseTpl(makeUp('main_access_denied')); exit;
}
to this below (to only ban unlogged users for 'registernew', 'authorize', 'sendirect' actions). That would make the site's content visible to banned IPs and prevent unregisterd abusers from posting (registered users can be blocked manually if needed).
if($user_id==0 and ($action=='registernew' or $action=='authorize' or $action=='senddirect') and db_ipCheck($thisIp,$thisIpMask,$user_id)) {
$banRes=db_ipCheck($thisIp,$thisIpMask,$user_id);
if($banRes===TRUE) $banRes='';
$title=$sitename.' - '.$l_forbidden;
echo ParseTpl(makeUp('main_access_denied')); exit;
}