Merge pull request #224 from Manawyrm/patch-3

Create updates folder
This commit is contained in:
Peter Goodhall
2018-11-28 23:50:09 +00:00
committed by GitHub
2 changed files with 15 additions and 0 deletions

View File

@@ -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

10
updates/index.html Normal file
View File

@@ -0,0 +1,10 @@
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>