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.php 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. #declare(strict_types=1);
  3. $CollageID = $_GET['collageid'];
  4. if (!is_number($CollageID) || !$CollageID) {
  5. error(404);
  6. }
  7. $DB->query("
  8. SELECT Name, CategoryID, UserID
  9. FROM collages
  10. WHERE ID = '$CollageID'");
  11. list($Name, $CategoryID, $UserID) = $DB->next_record();
  12. if (!check_perms('site_collages_delete') && $UserID != $LoggedUser['ID']) {
  13. error(403);
  14. }
  15. View::show_header('Delete collage');
  16. ?>
  17. <div class="center">
  18. <div class="box" style="width: 600px; margin: 0px auto;">
  19. <div class="head colhead">
  20. Delete collage
  21. </div>
  22. <div class="pad">
  23. <form class="delete_form" name="collage" action="collages.php" method="post">
  24. <input type="hidden" name="action" value="take_delete" />
  25. <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
  26. <input type="hidden" name="collageid" value="<?=$CollageID?>" />
  27. <?
  28. if ($CategoryID == 0) {
  29. ?>
  30. <div class="alertbar" style="margin-bottom: 1em;">
  31. <strong>Warning: This is a personal collage. If you delete this collage, it <em>cannot</em> be recovered!</strong>
  32. </div>
  33. <?
  34. }
  35. ?>
  36. <div>
  37. <strong>Reason: </strong>
  38. <input type="text" name="reason" size="40" />
  39. </div>
  40. <div class="submit_div">
  41. <input value="Delete" type="submit" />
  42. </div>
  43. </form>
  44. </div>
  45. </div>
  46. </div>
  47. <?
  48. View::show_footer();
  49. ?>