From fffc58ffac20237af36ff566c2009bf8b3701cb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20M=C3=A4del?= Date: Wed, 28 Nov 2018 23:16:30 +0100 Subject: [PATCH 1/2] Create updates folder --- updates/index.html | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 updates/index.html diff --git a/updates/index.html b/updates/index.html new file mode 100644 index 000000000..7f684dff4 --- /dev/null +++ b/updates/index.html @@ -0,0 +1,10 @@ + + + 403 Forbidden + + + +

Directory access is forbidden.

+ + + From 06028a4018dcf7f88eb27b423ac9d82a2313d5e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20M=C3=A4del?= Date: Wed, 28 Nov 2018 23:21:43 +0100 Subject: [PATCH 2/2] Update Update.php --- application/controllers/Update.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/application/controllers/Update.php b/application/controllers/Update.php index e24f10ff5..6219af315 100644 --- a/application/controllers/Update.php +++ b/application/controllers/Update.php @@ -169,6 +169,11 @@ class Update extends CI_Controller { } gzclose($gz); + if (!file_exists("./updates/")) + { + mkdir("./updates"); + } + file_put_contents('./updates/cty.xml', $data); // Clear the tables, ready for new data