summary refs log tree commit diff stats
path: root/admin/remove.php
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2009-02-22 09:44:22 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2009-02-22 09:44:22 -0500
commitfa4f58be8ee450762765d3a0a14b0bdcc1744d41 (patch)
tree2daf4c0f919ef84f961fda8369987789177dc717 /admin/remove.php
parentf49872fe49f0b965d5c999002279b7ca1a471a60 (diff)
downloadpillowcase-fa4f58be8ee450762765d3a0a14b0bdcc1744d41.tar.gz
pillowcase-fa4f58be8ee450762765d3a0a14b0bdcc1744d41.tar.bz2
pillowcase-fa4f58be8ee450762765d3a0a14b0bdcc1744d41.zip
Fixed moderation removal bug
Previously, when an image was removed through moderation, the actual
image wasn't deleted from the moderation directory. This has been fixed.
Diffstat (limited to 'admin/remove.php')
-rw-r--r--admin/remove.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/admin/remove.php b/admin/remove.php index bf8e565..824fdee 100644 --- a/admin/remove.php +++ b/admin/remove.php
@@ -3,6 +3,8 @@
3$delimage = "DELETE FROM moderation WHERE id = " . $_GET['id']; 3$delimage = "DELETE FROM moderation WHERE id = " . $_GET['id'];
4$delimage2 = mysql_query($delimage); 4$delimage2 = mysql_query($delimage);
5 5
6unlink($_SERVER['DOCUMENT_ROOT'] . '/moderation/' . $_GET['id'] . '.png');
7
6?> 8?>
7 9
8Removed comic <?php echo($_GET['id']); ?>! 10Removed comic <?php echo($_GET['id']); ?>!