]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blobdiff - header.php
Fix even more
[irc/unrealircd/unrealircd-webpanel.git] / header.php
index 364ba2584dce19a67bdc5fa7d2dac38c82adb09e..86fd721a6ba7025414093a2965a064a22e86543a 100644 (file)
@@ -18,7 +18,7 @@
 <script src="<?php echo BASE_URL; ?>js/unrealircd-admin.js"></script>
 <title>UnrealIRCd Panel</title>
 <link rel="icon" type="image/x-icon" href="<?php echo BASE_URL; ?>img/favicon.ico">
-<link href="<?php echo UPATH; ?>css/unrealircd-admin.css" rel="stylesheet">
+<link href="<?php echo BASE_URL; ?>css/unrealircd-admin.css" rel="stylesheet">
 </head>
 <body role="document">
 <div class="container-fluid">
@@ -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 = "";
        }