X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/be3ca91ebeb38538c348e67af05ec7e4f03ed489..f2c7ac010249e5412059257c9b36b3a4e554c0ff:/index.php
diff --git a/index.php b/index.php
index 11bcd27..d6ee842 100644
--- a/index.php
+++ b/index.php
@@ -1,5 +1,6 @@
query("stats.get", []);
@@ -7,12 +8,26 @@ $stats = $rpc->query("stats.get", []);
Network Overview
-
+
+/* What if someone wants to add their own stats... */
+Hook::run(HOOKTYPE_PRE_OVERVIEW_CARD, $array_of_stats);
-
-
+/* This makes sure that a plugin which called the parameter
+ * by reference can add/update the stats for display here.
+*/
+$stats = (object) $array_of_stats;
+
+$userlist = [];
+Hook::run(HOOKTYPE_GET_USER_LIST, $userlist);
+$num_of_panel_admins = count($userlist);
+
+?>
+