X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/4a759bb617538d4c16c54cdc2b83f8ebab2560c7..b6540c8fd85cca3e4e5c4dd40d3568884b3dbc6b:/index.php
diff --git a/index.php b/index.php
index 21a5fe2..6384929 100644
--- a/index.php
+++ b/index.php
@@ -1,24 +1,43 @@
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);
+
+?>
+
+
+
+
@@ -31,8 +50,10 @@ rpc_pop_lists();
+
+
-
+
@@ -54,7 +75,7 @@ rpc_pop_lists();
-
+
@@ -71,14 +92,13 @@ rpc_pop_lists();
Opers
-
-
+
-
+
@@ -105,7 +125,7 @@ rpc_pop_lists();
-
+
@@ -122,12 +142,12 @@ rpc_pop_lists();
Server Bans
-
+
-
+
@@ -149,7 +169,7 @@ rpc_pop_lists();
-
+
@@ -167,16 +187,20 @@ rpc_pop_lists();
Server Ban Exceptions
-
+
server->ulined) {
$bg = "bg-success";
- } ?>
-
+ $tooltip = "Users / Servers";
+ }
+ else
+ $bg = "bg-warning";
+ ?>
+
@@ -193,7 +218,7 @@ rpc_pop_lists();
Services Online
-
+
@@ -202,6 +227,59 @@ rpc_pop_lists();
+
+
+
+