- else
- {
- /* No information for new user given, ouput a page for registration */
- echo "<p><br /><strong> IMPORTANT: passwords are going over the net as clear text, so pick an easy password. ".
- "No need to pick anything complicated here ;)<br />";
- echo "N.B. Your email address will be exposed to other players whom you play games with. ";
- echo "<br /><br /></strong></p>";
- ?>
- <form action="index.php?action=register" method="post">
- <fieldset>
- <legend>Register</legend>
- <table>
- <tr>
- <td><label for="Rfullname">Full name:</label></td>
- <td><input type="text" id="Rfullname" name="Rfullname" size="20" maxlength="30" /> </td>
- </tr><tr>
- <td><label for="Remail">Email:</label></td>
- <td><input type="text" id="Remail" name="Remail" size="20" maxlength="30" /></td>
- </tr><tr>
- <td><label for="Rpassword">Password(will be displayed in cleartext on the next page):</label></td>
- <td><input type="password" id="Rpassword" name="Rpassword" size="20" maxlength="30" /></td>
- </tr><tr>
- <td><label for="Rtimezone">Timezone:</label></td>
- <td>
-<?php
- output_select_timezone("Rtimezone");
-?>
- </td>
- </tr><tr>
- </tr><tr>
-<?php
- /* random number to select robotproof question */
- $rand_number = mt_rand(0,3); /* to get numbers between 0 and 4 */
- $Robotproof = "Robotproof".$rand_number;
-?>
- <td><label for="Robotproof">Please answer this question: <?php echo output_robotproof($rand_number); ?></label></td>
-<?php
- echo "<td><input type=\"text\" id=\"$Robotproof\" name=\"$Robotproof\" size=\"20\" maxlength=\"30\" /></td>\n";
-?>
- </tr><tr>
- <td colspan="2"> <input type="submit" value="register" /></td>
- </tr>
- </table>
- </fieldset>
- </form>
-<?php
- }