aboutsummaryrefslogtreecommitdiff
path: root/includes/gui/header.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/gui/header.php')
-rwxr-xr-x[-rw-r--r--]includes/gui/header.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/includes/gui/header.php b/includes/gui/header.php
index 5f5bc25..0ca8765 100644..100755
--- a/includes/gui/header.php
+++ b/includes/gui/header.php
@@ -1,10 +1,20 @@
<?php
+if (!file_exists($_SERVER["DOCUMENT_ROOT"] . "/data/general.json")) {
+ file_put_contents($_SERVER["DOCUMENT_ROOT"] . "/data/general.json", json_encode([
+ "name" => "Cloudburst System",
+ "description" => "Lorem ipsum dolor sit amet"
+ ]));
+}
+
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);
+
?>
<!DOCTYPE html>
@@ -15,7 +25,7 @@ if ($_SERVER['HTTP_HOST'] !== "conep.one" && $_SERVER['HTTP_HOST'] !== "www.cone
<?php if (isset($title)): ?>
<?= $title ?> |
<?php endif; ?>
- Cloudburst System
+ <?= $general["name"] ?>
</title>
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">