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

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