From f5d140a3ef6e34658f6a9a6cc58ee32d01427782 Mon Sep 17 00:00:00 2001 From: Minteck Date: Tue, 12 Apr 2022 16:22:44 +0200 Subject: File uploader --- includes/admin/navigation.php | 108 ++++++++++++++++++++++++++++++++++++++++-- includes/gui/header.php | 4 ++ 2 files changed, 109 insertions(+), 3 deletions(-) (limited to 'includes') diff --git a/includes/admin/navigation.php b/includes/admin/navigation.php index 23cc361..1fc5881 100755 --- a/includes/admin/navigation.php +++ b/includes/admin/navigation.php @@ -1,14 +1,23 @@ \ No newline at end of file + + + \ No newline at end of file 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