summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorMichael Klier <chi@chimeric.de>2009-11-17 09:59:12 +0100
committerMichael Klier <chi@chimeric.de>2009-11-17 09:59:12 +0100
commit76ec546799e5b8919a22548e7559aba7f50cd78b (patch)
tree37e437f8075635e384593af4fe9d29ece0f4d261 /inc
parent6fc3aa1afd3b25c8ada5bd8245997e0fa3a8cdee (diff)
downloadrpg-76ec546799e5b8919a22548e7559aba7f50cd78b.tar.gz
rpg-76ec546799e5b8919a22548e7559aba7f50cd78b.tar.bz2
make register/resendpwd accessible throught the DW form object
darcs-hash:20091117085912-23886-ad3c4c9c980aae225d46f287d4f45b1a6c80119b.gz
Diffstat (limited to 'inc')
-rw-r--r--inc/html.php19
1 files 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 '<p>';
- print $lang['reghere'];
- print ': <a href="'.wl($ID,'do=register').'" rel="nofollow" class="wikilink1">'.$lang['register'].'</a>';
- print '</p>';
+ $form->addElement('<p>'
+ . $lang['reghere']
+ . ': <a href="'.wl($ID,'do=register').'" rel="nofollow" class="wikilink1">'.$lang['register'].'</a>'
+ . '</p>');
}
if ($auth && $auth->canDo('modPass') && actionOK('resendpwd')) {
- print '<p>';
- print $lang['pwdforget'];
- print ': <a href="'.wl($ID,'do=resendpwd').'" rel="nofollow" class="wikilink1">'.$lang['btn_resendpwd'].'</a>';
- print '</p>';
+ $form->addElement('<p>'
+ . $lang['pwdforget']
+ . ': <a href="'.wl($ID,'do=resendpwd').'" rel="nofollow" class="wikilink1">'.$lang['btn_resendpwd'].'</a>'
+ . '</p>');
}
+
+ html_form('login', $form);
print '</div>'.NL;
}