Oppaitime's version of Gazelle
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

step1.php 3.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <?
  2. BIC::challenge();
  3. View::show_header('Register');
  4. echo $Val->GenerateJS('registerform');
  5. ?>
  6. <script src="<?=STATIC_SERVER?>functions/validate.js" type="text/javascript"></script>
  7. <script src="<?=STATIC_SERVER?>functions/password_validate.js" type="text/javascript"></script>
  8. <form class="create_form" name="user" id="registerform" method="post" action="" onsubmit="return formVal();">
  9. <div style="width: 500px;">
  10. <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
  11. <?
  12. if (empty($Sent)) {
  13. if (!empty($_REQUEST['invite'])) {
  14. echo '<input type="hidden" name="invite" value="'.display_str($_REQUEST['invite']).'" />'."\n";
  15. }
  16. if (!empty($Err)) {
  17. ?>
  18. <strong class="important_text"><?=$Err?></strong><br /><br />
  19. <? } ?>
  20. <table class="layout" cellpadding="2" cellspacing="1" border="0" align="center">
  21. <tr valign="top">
  22. <td align="right" style="width: 100px;">Username&nbsp;</td>
  23. <td align="left">
  24. <input type="text" name="username" id="username" class="inputtext" placeholder="Username" value="<?=(!empty($_REQUEST['username']) ? display_str($_REQUEST['username']) : '')?>" />
  25. <p>Use common sense when choosing your username. <strong>Do not choose a username that can be associated with your real name.</strong> If you do so, we will not be changing it for you.</p>
  26. </td>
  27. </tr>
  28. <tr valign="top">
  29. <td align="right">Email address&nbsp;</td>
  30. <td align="left">
  31. <input type="email" name="email" id="email" class="inputtext" placeholder="Email" value="<?=(!empty($_REQUEST['email']) ? display_str($_REQUEST['email']) : (!empty($InviteEmail) ? display_str($InviteEmail) : ''))?>" />
  32. </td>
  33. </tr>
  34. <tr valign="top">
  35. <td align="right">Password&nbsp;</td>
  36. <td align="left">
  37. <input type="password" name="password" id="new_pass_1" class="inputtext" placeholder="Password" /> <strong id="pass_strength"></strong>
  38. </td>
  39. </tr>
  40. <tr valign="top">
  41. <td align="right">Verify password&nbsp;</td>
  42. <td align="left">
  43. <input type="password" name="confirm_password" id="new_pass_2" class="inputtext" placeholder="Verify password" /> <strong id="pass_match"></strong>
  44. <p>An acceptable password is 6 characters or longer (please make it longer)</p>
  45. </td>
  46. </tr>
  47. <tr valign="top">
  48. <td></td>
  49. <td align="left">
  50. <input type="checkbox" name="readrules" id="readrules" value="1"<? if (!empty($_REQUEST['readrules'])) { ?> checked="checked"<? } ?> />
  51. <label for="readrules">I will read the rules.</label>
  52. </td>
  53. </tr>
  54. <tr valign="top">
  55. <td></td>
  56. <td align="left">
  57. <input type="checkbox" name="readwiki" id="readwiki" value="1"<? if (!empty($_REQUEST['readwiki'])) { ?> checked="checked"<? } ?> />
  58. <label for="readwiki">I will read the wiki.</label>
  59. </td>
  60. </tr>
  61. <tr valign="top">
  62. <td></td>
  63. <td align="left">
  64. <input type="checkbox" name="agereq" id="agereq" value="1"<? if (!empty($_REQUEST['agereq'])) { ?> checked="checked"<? } ?> />
  65. <label for="agereq">I am 18 years of age or older.</label>
  66. </td>
  67. </tr>
  68. <tr>
  69. <td colspan="2" height="10"></td>
  70. </tr>
  71. <tr>
  72. <td colspan="2" align="right"><input type="submit" name="submit" value="Submit" class="submit" /></td>
  73. </tr>
  74. </table>
  75. <? } else { ?>
  76. An email has been sent to the address that you provided. After you confirm your email address, you will be able to log into your account.
  77. <? if ($NewInstall) {
  78. echo "Since this is a new installation, you can log in directly without having to confirm your account.";
  79. }
  80. } ?>
  81. </div>
  82. </form>
  83. <?
  84. View::show_footer();