OSDN Git Service

Code Cleanup(BLOG.php/ADMIN.php)
[nucleus-jp/nucleus-jp-ancient.git] / utf8 / createaccount.php
index 1e7fe65..9555d2c 100644 (file)
@@ -22,85 +22,85 @@ require './config.php';
 ?>\r
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\r
 <html <?php echo _HTML_XML_NAME_SPACE_AND_LANG_CODE; ?>>\r
-       <head>\r
-               <meta http-equiv="Content-Type" content="text/html; charset=<?php echo _CHARSET; ?>" />\r
-               <title><?php echo _CREATE_ACCOUNT_TITLE ?></title>\r
-               <style type="text/css">@import url(nucleus/styles/manual.css);</style>\r
-       </head>\r
-       <body>\r
+    <head>\r
+        <meta http-equiv="Content-Type" content="text/html; charset=<?php echo _CHARSET; ?>" />\r
+        <title><?php echo _CREATE_ACCOUNT_TITLE ?></title>\r
+        <style type="text/css">@import url(nucleus/styles/manual.css);</style>\r
+    </head>\r
+    <body>\r
 \r
-               <h1><?php echo _CREATE_ACCOUNT0; ?></h1>\r
+        <h1><?php echo _CREATE_ACCOUNT0; ?></h1>\r
 <?php\r
 // show form only if Visitors are allowed to create a Member Account\r
 if ($CONF['AllowMemberCreate']==1) { \r
-       if (isset($_POST['showform']) && $_POST['showform'] == 1) {\r
-               include $DIR_LIBS . 'ACTION.php';\r
-               // after the from is sent it will be validated\r
-               // POST data will be added as value to treat the user with care (;-))\r
-               $a = new ACTION();\r
-               // if createAccount fails it returns an error message \r
-               $message = '<span style="font-weight:bold; color:red;">' . htmlspecialchars($a->createAccount()) . '</span><br /><br />';\r
-               if (isset($_POST['name']))\r
-                       $name     = 'value="' . htmlspecialchars($_POST['name']) . '" ';\r
-               if (isset($_POST['realname']))\r
-                       $realname = 'value="' . htmlspecialchars($_POST['realname']) . '" ';\r
-               if (isset($_POST['email']))\r
-                       $email    = 'value="' . htmlspecialchars($_POST['email']) . '" ';\r
-               if (isset($_POST['url']))\r
-                       $url      = 'value="' . htmlspecialchars($_POST['url']) . '" ';\r
+    if (isset($_POST['showform']) && $_POST['showform'] == 1) {\r
+        include $DIR_LIBS . 'ACTION.php';\r
+        // after the from is sent it will be validated\r
+        // POST data will be added as value to treat the user with care (;-))\r
+        $a = new ACTION();\r
+        // if createAccount fails it returns an error message \r
+        $message = '<span style="font-weight:bold; color:red;">' . htmlspecialchars($a->createAccount()) . '</span><br /><br />';\r
+        if (isset($_POST['name']))\r
+            $name     = 'value="' . htmlspecialchars($_POST['name']) . '" ';\r
+        if (isset($_POST['realname']))\r
+            $realname = 'value="' . htmlspecialchars($_POST['realname']) . '" ';\r
+        if (isset($_POST['email']))\r
+            $email    = 'value="' . htmlspecialchars($_POST['email']) . '" ';\r
+        if (isset($_POST['url']))\r
+            $url      = 'value="' . htmlspecialchars($_POST['url']) . '" ';\r
 //             $showform = 1;\r
 //     } else {\r
 //             $showform = 0;\r
-               echo $message;\r
-       }\r
+        echo $message;\r
+    }\r
 ?>\r
-               <form method="post" action="createaccount.php">\r
-                       <div>\r
-                               <input type="hidden" name="showform" value="1" />\r
-                               <input type="hidden" name="action" value="createaccount" />\r
-                               <?php echo _CREATE_ACCOUNT_LOGIN_NAME; ?>\r
-                               <br />\r
-                               <input name="name" size="20" <?php echo $name; ?>/> <small><?php echo _CREATE_ACCOUNT_LOGIN_NAME_VALID; ?></small>\r
-                               <br />\r
-                               <br />\r
-                               <?php echo _CREATE_ACCOUNT_REAL_NAME; ?>\r
-                               <br />\r
-                               <input name="realname" size="40" <?php echo $realname; ?>/>\r
-                               <br />\r
-                               <br />\r
-                               <?php echo _CREATE_ACCOUNT_EMAIL; ?>\r
-                               <br />\r
-                               <input name="email" size="40" <?php echo $email; ?>/> <small><?php echo _CREATE_ACCOUNT_EMAIL2; ?></small>\r
-                               <br />\r
-                               <br />\r
-                               <?php echo _CREATE_ACCOUNT_URL; ?>\r
-                               <br />\r
-                               <input name="url" size="60" <?php echo $url; ?>/>\r
-                               <br />\r
+        <form method="post" action="createaccount.php">\r
+            <div>\r
+                <input type="hidden" name="showform" value="1" />\r
+                <input type="hidden" name="action" value="createaccount" />\r
+                <?php echo _CREATE_ACCOUNT_LOGIN_NAME; ?>\r
+                <br />\r
+                <input name="name" size="32" maxlength="32" <?php echo $name; ?>/> <small><?php echo _CREATE_ACCOUNT_LOGIN_NAME_VALID; ?></small>\r
+                <br />\r
+                <br />\r
+                <?php echo _CREATE_ACCOUNT_REAL_NAME; ?>\r
+                <br />\r
+                <input name="realname" size="40" <?php echo $realname; ?>/>\r
+                <br />\r
+                <br />\r
+                <?php echo _CREATE_ACCOUNT_EMAIL; ?>\r
+                <br />\r
+                <input name="email" size="40" <?php echo $email; ?>/> <small><?php echo _CREATE_ACCOUNT_EMAIL2; ?></small>\r
+                <br />\r
+                <br />\r
+                <?php echo _CREATE_ACCOUNT_URL; ?>\r
+                <br />\r
+                <input name="url" size="60" <?php echo $url; ?>/>\r
+                <br />\r
 <?php\r
-               global $manager;\r
-               // add extra fields from Plugins, like NP_Profile\r
-               $data = array(\r
-                       'type'      => 'createaccount.php',\r
-                       'prelabel'  => '',\r
-                       'postlabel' => '<br />',\r
-                       'prefield'  => '',\r
-                       'postfield' => '<br /><br />'\r
-               );\r
-               $manager->notify('RegistrationFormExtraFields', $data);\r
-               // add a Captcha challenge or something else\r
-               $manager->notify('FormExtra', array('type' => 'membermailform-notloggedin'));\r
+        global $manager;\r
+        // add extra fields from Plugins, like NP_Profile\r
+        $data = array(\r
+            'type'      => 'createaccount.php',\r
+            'prelabel'  => '',\r
+            'postlabel' => '<br />',\r
+            'prefield'  => '',\r
+            'postfield' => '<br /><br />'\r
+        );\r
+        $manager->notify('RegistrationFormExtraFields', $data);\r
+        // add a Captcha challenge or something else\r
+        $manager->notify('FormExtra', array('type' => 'membermailform-notloggedin'));\r
 ?>\r
-                               <br />\r
-                               <br />\r
-                               <input type="submit" value="<?php echo _CREATE_ACCOUNT_SUBMIT; ?>" />\r
-                       </div>\r
-               </form>\r
+                <br />\r
+                <br />\r
+                <input type="submit" value="<?php echo _CREATE_ACCOUNT_SUBMIT; ?>" />\r
+            </div>\r
+        </form>\r
 <?php\r
 } else {\r
-       echo _CREATE_ACCOUNT1;\r
-       echo _CREATE_ACCOUNT2;\r
+    echo _CREATE_ACCOUNT1;\r
+    echo _CREATE_ACCOUNT2;\r
 }\r
 ?>\r
-       </body>\r
+    </body>\r
 </html>\r