forked from science-ation/science-ation
Delete JPG images too.
This commit is contained in:
parent
2a93723a45
commit
05be59f62b
@ -105,6 +105,10 @@ if($_POST['action']=="delimage") {
|
|||||||
@unlink("../data/logo-100.png");
|
@unlink("../data/logo-100.png");
|
||||||
@unlink("../data/logo-200.png");
|
@unlink("../data/logo-200.png");
|
||||||
@unlink("../data/logo-500.png");
|
@unlink("../data/logo-500.png");
|
||||||
|
@unlink("../data/logo.jpg");
|
||||||
|
@unlink("../data/logo-100.jpg");
|
||||||
|
@unlink("../data/logo-200.jpg");
|
||||||
|
@unlink("../data/logo-500.jpg");
|
||||||
|
|
||||||
echo happy(i18n("Deleted any existing logo files"));
|
echo happy(i18n("Deleted any existing logo files"));
|
||||||
}
|
}
|
||||||
@ -157,7 +161,7 @@ if($_POST['action']=="delimage") {
|
|||||||
echo "</table>";
|
echo "</table>";
|
||||||
echo "</form>";
|
echo "</form>";
|
||||||
|
|
||||||
if( file_exists("../data/logo.gif") || file_exists("../data/logo.png")) {
|
if( file_exists("../data/logo.gif") || file_exists("../data/logo.png") || file_exists("../data/logo.jpg")) {
|
||||||
echo "<br />";
|
echo "<br />";
|
||||||
echo "<form enctype=\"multipart/form-data\" method=\"post\" action=\"images.php\">";
|
echo "<form enctype=\"multipart/form-data\" method=\"post\" action=\"images.php\">";
|
||||||
echo "<input type=\"hidden\" name=\"action\" value=\"delimage\">\n";
|
echo "<input type=\"hidden\" name=\"action\" value=\"delimage\">\n";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user