From a34d6890fedb616a14007a34288b7ed4bc859d7f Mon Sep 17 00:00:00 2001 From: kink Date: Wed, 31 Mar 2004 11:47:15 +0000 Subject: [PATCH] Use form functions on login.php git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@6979 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/login.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/login.php b/src/login.php index f124ccef..0c17a264 100644 --- a/src/login.php +++ b/src/login.php @@ -26,6 +26,7 @@ require_once(SM_PATH . 'functions/page_header.php'); require_once(SM_PATH . 'functions/html.php'); require_once(SM_PATH . 'functions/global.php'); require_once(SM_PATH . 'functions/imap_general.php'); +require_once(SM_PATH . 'functions/forms.php'); /** * $squirrelmail_language is set by a cookie when the user selects @@ -120,7 +121,7 @@ if (isset($org_logo) && $org_logo) { } if(sqgetGlobalVar('mailto', $mailto)) { - $rcptaddress = '' . "\n"; + $rcptaddress = addHidden('mailto', $mailto); } else { $rcptaddress = ''; } @@ -150,7 +151,7 @@ echo html_tag( 'table', _("Name:") , 'right', '', 'width="30%"' ) . html_tag( 'td', - '' , + addInput($username_form_name, $loginname_value), 'left', '', 'width="*"' ) ) . "\n" . html_tag( 'tr', @@ -158,10 +159,10 @@ echo html_tag( 'table', _("Password:") , 'right', '', 'width="30%"' ) . html_tag( 'td', - '' . "\n" . - '' . "\n" . + addPwField($password_form_name). + addHidden('js_autodetect_results', SMPREF_JS_OFF). $rcptaddress . - '' . "\n", + addHidden('just_logged_in', '1'), 'left', '', 'width="*"' ) ) , 'center', $color[4], 'border="0" width="100%"' ) , @@ -169,7 +170,7 @@ echo html_tag( 'table', ) . html_tag( 'tr', html_tag( 'td', - '
', + '
'. addSubmit(_("Login")) .'
', 'left' ) ), '', $color[4], 'border="0" width="350"' ) . '', -- 2.25.1