-
X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/8cfa32c5397a4eb6fee46ad0e3d4be376d208465..7720c0cbff2714df672568d3366bb7b2ac1a97c1:/header.php?ds=inline diff --git a/header.php b/header.php index c024178..86fd721 100644 --- a/header.php +++ b/header.php @@ -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 = ""; } @@ -65,4 +66,3 @@ foreach($pages as $name=>$page)