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 3.5KB

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