Dan
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
1 deletions
-
.gitignore
-
system/admin/views/backup.html.php
|
|
|
@ -2,3 +2,4 @@ |
|
|
|
/content/* |
|
|
|
/config/config.ini |
|
|
|
/config/users/*.ini |
|
|
|
/backup |
|
|
|
@ -3,7 +3,7 @@ |
|
|
|
if (login()) { |
|
|
|
if (isset($_GET['file'])) { |
|
|
|
$file = _h($_GET['file']); |
|
|
|
|
|
|
|
$file = preg_replace('/\/|\\\\/','0',$file); |
|
|
|
if (!empty($file)) { |
|
|
|
unlink("backup/$file"); |
|
|
|
} |
|
|
|
|