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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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. <br />
  34. <input type="text" name="username" id="username" class="inputtext" placeholder="Username"
  35. value="<?=(!empty($_REQUEST['username']) ? display_str($_REQUEST['username']) : '')?>" />
  36. </td>
  37. </tr>
  38. <tr valign="top">
  39. <td align="left">
  40. <input type="email" name="email" id="email" class="inputtext" placeholder="Email"
  41. value="<?=(!empty($_REQUEST['email']) ? display_str($_REQUEST['email']) : (!empty($InviteEmail) ? display_str($InviteEmail) : ''))?>" />
  42. </td>
  43. </tr>
  44. <tr valign="top">
  45. <td align="left">
  46. <input type="password" minlength="15" name="password" id="new_pass_1" class="inputtext"
  47. placeholder="Password" />
  48. <strong id="pass_strength"></strong>
  49. </td>
  50. </tr>
  51. <tr valign="top">
  52. <td align="left">
  53. <input type="password" minlength="15" name="confirm_password" id="new_pass_2" class="inputtext"
  54. placeholder="Confirm Password" />
  55. <strong id="pass_match"></strong>
  56. <?= $ENV->PW_ADVICE ?>
  57. </td>
  58. </tr>
  59. <tr valign="top">
  60. <td align="left">
  61. <input type="checkbox" name="agereq" id="agereq" value="1" <?php if (!empty($_REQUEST['agereq'])) { ?>
  62. checked="checked"<?php } ?> />
  63. <label for="agereq">I'm 18 years or older</label>
  64. </td>
  65. </tr>
  66. <tr valign="top">
  67. <td align="left">
  68. <input type="checkbox" name="readrules" id="readrules" value="1" <?php if (!empty($_REQUEST['readrules'])) { ?>
  69. checked="checked"<?php } ?> />
  70. <label for="readrules">I'll read the site rules and wiki</label>
  71. </td>
  72. </tr>
  73. <tr valign="top">
  74. <td align="left">
  75. <input type="checkbox" name="readwiki" id="readwiki" value="1" <?php if (!empty($_REQUEST['readwiki'])) { ?>
  76. checked="checked"<?php } ?> />
  77. <label for="readwiki">I consent to the <a href="/legal.php?p=privacy">privacy policy</a></label>
  78. <br /><br />
  79. </td>
  80. </tr>
  81. <tr>
  82. <td colspan="2" align="right"><input type="submit" name="submit" value="Submit" class="submit button-primary" /></td>
  83. </tr>
  84. </table>
  85. </form>
  86. <?php
  87. } # if !$Sent
  88. else { ?>
  89. <p>
  90. An email has been sent to the address that you provided.
  91. After you confirm your email address, you will be able to log into your account.
  92. </p>
  93. <?php
  94. if ($NewInstall) {
  95. echo 'Since this is a new installation, you can log in directly without having to confirm your account.';
  96. }
  97. }
  98. View::show_footer();