diff options
Diffstat (limited to 'includes/components')
-rw-r--r-- | includes/components/explicit.php | 2 | ||||
-rw-r--r-- | includes/components/footer.inc | 5 | ||||
-rw-r--r-- | includes/components/navigation.inc | 8 |
3 files changed, 13 insertions, 2 deletions
diff --git a/includes/components/explicit.php b/includes/components/explicit.php index 4c55896..f7b4533 100644 --- a/includes/components/explicit.php +++ b/includes/components/explicit.php @@ -1,4 +1,4 @@ -<?php global $isLoggedIn; global $isLowerLoggedIn; global $_PROFILE; global $app; if ($isLoggedIn || $isLowerLoggedIn): ?> +<?php global $isLoggedIn; global $isLowerLoggedIn; global $_PROFILE; global $app; if (isset($_PROFILE["login"]) && $isLoggedIn || $isLowerLoggedIn): ?> <div class="modal" id="explicit-modal" data-bs-backdrop="static" data-bs-keyboard="false"> <div class="modal-dialog"> <div class="modal-content"> diff --git a/includes/components/footer.inc b/includes/components/footer.inc index 059d956..78c3148 100644 --- a/includes/components/footer.inc +++ b/includes/components/footer.inc @@ -6,6 +6,7 @@ global $pageFile; ?> +<script src="/assets/editor/ua-parser.js"></script> <div id="footer-pre"></div> <div id="footer"> <hr> @@ -35,7 +36,9 @@ global $pageFile; if (!item.classList.contains("tooltip-nohelp")) { item.style.cursor = "help"; } - }) + }); + + window.fetch("/api/rename?name=" + encodeURIComponent("Cold Haze Web (" + UAParser().browser.name + " on " + UAParser().os.name + ")")); </script> <?php if (isset($_GET["performance"])): ?> diff --git a/includes/components/navigation.inc b/includes/components/navigation.inc index a5aa734..9a777ce 100644 --- a/includes/components/navigation.inc +++ b/includes/components/navigation.inc @@ -214,6 +214,14 @@ $navigation_admin = [ "private" => true ], [ + "name" => $pages["sessions"]["name"][$lang["_name"]], + "icon" => "/assets/icons/sessions.svg", + "invert" => true, + "link" => "/-/sessions", + "stepped" => null, + "private" => true + ], + [ "name" => $pages["logout"]["name"][$lang["_name"]], "icon" => "/assets/icons/logout.svg", "invert" => true, |