0 || !isset($_SESSION['loginfailures']) || (isset($_SESSION['loginlockouttime']) && time() - $_SESSION['loginlockouttime'] >= 3600)) { // If logged in, never failed, or more than 1 hour has passed, reset login failures. $_SESSION['loginfailures'] = 0; } else { $alertlockoutmessage = "You failed logging in 10 times. To prevent request flooding and hacking attempts, you may not log in or create an account for 1 hour.\\n\\nThe last time this page was loaded, you had been locked out for " . time_elapsed(time() - $_SESSION['loginlockouttime']) . "\\n\\nRefresh the page once the hour has passed."; $hoverlockoutmessage = str_replace("\\n", "\n", $alertlockoutmessage); } require_once(SITE_LOCATION . '/php/notificationconditiontree.php'); ?>