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. --- functions/ical_parser.php | 10 +++++----- functions/init.inc.php | 24 +++++++++++++++++++----- includes/event.php | 2 +- includes/login.php | 13 +++++++------ includes/todo.php | 4 ++-- 5 files changed, 34 insertions(+), 19 deletions(-) diff --git a/functions/ical_parser.php b/functions/ical_parser.php index e2d9a97..fe77dd9 100644 --- a/functions/ical_parser.php +++ b/functions/ical_parser.php @@ -1,11 +1,11 @@ $username, 'password' => $password)); setcookie('phpicalendar_login', $the_cookie, time()+(60*60*24*7*12*10), '/', $cookie_uri, 0); 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}: