]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blame - common.php
Separate news tab
[irc/unrealircd/unrealircd-webpanel.git] / common.php
CommitLineData
e98b5a51
BM
1<?php
2define('UPATH', dirname(__FILE__));
3require_once "config.php";
90dc8f2b
VP
4require_once "hook.php";
5require_once "plugins.php";
e98b5a51
BM
6require_once UPATH . '/vendor/autoload.php';
7require_once "connection.php";
8require_once "Classes/class-log.php";
9require_once "Classes/class-message.php";
10require_once "Classes/class-rpc.php";
1e6ffd06
BM
11
12$pages = Array("Overview" => "overview.php",
13 "Users" => "users.php",
14 "Channels" => "channels.php",
15 "Server Bans" => "tkl.php",
16 "Spamfilter" => "spamfilter.php",
17 "News" => "news.php");
90dc8f2b
VP
18
19
20Hook::run(HOOKTYPE_NAVBAR, $pages);
21
22/* Example to add new menu item:
23 *
24 * Example to add a navigation bar:
25 *
26 * class MyPlugin
27 * {
28 *
29 * function __construct()
30 * {
31 * Hook::func(HOOKTYPE_NAVBAR, [$this, 'add_menu'])
32 * }
33 *
34 * function add_menu(&$pages) // this should pass by reference (using the & prefix)
35 * {
36 * $page_name = "My New Page";
37 * $page_link = "link/to/page.php";
38 * $pages[$page_name] = $page_link;
39 * }
40 * }
41*/