From 4720787ca018e3d701479698f02b5a1df491c466 Mon Sep 17 00:00:00 2001 From: Wesley Miaw Date: Tue, 25 Nov 2003 22:13:56 +0000 Subject: Fleshed out invalid login error response. Only checks for invalid logins for non-HTTP authentication (even if there is no calendar map for an HTTP authenticated user). Switched some include() directives to include_once() to prevent possible future redeclaration errors. --- includes/event.php | 2 +- includes/login.php | 13 +++++++------ includes/todo.php | 4 ++-- 3 files changed, 10 insertions(+), 9 deletions(-) (limited to 'includes') diff --git a/includes/event.php b/includes/event.php index ffa0308..8de5d20 100644 --- a/includes/event.php +++ b/includes/event.php @@ -1,6 +1,6 @@ '; } - // For Wesley - $login_message = ($user_passed == TRUE) ? $invalid_login_lang : $login_lang; + // If the attempted login was invalid, change the box title. + $login_message = ($invalid_login == TRUE) ? "$invalid_login_lang" : ''; echo << -
{$login_message}
+
{$login_lang}
+ {$login_message} - - + + diff --git a/includes/todo.php b/includes/todo.php index f09cce9..b4cefbd 100644 --- a/includes/todo.php +++ b/includes/todo.php @@ -1,8 +1,8 @@
{$username_lang}:
Password:{$password_lang}: