2 include "./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">
15 <title>Create Member Account</title>
16 <style type="text/css">@import url(nucleus/styles/manual.css);</style>
20 <h1>Create Account</h1>
23 // show form only if Visitors are allowed to create a Member Account
24 if ($CONF['AllowMemberCreate']==1) {
25 // if the form is shown the first time no POST data
26 // will be added as value for the input fields
30 <form method="post" action="createaccount.php">
33 <input type="hidden" name="showform" value="1" />
34 <input type="hidden" name="action" value="createaccount" />
36 Login Name (required):
38 <input name="name" size="20" /> <small>(only a-z, 0-9)</small>
43 <input name="realname" size="40" />
48 <input name="email" size="40" /> <small>(must be valid, because an activation link will be sent over there)</small>
53 <input name="url" size="60" />
56 // add a Captcha challenge or something else
58 $manager->notify('FormExtra', array('type' => 'membermailform-notloggedin'));
62 <input type="submit" value="Create Account" />
67 } // close if showfrom ...
69 // after the from is sent it will be validated
70 // POST data will be added as value to treat the user with care (;-))
74 // if createAccount fails it returns an error message
75 $message = $a->createAccount();
77 echo '<span style="font-weight:bold; color:red;">'.$message.'</span><br /><br />';
80 <form method="post" action="createaccount.php">
83 <input type="hidden" name="showform" value="1" />
84 <input type="hidden" name="action" value="createaccount" />
86 Login Name (required):
88 <input name="name" size="20" <?php if(isset($_POST['name'])){echo 'value="'.$_POST['name'].'"';}?>/> <small>(only a-z, 0-9)</small>
93 <input name="realname" size="40" <?php if(isset($_POST['realname'])){echo 'value="'.$_POST['realname'].'"';}?>/>
98 <input name="email" size="40" <?php if(isset($_POST['email'])){echo 'value="'.$_POST['email'].'"';}?>/> <small>(must be valid, because an activation link will be sent over there)</small>
103 <input name="url" size="60" <?php if(isset($_POST['url'])){echo 'value="'.$_POST['url'].'"';}?>/>
106 // add a Captcha challenge or something else
108 $manager->notify('FormExtra', array('type' => 'membermailform-notloggedin'));
112 <input type="submit" value="Create Account" />
117 } // close else showform ...
121 echo 'Visitors are not allowed to create a Member Account.<br /><br />';
122 echo 'Please contact the website administrator for more information.';