diff options
Diffstat (limited to 'includes/components/header.inc')
-rw-r--r-- | includes/components/header.inc | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/includes/components/header.inc b/includes/components/header.inc index 06b9bdb..0542314 100644 --- a/includes/components/header.inc +++ b/includes/components/header.inc @@ -1,14 +1,6 @@ -<?php global $title; global $pages; - +<?php global $title; global $pages; global $readOnly; +$start = microtime(true); $useNewUI = !isset($_GET['old']); -$readOnly = false; -file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/.test", "hello"); - -if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/includes/data/.test")) { - unlink($_SERVER['DOCUMENT_ROOT'] . "/includes/data/.test"); -} else { - $readOnly = true; -} $isNormallyLoggedIn = false; @@ -69,7 +61,7 @@ require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/util/functions.inc"; <title><?= $title && $title !== "-" ? $title . " ยท " : "" ?>Cold Haze</title> <link rel="shortcut icon" href="/assets/logo/newlogo<?= $isLoggedIn || $isLowerLoggedIn ? "3" : "" ?>.png" type="image/png"> </head> -<body<?php if ($page["rail"] && $isLoggedIn && !$useNewUI): ?> id="admin-page"<?php endif; ?>> +<body> <?php require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/components/navigation.inc"; global $navigation; ?> <?php if (!$useNewUI): ?> @@ -246,4 +238,4 @@ require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/util/functions.inc"; display: none; } </style> -<?php } ?> +<?php } $GLOBALS["ColdHazePerformance"]["header"] = (microtime(true) - $start) * 1000; $start = microtime(true); ?> |