X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/75c101fdf81cf76433e974b2dd9194aadbd75549..b6540c8fd85cca3e4e5c4dd40d3568884b3dbc6b:/index.php
diff --git a/index.php b/index.php
index 05675fd..6384929 100644
--- a/index.php
+++ b/index.php
@@ -1,25 +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);
+
+?>
+
+
+
+
@@ -32,8 +50,10 @@ rpc_pop_lists();
+
+
-
+
@@ -55,7 +75,7 @@ rpc_pop_lists();
-
+
@@ -72,14 +92,13 @@ rpc_pop_lists();
Opers
-
-
+
-
+
@@ -96,7 +115,7 @@ rpc_pop_lists();
Servers
-
+
@@ -106,7 +125,7 @@ rpc_pop_lists();
-
+
@@ -123,12 +142,12 @@ rpc_pop_lists();
Server Bans
-
+
-
+
@@ -150,7 +169,7 @@ rpc_pop_lists();
-
+
@@ -168,16 +187,20 @@ rpc_pop_lists();
Server Ban Exceptions
-
+
server->ulined) {
$bg = "bg-success";
- } ?>
-
+ $tooltip = "Users / Servers";
+ }
+ else
+ $bg = "bg-warning";
+ ?>
+
@@ -194,11 +218,68 @@ rpc_pop_lists();
Services Online
-
+
-
\ No newline at end of file
+
+
+
+
+
+
+