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")); }