forked from science-ation/science-ation
- Use unlink on each logo file, instead of system and rm -rf with pattern
matching.
This commit is contained in:
parent
0ba89a18a7
commit
ca24d7afc3
@ -60,10 +60,15 @@ if($_POST['action']=="addimage")
|
|||||||
}
|
}
|
||||||
|
|
||||||
if($_POST['action']=="delimage") {
|
if($_POST['action']=="delimage") {
|
||||||
system("rm -f ../data/logo.gif");
|
@unlink("../data/logo.gif");
|
||||||
system("rm -f ../data/logo.png");
|
@unlink("../data/logo-100.gif");
|
||||||
system("rm -f ../data/logo*.gif");
|
@unlink("../data/logo-200.gif");
|
||||||
system("rm -f ../data/logo*.png");
|
@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"));
|
echo happy(i18n("Deleted any existing logo files"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user