/** * Detect if the IP should be banned. * * @return bool result */ static function detect_ban() { $ip = $_SERVER["REMOTE_ADDR"]; $ban = false; $ban = gdsrBlgDB::check_ip_single($ip); if (!$ban) { $ban = gdsrBlgDB::check_ip_range($ip); } if (!$ban) { $ban = gdsrBlgDB::check_ip_mask($ip); } return $ban; }