X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/f41baac84976bab1d52496138dace5a35b749743..7720c0cbff2714df672568d3366bb7b2ac1a97c1:/header.php?ds=inline
diff --git a/header.php b/header.php
index 364ba25..86fd721 100644
--- a/header.php
+++ b/header.php
@@ -18,7 +18,7 @@
UnrealIRCd Panel
-
+
@@ -34,7 +34,8 @@ $active_page = NULL;
foreach ($pages as $name => $page)
{
$script = $_SERVER['SCRIPT_FILENAME'];
- if (str_ends_with($script, BASE_URL . "index.php") || !strlen($page))
+ $tok = split($script, "/");
+ if ((str_ends_with($script, BASE_URL . "index.php") && !strlen($tok[0])) || !strlen($page))
{
$active_page = "";
}