diff options
author | Minteck <contact@minteck.org> | 2022-04-27 17:33:42 +0200 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2022-04-27 17:33:42 +0200 |
commit | 2dae8ef9c4915eb6744c6ff303021a9f593eee1b (patch) | |
tree | e84edf23d9fe4007f20248bba5e5f66c6647df2a /includes/gui/header.php | |
parent | 6185b412a4c12ab041ad87faf372e7793a34927b (diff) | |
download | cloudsdale-2dae8ef9c4915eb6744c6ff303021a9f593eee1b.tar.gz cloudsdale-2dae8ef9c4915eb6744c6ff303021a9f593eee1b.tar.bz2 cloudsdale-2dae8ef9c4915eb6744c6ff303021a9f593eee1b.zip |
Remove HTTPS workaround
Diffstat (limited to 'includes/gui/header.php')
-rwxr-xr-x | includes/gui/header.php | 7 |
1 files changed, 1 insertions, 6 deletions
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 <meta name="theme-color" content="#6010a7"> </head> <body class="bg-dark"> - <?php require_once $_SERVER["DOCUMENT_ROOT"] . "/includes/gui/navigation.php"; ?>
\ No newline at end of file + <?php require_once $_SERVER["DOCUMENT_ROOT"] . "/includes/gui/navigation.php"; ?> |