BioTorrents.de’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 4.0KB

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