function bb2_banned($settings, $package, $key, $previous_key = false) { require_once BB2_CORE . "/banned.inc.php"; bb2_display_denial($settings, $key, $previous_key); bb2_log_denial($settings, $package, $key, $previous_key); if (is_callable('bb2_banned_callback')) { bb2_banned_callback($settings, $package, $key); } // Penalize the spammers some more require_once BB2_CORE . "/housekeeping.inc.php"; bb2_housekeeping($settings, $package); die; }
function bb2_banned($settings, $package, $key, $previous_key = false) { // Some spambots hit too hard. Slow them down a bit. sleep(2); require_once BB2_CORE . "/banned.inc.php"; bb2_display_denial($settings, $package, $key, $previous_key); bb2_log_denial($settings, $package, $key, $previous_key); if (is_callable('bb2_banned_callback')) { bb2_banned_callback($settings, $package, $key); } // Penalize the spammers some more bb2_housekeeping($settings, $package); die; }