From fa4f58be8ee450762765d3a0a14b0bdcc1744d41 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sun, 22 Feb 2009 09:44:22 -0500 Subject: 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. --- admin/remove.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'admin') 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 @@ $delimage = "DELETE FROM moderation WHERE id = " . $_GET['id']; $delimage2 = mysql_query($delimage); +unlink($_SERVER['DOCUMENT_ROOT'] . '/moderation/' . $_GET['id'] . '.png'); + ?> Removed comic ! -- cgit 1.4.1