From f5d140a3ef6e34658f6a9a6cc58ee32d01427782 Mon Sep 17 00:00:00 2001 From: Minteck Date: Tue, 12 Apr 2022 16:22:44 +0200 Subject: File uploader --- includes/gui/header.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'includes/gui') 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(); -- cgit