00001 <?php 00002 require "./config.php"; 00003 include $DIR_LIBS."ACTION.php"; 00004 00005 if (isset ($_POST['showform'])&&$_POST['showform']==1) { 00006 $showform = 1; 00007 } 00008 else { 00009 $showform = 0; 00010 } 00011 ?> 00012 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 00013 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja-JP" lang="ja-JP"> 00014 <head> 00015 <meta http-equiv="Content-Type" content="text/html; charset=<?php echo _CHARSET; ?>" /> 00016 <title>Create Member Account</title> 00017 <style type="text/css">@import url(nucleus/styles/manual.css);</style> 00018 </head> 00019 <body> 00020 00021 <h1><?php echo _CREATE_ACCOUNT0?></h1> 00022 00023 <?php 00024 // show form only if Visitors are allowed to create a Member Account 00025 if ($CONF['AllowMemberCreate']==1) { 00026 // if the form is shown the first time no POST data 00027 // will be added as value for the input fields 00028 if ($showform==0) { 00029 ?> 00030 00031 <form method="post" action="createaccount.php"> 00032 00033 <div> 00034 <input type="hidden" name="showform" value="1" /> 00035 <input type="hidden" name="action" value="createaccount" /> 00036 00037 <?php echo _CREATE_ACCOUNT_LOGIN_NAME?> 00038 <br /> 00039 <input name="name" size="20" /> <small>(only a-z, 0-9)</small> 00040 <br /> 00041 <br /> 00042 <?php echo _CREATE_ACCOUNT_REAL_NAME?> 00043 <br /> 00044 <input name="realname" size="40" /> 00045 <br /> 00046 <br /> 00047 <?php echo _CREATE_ACCOUNT_EMAIL?> 00048 <br /> 00049 <input name="email" size="40" /> <small><?php echo _CREATE_ACCOUNT_EMAIL2?></small> 00050 <br /> 00051 <br /> 00052 <?php echo _CREATE_ACCOUNT_URL?> 00053 <br /> 00054 <input name="url" size="60" /> 00055 <br /> 00056 <?php 00057 // add a Captcha challenge or something else 00058 global $manager; 00059 $manager->notify('FormExtra', array('type' => 'membermailform-notloggedin')); 00060 ?> 00061 <br /> 00062 <br /> 00063 <input type="submit" value="<?php echo _CREATE_ACCOUNT_SUBMIT?>" /> 00064 </div> 00065 00066 </form> 00067 <?php 00068 } // close if showfrom ... 00069 else { 00070 // after the from is sent it will be validated 00071 // POST data will be added as value to treat the user with care (;-)) 00072 00073 $a = new ACTION(); 00074 00075 // if createAccount fails it returns an error message 00076 $message = $a->createAccount(); 00077 00078 echo '<span style="font-weight:bold; color:red;">'.htmlspecialchars($message).'</span><br /><br />'; 00079 ?> 00080 00081 <form method="post" action="createaccount.php"> 00082 00083 <div> 00084 <input type="hidden" name="showform" value="1" /> 00085 <input type="hidden" name="action" value="createaccount" /> 00086 00087 <?php echo _CREATE_ACCOUNT_LOGIN_NAME?> 00088 <br /> 00089 <input name="name" size="20" <?php if(isset($_POST['name'])){echo 'value="'.htmlspecialchars($_POST['name']).'"';}?>/> <small>(only a-z, 0-9)</small> 00090 <br /> 00091 <br /> 00092 <?php echo _CREATE_ACCOUNT_REAL_NAME?> 00093 <br /> 00094 <input name="realname" size="40" <?php if(isset($_POST['realname'])){echo 'value="'.htmlspecialchars($_POST['realname']).'"';}?>/> 00095 <br /> 00096 <br /> 00097 <?php echo _CREATE_ACCOUNT_EMAIL?> 00098 <br /> 00099 <input name="email" size="40" <?php if(isset($_POST['email'])){echo 'value="'.htmlspecialchars($_POST['email']).'"';}?>/> <small><?php echo _CREATE_ACCOUNT_EMAIL2?></small> 00100 <br /> 00101 <br /> 00102 <?php echo _CREATE_ACCOUNT_URL?> 00103 <br /> 00104 <input name="url" size="60" <?php if(isset($_POST['url'])){echo 'value="'.htmlspecialchars($_POST['url']).'"';}?>/> 00105 <br /> 00106 <?php 00107 // add a Captcha challenge or something else 00108 global $manager; 00109 $manager->notify('FormExtra', array('type' => 'membermailform-notloggedin')); 00110 ?> 00111 <br /> 00112 <br /> 00113 <input type="submit" value="<?php echo _CREATE_ACCOUNT_SUBMIT?>" /> 00114 00115 00116 </form> 00117 <?php 00118 } // close else showform ... 00119 00120 } 00121 else { 00122 echo _CREATE_ACCOUNT1; 00123 echo _CREATE_ACCOUNT2; 00124 } 00125 ?> 00126 00127 00128 </body> 00129 </html>