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_ip.php 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. #declare(strict_types=1);
  3. if (!isset($_POST['ips']) || !is_array($_POST['ips'])) {
  4. error('No IP requested');
  5. }
  6. if (!apcu_exists('DBKEY')) {
  7. error(403);
  8. }
  9. View::show_header('IP Address Expunge Request');
  10. ?>
  11. <div class="header">
  12. <h2>IP Address Expunge Request</h2>
  13. </div>
  14. <form class="create_form box pad" name="ipdelete" action="delete.php" method="post">
  15. <input type="hidden" name="auth"
  16. value="<?=$LoggedUser['AuthKey']?>" />
  17. <?php foreach ($_POST['ips'] as $ip) { ?>
  18. <input type="hidden" name="ips[]" value="<?=$ip?>" />
  19. <?php } ?>
  20. <input type="hidden" name="action" value="takeip" />
  21. <table cellspacing="1" cellpadding="3" border="0" class="layout" width="100%">
  22. <tr>
  23. <td class="label">IP:</td>
  24. <td>
  25. <input type="text" size="30"
  26. value="<?=Crypto::decrypt($_POST['ips'][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();