aboutsummaryrefslogtreecommitdiff
path: root/includes/gui
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-04-12 16:22:44 +0200
committerMinteck <contact@minteck.org>2022-04-12 16:22:44 +0200
commitf5d140a3ef6e34658f6a9a6cc58ee32d01427782 (patch)
tree665bfe2da70c032fc7c8f24def802ae0a8b0bae2 /includes/gui
parent300ab1d94c7d476a6c87f1d32d1756d8b04e3dbf (diff)
downloadcloudsdale-f5d140a3ef6e34658f6a9a6cc58ee32d01427782.tar.gz
cloudsdale-f5d140a3ef6e34658f6a9a6cc58ee32d01427782.tar.bz2
cloudsdale-f5d140a3ef6e34658f6a9a6cc58ee32d01427782.zip
File uploader
Diffstat (limited to 'includes/gui')
-rwxr-xr-xincludes/gui/header.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/includes/gui/header.php b/includes/gui/header.php
index 0ca8765..7a85a55 100755
--- a/includes/gui/header.php
+++ b/includes/gui/header.php
@@ -7,6 +7,10 @@ if (!file_exists($_SERVER["DOCUMENT_ROOT"] . "/data/general.json")) {
]));
}
+if (!file_exists($_SERVER["DOCUMENT_ROOT"] . "/data/files.json")) {
+ file_put_contents($_SERVER["DOCUMENT_ROOT"] . "/data/files.json", json_encode([]));
+}
+
if ($_SERVER['HTTP_HOST'] !== "conep.one" && $_SERVER['HTTP_HOST'] !== "www.conep.one" && $_SERVER['HTTP_HOST'] !== "localhost" && $_SERVER['HTTP_HOST'] !== "0.0.0.0") {
header("Location: https://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
die();