"", "Users" => "users", "Channels" => "channels", "Servers" => "servers", "Server Bans" => [ "Server Bans" => "server-bans", "Name Bans" => "server-bans/name-bans.php", "Ban Exceptions" => "server-bans/ban-exceptions.php" ], "Spamfilter" => "spamfilter.php", "Tools" => [ "IP WHOIS" => "tools/ip-whois.php", ], "Settings" => [ "Panel Access" => "settings", "Plugins" => "settings/plugins.php", ], "News" => "news.php", ]; if (unreal_get_current_user()) { $pages["Logout"] = "login/?logout=true"; } Hook::run(HOOKTYPE_NAVBAR, $pages); /* Example to add new menu item: * * class MyPlugin * { * * function __construct() * { * Hook::func(HOOKTYPE_NAVBAR, [$this, 'add_menu']) * } * * function add_menu(&$pages) // this should pass by reference (using the & prefix) * { * $page_name = "My New Page"; * $page_link = "link/to/page.php"; * $pages[$page_name] = $page_link; * } * } */