From 0fece8c7ca25122366df339d2a33a889a10b229e Mon Sep 17 00:00:00 2001 From: fredtempez Date: Mon, 18 Mar 2024 08:49:16 +0100 Subject: [PATCH] =?UTF-8?q?Contr=C3=B4le=20par=20cl=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/module/config/tool/.htaccess | 4 +++ core/module/config/tool/autobackup.php | 28 ++++++++++++++++++--- core/module/config/tool/cleanautobackup.php | 28 +++++++++++++++++++++ core/module/config/tool/data.key | 1 + 4 files changed, 58 insertions(+), 3 deletions(-) create mode 100644 core/module/config/tool/.htaccess create mode 100644 core/module/config/tool/data.key diff --git a/core/module/config/tool/.htaccess b/core/module/config/tool/.htaccess new file mode 100644 index 0000000..a5decbf --- /dev/null +++ b/core/module/config/tool/.htaccess @@ -0,0 +1,4 @@ + + Order Allow,Deny + Deny from all + diff --git a/core/module/config/tool/autobackup.php b/core/module/config/tool/autobackup.php index 0b919a8..26503f5 100644 --- a/core/module/config/tool/autobackup.php +++ b/core/module/config/tool/autobackup.php @@ -1,6 +1,28 @@ open('../../../../site/backup/' . $fileName, ZipArchive::CREATE | ZipArchive::OVERWRITE); @@ -23,4 +45,4 @@ foreach ($files as $name => $file) { $zip->addFile($filePath, $relativePath); } } -$zip->close(); \ No newline at end of file +$zip->close(); diff --git a/core/module/config/tool/cleanautobackup.php b/core/module/config/tool/cleanautobackup.php index 732ac56..a97d38e 100644 --- a/core/module/config/tool/cleanautobackup.php +++ b/core/module/config/tool/cleanautobackup.php @@ -1,4 +1,32 @@