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.

disabled.php 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. #declare(strict_types=1);
  3. View::show_header('Disabled');
  4. if (isset($_POST['email']) && FEATURE_EMAIL_REENABLE) {
  5. // Handle auto-enable request
  6. if ($_POST['email'] !== '') {
  7. $Output = AutoEnable::new_request(db_string($_POST['username']), db_string($_POST['email']));
  8. } else {
  9. $Output = "Please enter a valid email address.";
  10. }
  11. $Output .= "<p><a href='login.php?action=disabled'>Back</a></p>";
  12. }
  13. if ((empty($_POST['submit']) || empty($_POST['username'])) && !isset($Output)) {
  14. ?>
  15. <p class="warning">
  16. Your account has been disabled.
  17. This is either due to inactivity or rule violation(s).
  18. </p>
  19. <?php if (FEATURE_EMAIL_REENABLE) { ?>
  20. <p>
  21. If you believe your account was in good standing and was disabled for inactivity, you may request it be re-enabled via
  22. email using the form below.
  23. </p>
  24. <p>
  25. Please use an email service that actually delivers mail.
  26. Outlook/Hotmail is known not to.
  27. </p>
  28. <p>
  29. Most requests are handled within minutes.
  30. If a day or two goes by without a response, try again with a different email or try asking in Slack.
  31. </p>
  32. <form action="" method="POST">
  33. <input type="email" class="inputtext" placeholder="Email address" name="email" required />
  34. <input type="submit" value="Submit" />
  35. <input type="hidden" name="username"
  36. value="<?=$_COOKIE['username']?>" />
  37. </form>
  38. <?php } ?>
  39. <?php
  40. } else {
  41. echo $Output;
  42. }
  43. View::show_footer();