]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blob - plugins/example_plugin/example_plugin.php
Fix header referencing to overview from other directories
[irc/unrealircd/unrealircd-webpanel.git] / plugins / example_plugin / example_plugin.php
1 <?php
2
3 class example_plugin
4 {
5 public $name = "Example plugin";
6 public $author = "Valware";
7 public $version = "1.0";
8 public $description = "An example plugin to show how to make stuff";
9
10 function __construct()
11 {
12 Hook::func(HOOKTYPE_NAVBAR, 'example_plugin::add_navbar');
13 }
14
15 public static function add_navbar(&$pages)
16 {
17 $page_name = "Example";
18 $page_link = "plugins/example_plugin/example.php";
19 $pages[$page_name] = $page_link;
20 }
21 }