From 2dae8ef9c4915eb6744c6ff303021a9f593eee1b Mon Sep 17 00:00:00 2001 From: Minteck Date: Wed, 27 Apr 2022 17:33:42 +0200 Subject: Remove HTTPS workaround --- includes/gui/header.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'includes/gui/header.php') diff --git a/includes/gui/header.php b/includes/gui/header.php index 7a85a55..e207c83 100755 --- a/includes/gui/header.php +++ b/includes/gui/header.php @@ -11,11 +11,6 @@ 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(); -} - global $general; $general = json_decode(file_get_contents($_SERVER["DOCUMENT_ROOT"] . "/data/general.json"), true); @@ -45,4 +40,4 @@ $general = json_decode(file_get_contents($_SERVER["DOCUMENT_ROOT"] . "/data/gene - \ No newline at end of file + -- cgit