X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/8178904ec2f6e608b5ab6ac02d09983cc9537675..ea90b321a4b3768028d841b307c362af97a5e6e1:/header.php diff --git a/header.php b/header.php index a4eca2c..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,11 +73,11 @@ $arr = []; Hook::run(HOOKTYPE_PRE_HEADER, $arr); ?>
Main Menu
"; $name = "  ".$name; + $style = "padding-bottom: 1px; padding-top: 1px"; + } else { + echo ""; + } + if (is_array($page)) + { + $style = "padding-bottom: 0px;"; + } else { + echo "\n"; } - 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); @@ -108,7 +122,7 @@ foreach($pages as $name=>$page)