From c4a23de7448f13cf72c2f228f945af96c3c7669c Mon Sep 17 00:00:00 2001 From: fredtempez Date: Mon, 18 Mar 2024 08:42:36 +0100 Subject: [PATCH] =?UTF-8?q?Contr=C3=B4le=20de=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 00000000..a5decbff --- /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 0b919a85..26503f50 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 732ac562..a97d38ef 100644 --- a/core/module/config/tool/cleanautobackup.php +++ b/core/module/config/tool/cleanautobackup.php @@ -1,4 +1,32 @@