aboutsummaryrefslogtreecommitdiff
path: root/includes/gui
diff options
context:
space:
mode:
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();