Please any ideas for this?
I really need it!!
This is the function from vBulletin:
PHP Code:
// ###################### Start checkipban #######################
function checkipban() {
// checkes to see if the current ip address is banned
global $enablebanning,$banip,$webmasteremail,$session;
$banip = trim($banip);
if ($enablebanning==1 and $banip!="") {
$ipaddress=getenv("REMOTE_ADDR");
$addresses=explode(" ", preg_replace("/[[:space:]]+/", " ", $banip) );
while (list($key,$val)=each($addresses)) {
if (strstr(" ".$ipaddress," ".trim($val))!="") {
eval("standarderror(\"".gettemplate("error_banip")."\");");
}
}
}
}