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=UTF-8" />
16 <title>Create Member Account</title>
17 <style type="text/css">@import url(nucleus/styles/manual.css);</style>
21 <h1>Create Account</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 Login Name (required):
39 <input name="name" size="20" /> <small>(only a-z, 0-9)</small>
44 <input name="realname" size="40" />
49 <input name="email" size="40" /> <small>(must be valid, because an activation link will be sent over there)</small>
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="Create Account" />
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 Login Name (required):
89 <input name="name" size="20" <?php if(isset($_POST['name'])){echo 'value="'.htmlspecialchars($_POST['name']).'"';}?>/> <small>(only a-z, 0-9)</small>
94 <input name="realname" size="40" <?php if(isset($_POST['realname'])){echo 'value="'.htmlspecialchars($_POST['realname']).'"';}?>/>
99 <input name="email" size="40" <?php if(isset($_POST['email'])){echo 'value="'.htmlspecialchars($_POST['email']).'"';}?>/> <small>(must be valid, because an activation link will be sent over there)</small>
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="Create Account" />
118 } // close else showform ...
122 echo 'Visitors are not allowed to create a Member Account.<br /><br />';
123 echo 'Please contact the website administrator for more information.';