X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/10102cdc790926b5ec491db718572c0f44b2aeab..33f512fa30c06fa488c42e68f9bc9f401300a5ab:/index.php diff --git a/index.php b/index.php index db5474b..173a84d 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; + + +?> +
+ +
+
@@ -20,7 +33,7 @@ $stats = $rpc->query("stats.get", []);
-

user->total - $stats->user->ulined; ?>

+

user->total; ?>

@@ -36,7 +49,7 @@ $stats = $rpc->query("stats.get", []);
-
+
@@ -58,7 +71,7 @@ $stats = $rpc->query("stats.get", []);
-
+
@@ -66,7 +79,7 @@ $stats = $rpc->query("stats.get", []);
-

user->oper - $stats->user->ulined; ?>

+

user->oper; ?>

@@ -75,14 +88,13 @@ $stats = $rpc->query("stats.get", []);
Opers
-
-
+
@@ -109,7 +121,7 @@ $stats = $rpc->query("stats.get", []);
-
+
@@ -131,7 +143,7 @@ $stats = $rpc->query("stats.get", []);
-
+
@@ -153,7 +165,7 @@ $stats = $rpc->query("stats.get", []);
-
+
@@ -189,7 +201,7 @@ $stats = $rpc->query("stats.get", []); else $bg = "bg-warning"; ?> -
+
@@ -206,7 +218,7 @@ $stats = $rpc->query("stats.get", []);
Services Online
- +
@@ -217,4 +229,6 @@ $stats = $rpc->query("stats.get", []);