X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/e98b5a513d1704ddbc03f8e58f188a90d5518b42..33f512fa30c06fa488c42e68f9bc9f401300a5ab:/common.php diff --git a/common.php b/common.php index 5a3805f..948e35a 100644 --- a/common.php +++ b/common.php @@ -1,8 +1,54 @@ "", + "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", + "News" => "news.php", +); + + +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; + * } + * } +*/ \ No newline at end of file