4) { if (!$debug) { if (iMEMBER && $settings['flood_autoban'] == "1") { require_once INCLUDES."sendmail_include.php"; require_once INCLUDES."suspend_include.php"; dbquery("UPDATE ".DB_USERS." SET user_status='4', user_actiontime='0' WHERE user_id='".$userdata['user_id']."'"); suspend_log($userdata['user_id'], 4, $locale['global_440'], TRUE); $message = str_replace("[USER_NAME]", $userdata['user_name'], $locale['global_442']); $message = str_replace("[USER_IP]", USER_IP, $message); $message = str_replace("[SITENAME]", $settings['sitename'], $message); $message = str_replace("[SITE_EMAIL]", $settings['siteemail'], $message); $message = str_replace("[SITEUSERNAME]", $settings['siteusername'], $message); $subject = str_replace("[SITENAME]", $settings['sitename'], $locale['global_441']); sendemail($userdata['user_name'], $userdata['user_email'], $settings['siteusername'], $settings['siteemail'], $subject, $message); } else if (!iMEMBER) { dbquery("INSERT INTO ".DB_BLACKLIST." (blacklist_ip, blacklist_ip_type, blacklist_email, blacklist_reason) VALUES ('".USER_IP."', '".USER_IP_TYPE."', '', '".$locale['global_440']."')"); } } else { addNotice('info', "DEBUG MESSAGE: Triggered flood control action due to repeated offences. This could've resulted in a ban or suspension"); } } } } } return $flood; }