From ca24d7afc3a141771ec247324e7aaee4428154fc Mon Sep 17 00:00:00 2001 From: dave Date: Sun, 21 Jan 2007 18:41:47 +0000 Subject: [PATCH] - Use unlink on each logo file, instead of system and rm -rf with pattern matching. --- config/images.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/config/images.php b/config/images.php index 68178bd..5fab770 100644 --- a/config/images.php +++ b/config/images.php @@ -60,10 +60,15 @@ if($_POST['action']=="addimage") } 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"); + @unlink("../data/logo.gif"); + @unlink("../data/logo-100.gif"); + @unlink("../data/logo-200.gif"); + @unlink("../data/logo-500.gif"); + @unlink("../data/logo.png"); + @unlink("../data/logo-100.png"); + @unlink("../data/logo-200.png"); + @unlink("../data/logo-500.png"); + echo happy(i18n("Deleted any existing logo files")); }