X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/f10794036cb7c1a60ebfe26bf08d138e5c529b11..9e2a2ac021a33268908b8dd3ec1376f6bf8e0041:/index.php
diff --git a/index.php b/index.php
index 32b849d..61fef15 100644
--- a/index.php
+++ b/index.php
@@ -7,10 +7,23 @@ $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;
+
+
+?>
+
+
+
+
@@ -36,7 +49,7 @@ $stats = $rpc->query("stats.get", []);
-