2 require "./config.php";
3 include $DIR_LIBS."ACTION.php";
5 if (isset ($_POST['showform'])&&$_POST['showform']==1) {
12 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
13 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja-JP" lang="ja-JP">
15 <meta http-equiv="Content-Type" content="text/html; charset=<?php echo _CHARSET; ?>" />
16 <title>Create Member Account</title>
17 <style type="text/css">@import url(nucleus/styles/manual.css);</style>
21 <h1><?php echo _CREATE_ACCOUNT0?></h1>
24 // show form only if Visitors are allowed to create a Member Account
25 if ($CONF['AllowMemberCreate']==1) {
26 // if the form is shown the first time no POST data
27 // will be added as value for the input fields
31 <form method="post" action="createaccount.php">
34 <input type="hidden" name="showform" value="1" />
35 <input type="hidden" name="action" value="createaccount" />
37 <?php echo _CREATE_ACCOUNT_LOGIN_NAME?>
39 <input name="name" size="20" /> <small>(only a-z, 0-9)</small>
42 <?php echo _CREATE_ACCOUNT_REAL_NAME?>
44 <input name="realname" size="40" />
47 <?php echo _CREATE_ACCOUNT_EMAIL?>
49 <input name="email" size="40" /> <small><?php echo _CREATE_ACCOUNT_EMAIL2?></small>
52 <?php echo _CREATE_ACCOUNT_URL?>
54 <input name="url" size="60" />
57 // add a Captcha challenge or something else
59 $manager->notify('FormExtra', array('type' => 'membermailform-notloggedin'));
63 <input type="submit" value="<?php echo _CREATE_ACCOUNT_SUBMIT?>" />
68 } // close if showfrom ...
70 // after the from is sent it will be validated
71 // POST data will be added as value to treat the user with care (;-))
75 // if createAccount fails it returns an error message
76 $message = $a->createAccount();
78 echo '<span style="font-weight:bold; color:red;">'.htmlspecialchars($message).'</span><br /><br />';
81 <form method="post" action="createaccount.php">
84 <input type="hidden" name="showform" value="1" />
85 <input type="hidden" name="action" value="createaccount" />
87 <?php echo _CREATE_ACCOUNT_LOGIN_NAME?>
89 <input name="name" size="20" <?php if(isset($_POST['name'])){echo 'value="'.htmlspecialchars($_POST['name']).'"';}?>/> <small>(only a-z, 0-9)</small>
92 <?php echo _CREATE_ACCOUNT_REAL_NAME?>
94 <input name="realname" size="40" <?php if(isset($_POST['realname'])){echo 'value="'.htmlspecialchars($_POST['realname']).'"';}?>/>
97 <?php echo _CREATE_ACCOUNT_EMAIL?>
99 <input name="email" size="40" <?php if(isset($_POST['email'])){echo 'value="'.htmlspecialchars($_POST['email']).'"';}?>/> <small><?php echo _CREATE_ACCOUNT_EMAIL2?></small>
102 <?php echo _CREATE_ACCOUNT_URL?>
104 <input name="url" size="60" <?php if(isset($_POST['url'])){echo 'value="'.htmlspecialchars($_POST['url']).'"';}?>/>
107 // add a Captcha challenge or something else
109 $manager->notify('FormExtra', array('type' => 'membermailform-notloggedin'));
113 <input type="submit" value="<?php echo _CREATE_ACCOUNT_SUBMIT?>" />
118 } // close else showform ...
122 echo _CREATE_ACCOUNT1;
123 echo _CREATE_ACCOUNT2;