From f5dcd7f397592d2e271e80f97555701fb4ad3a66 Mon Sep 17 00:00:00 2001 From: stevetruckstuff Date: Thu, 6 Apr 2006 19:58:31 +0000 Subject: [PATCH] Added displaying of error messages to login page. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11038 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/login.php | 10 +++++++--- templates/default/login.tpl | 4 +--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/login.php b/src/login.php index a758525c..e5efc68a 100644 --- a/src/login.php +++ b/src/login.php @@ -47,7 +47,6 @@ $_SESSION=array(); * versions. Produces warning on login page. Bug should be fixed only in 4.3.0 */ -//exit; /** * This detects if the IMAP server has logins disabled, and if so, * squelches the display of the login form and puts up a message @@ -131,7 +130,7 @@ if (isset($org_logo) && $org_logo) { $org_logo_height>0) { $width_and_height .= " height=\"$org_logo_height\""; } - + $logo_str = 'assign('color', $color); $oTemplate->assign('logo_str', $logo_str); $oTemplate->assign('sm_attribute_str', $sm_attribute_str); $oTemplate->assign('org_name_str', sprintf (_("%s Login"), $org_name)); @@ -170,4 +168,10 @@ $oTemplate->assign('password_field', $password_field); $oTemplate->assign('submit_field', addSubmit(_("Login"))); $oTemplate->display('login.tpl'); + +// Turn off delayed error handling to make sure all errors are dumped. +$oErrorHandler->delayedErrors(false); + +trigger_error('login'); +$oTemplate->display('footer.tpl'); ?> \ No newline at end of file diff --git a/templates/default/login.tpl b/templates/default/login.tpl index 8da056c2..d68c38fc 100644 --- a/templates/default/login.tpl +++ b/templates/default/login.tpl @@ -60,6 +60,4 @@ extract($t); - - - + \ No newline at end of file -- 2.25.1