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(); ?>