X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/f10794036cb7c1a60ebfe26bf08d138e5c529b11..f2c7ac010249e5412059257c9b36b3a4e554c0ff:/index.php diff --git a/index.php b/index.php index 32b849d..d6ee842 100644 --- a/index.php +++ b/index.php @@ -1,5 +1,6 @@ query("stats.get", []); @@ -7,10 +8,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); + +?> +
+ +
+
@@ -20,7 +37,7 @@ $stats = $rpc->query("stats.get", []);
-

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

+

user->total; ?>

@@ -36,7 +53,7 @@ $stats = $rpc->query("stats.get", []);
-
+
@@ -58,7 +75,7 @@ $stats = $rpc->query("stats.get", []);
-
+
@@ -75,14 +92,13 @@ $stats = $rpc->query("stats.get", []);
Opers
-
-
+
@@ -109,7 +125,7 @@ $stats = $rpc->query("stats.get", []);
-
+
@@ -126,12 +142,12 @@ $stats = $rpc->query("stats.get", []);
Server Bans
- +
-
+
@@ -153,7 +169,7 @@ $stats = $rpc->query("stats.get", []);
-
+
@@ -171,7 +187,7 @@ $stats = $rpc->query("stats.get", []);
Server Ban Exceptions
- +
@@ -189,7 +205,7 @@ $stats = $rpc->query("stats.get", []); else $bg = "bg-warning"; ?> -
+
@@ -206,7 +222,7 @@ $stats = $rpc->query("stats.get", []);
Services Online
- +
@@ -214,7 +230,35 @@ $stats = $rpc->query("stats.get", []);
+
+
+
+
+
+
+
+ +
+
+

+
+
+
+
+
+
+
Panel Access
+
+ +
+
+
+
+
+