From 76ec546799e5b8919a22548e7559aba7f50cd78b Mon Sep 17 00:00:00 2001 From: Michael Klier Date: Tue, 17 Nov 2009 09:59:12 +0100 Subject: make register/resendpwd accessible throught the DW form object darcs-hash:20091117085912-23886-ad3c4c9c980aae225d46f287d4f45b1a6c80119b.gz --- inc/html.php | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/inc/html.php b/inc/html.php index 0b53b4919..f01f99cdc 100644 --- a/inc/html.php +++ b/inc/html.php @@ -62,21 +62,22 @@ function html_login(){ } $form->addElement(form_makeButton('submit', '', $lang['btn_login'])); $form->endFieldset(); - html_form('login', $form); if($auth && $auth->canDo('addUser') && actionOK('register')){ - print '

'; - print $lang['reghere']; - print ': '.$lang['register'].''; - print '

'; + $form->addElement('

' + . $lang['reghere'] + . ': '.$lang['register'].'' + . '

'); } if ($auth && $auth->canDo('modPass') && actionOK('resendpwd')) { - print '

'; - print $lang['pwdforget']; - print ': '.$lang['btn_resendpwd'].''; - print '

'; + $form->addElement('

' + . $lang['pwdforget'] + . ': '.$lang['btn_resendpwd'].'' + . '

'); } + + html_form('login', $form); print ''.NL; } -- cgit v1.2.3