From 35fa6f01e6d245929ef062e36ff42509f9db42df Mon Sep 17 00:00:00 2001 From: Robbie Antenesse Date: Thu, 13 Jun 2019 11:11:42 -0600 Subject: [PATCH] Tweaks to remove warnings; Update footer --- index.php | 11 +++++++---- php/ajax_dictionarymanagement.php | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/index.php b/index.php index b226bdf..f2aa563 100644 --- a/index.php +++ b/index.php @@ -24,8 +24,11 @@ if ($current_user > 0 || !isset($_SESSION['loginfailures']) || (isset($_SESSION[ // 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); + $hoverlockoutmessage = ''; + if (isset($_SESSION['loginlockouttime'])) { + $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'); @@ -419,7 +422,7 @@ if ($display_mode != "build") { @@ -441,7 +444,7 @@ if ($display_mode != "build") { - +