summaryrefslogtreecommitdiff
path: root/inc/html.php
diff options
context:
space:
mode:
authormatthias.grimm <matthias.grimm@users.sourceforge.net>2005-05-08 22:01:29 +0200
committermatthias.grimm <matthias.grimm@users.sourceforge.net>2005-05-08 22:01:29 +0200
commitcab2716ac2fbdb0903e4d1c357c8fb630fdd6b0d (patch)
tree60e0f46e797d406c3f15c6d9275b5208596476bf /inc/html.php
parent7c37db8ace6aa37def9e7e926b8e8be34d4cde82 (diff)
downloadrpg-cab2716ac2fbdb0903e4d1c357c8fb630fdd6b0d.tar.gz
rpg-cab2716ac2fbdb0903e4d1c357c8fb630fdd6b0d.tar.bz2
user registration without email
This patch extends the user registration with a more direct way without the need for an valid email address. The user password is queried in the registration form and not automatically generated and sent by email. This mode could be configured with the new option 'autopasswd'. Some new texts were added for translation but only english and german translation databases have been updated yet. darcs-hash:20050508200129-45302-ad4f2cf1d18514c76373cb6d6015e74712638402.gz
Diffstat (limited to 'inc/html.php')
-rw-r--r--inc/html.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/inc/html.php b/inc/html.php
index e6cf77ab0..0b88d813a 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -741,6 +741,7 @@ function html_msgarea(){
*/
function html_register(){
global $lang;
+ global $conf;
global $ID;
print p_locale_xhtml('register');
@@ -755,6 +756,22 @@ function html_register(){
<?=$lang['user']?>
<input type="text" name="login" class="edit" size="50" value="<?=formText($_POST['login'])?>" />
</label><br />
+
+ <?php
+ if (!$conf['autopasswd']) {
+ ?>
+ <label>
+ <?=$lang['pass']?>
+ <input type="password" name="pass" class="edit" size="50" />
+ </label><br />
+ <label>
+ <?=$lang['passchk']?>
+ <input type="password" name="passchk" class="edit" size="50" />
+ </label><br />
+ <?php
+ }
+ ?>
+
<label>
<?=$lang['fullname']?>
<input type="text" name="fullname" class="edit" size="50" value="<?=formText($_POST['fullname'])?>" />