From 84d108855167644226a82106c1d956db12f17e62 Mon Sep 17 00:00:00 2001 From: stevetruckstuff Date: Thu, 24 Aug 2006 20:32:39 +0000 Subject: [PATCH] Add $logo_path var in case template authors want to tweak the logo themselves. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11634 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/login.php | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/login.php b/src/login.php index 807b4067..a1228d4b 100644 --- a/src/login.php +++ b/src/login.php @@ -155,16 +155,13 @@ if (isset($hide_sm_attributions) && !$hide_sm_attributions) { _("By the SquirrelMail Project Team")."
\n"; } -$username_form_name = 'login_username'; -$password_form_name = 'secretkey'; - if(sqgetGlobalVar('mailto', $mailto)) { $rcptaddress = addHidden('mailto', $mailto); } else { $rcptaddress = ''; } -$password_field = addPwField($password_form_name); +$password_field = addPwField('secretkey'); $login_extra = addHidden('js_autodetect_results', SMPREF_JS_OFF). $rcptaddress . addHidden('just_logged_in', '1') . @@ -173,12 +170,13 @@ $login_extra = addHidden('js_autodetect_results', SMPREF_JS_OFF). session_write_close(); $oTemplate->assign('logo_str', $logo_str); +$oTemplate->assign('logo_path', $org_logo); $oTemplate->assign('sm_attribute_str', $sm_attribute_str); $oTemplate->assign('org_name_str', sprintf (_("%s Login"), $org_name)); $oTemplate->assign('login_field_value', $loginname_value); $oTemplate->assign('login_extra', $login_extra); -echo ''."\n"; +echo ''."\n"; echo '
'."\n"; do_hook('login_top'); @@ -188,8 +186,7 @@ echo "
\n"; do_hook('login_bottom'); // Turn off delayed error handling to make sure all errors are dumped. -#$oErrorHandler->delayedErrors(false); +$oErrorHandler->setDelayedErrors(false); -#trigger_error('login'); $oTemplate->display('footer.tpl'); ?> -- 2.25.1