X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/19f86a664eb7ab699e8410412e5709f7d8fc8ea2..ea90b321a4b3768028d841b307c362af97a5e6e1:/header.php diff --git a/header.php b/header.php index 11336d8..97100c4 100644 --- a/header.php +++ b/header.php @@ -2,17 +2,17 @@ if (is_auth_provided() && !str_ends_with($_SERVER['SCRIPT_FILENAME'], "setup.php")) {?> UnrealIRCd Panel - +img/favicon.ico"> - - - - - + + + + @@ -75,10 +73,10 @@ $arr = []; Hook::run(HOOKTYPE_PRE_HEADER, $arr); ?>
Main Menu
"; $name = "  ".$name; - $style = "padding-bottom: 0px; padding-top: 0px"; - } else + $style = "padding-bottom: 1px; padding-top: 1px"; + } else { + echo ""; + } if (is_array($page)) + { $style = "padding-bottom: 0px;"; - echo "
\n"; + if (!is_array($page)) + echo ""; if ($nestlevel > 0) echo ""; - foreach ($page as $subname=>$subpage) - show_page_item($subname, $subpage, 1); + else + echo ""; + if (is_array($page)) + { + foreach ($page as $subname=>$subpage) + show_page_item($subname, $subpage, 1); + } } foreach($pages as $name=>$page) show_page_item($name, $page, 0); @@ -111,7 +122,7 @@ foreach($pages as $name=>$page)