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.1KB

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