- Use unlink on each logo file, instead of system and rm -rf with pattern

matching.
This commit is contained in:
dave 2007-01-21 18:41:47 +00:00
parent 0ba89a18a7
commit ca24d7afc3

View File

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