From dd247fa002eb7cdf33857dc18ffaca1f48541993 Mon Sep 17 00:00:00 2001 From: dave Date: Tue, 16 Jan 2007 19:45:12 +0000 Subject: [PATCH] - Added a "Delete Logo" button if a logo exists. It just wipes out the .png and .gif logo files. --- config/images.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/config/images.php b/config/images.php index c6bd0cb..68178bd 100644 --- a/config/images.php +++ b/config/images.php @@ -59,6 +59,15 @@ if($_POST['action']=="addimage") echo error(i18n("Error uploading Logo Image").": ".$_FILES['image']['error']); } +if($_POST['action']=="delimage") { + system("rm -f ../data/logo.gif"); + system("rm -f ../data/logo.png"); + system("rm -f ../data/logo*.gif"); + system("rm -f ../data/logo*.png"); + echo happy(i18n("Deleted any existing logo files")); +} + + echo "
"; echo "\n"; @@ -95,5 +104,13 @@ if($_POST['action']=="addimage") echo ""; echo "
"; +if( file_exists("../data/logo.gif") || file_exists("../data/logo.png")) { + echo "
"; + echo "
"; + echo "\n"; + echo "\n"; + echo "
"; +} + send_footer(); ?>