X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/74d1d3091b7d01debd9e5090e4e1b8235e2713df..9307cc64b4a005d16ce021274274f664d8f6b10d:/index.php
diff --git a/index.php b/index.php
index 32b849d..9919d35 100644
--- a/index.php
+++ b/index.php
@@ -7,10 +7,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);
+
+?>
+
+
+
+
@@ -36,7 +52,7 @@ $stats = $rpc->query("stats.get", []);
-