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.

delete_email.php 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. #declare(strict_types=1);
  3. if (!isset($_POST['emails']) || !is_array($_POST['emails'])) {
  4. error('No email requested');
  5. }
  6. if (!apcu_exists('DBKEY')) {
  7. error(403);
  8. }
  9. View::show_header('Email Expunge Request');
  10. ?>
  11. <div class="header">
  12. <h2>Email Expunge Request</h2>
  13. </div>
  14. <form class="create_form box pad" name="emaildelete" action="delete.php" method="post">
  15. <input type="hidden" name="auth"
  16. value="<?=$LoggedUser['AuthKey']?>" />
  17. <?php foreach ($_POST['emails'] as $email) { ?>
  18. <input type="hidden" name="emails[]" value="<?=$email?>" />
  19. <?php } ?>
  20. <input type="hidden" name="action" value="takeemail" />
  21. <table cellspacing="1" cellpadding="3" border="0" class="layout" width="100%">
  22. <tr>
  23. <td class="label">Email:</td>
  24. <td>
  25. <input type="text" size="30"
  26. value="<?=Crypto::decrypt($_POST['emails'][0])?>"
  27. disabled />
  28. </td>
  29. </tr>
  30. <tr>
  31. <td class="label">Reason (Optional):</td>
  32. <td>
  33. <textarea name="reason" rows="10"></textarea>
  34. </td>
  35. </tr>
  36. <tr>
  37. <td></td>
  38. <td>
  39. <input type="submit" value="Submit" />
  40. </td>
  41. </tr>
  42. </table>
  43. </form>
  44. <?php
  45. View::show_footer();