X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/be3ca91ebeb38538c348e67af05ec7e4f03ed489..5616422143594630a6e83ca3efbcb9b8d0cfbffe:/index.php diff --git a/index.php b/index.php index 11bcd27..c3acf6a 100644 --- a/index.php +++ b/index.php @@ -1,5 +1,6 @@ query("stats.get", []); @@ -7,12 +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); + +?> +
+ +
+
@@ -22,7 +37,7 @@ $stats = $rpc->query("stats.get", []);
-

user->total; ?>

+

user->total; ?>

@@ -38,7 +53,7 @@ $stats = $rpc->query("stats.get", []);
-
+
@@ -46,7 +61,7 @@ $stats = $rpc->query("stats.get", []);
-

channel->total; ?>

+

channel->total; ?>

@@ -60,7 +75,7 @@ $stats = $rpc->query("stats.get", []);
-
+
@@ -68,7 +83,7 @@ $stats = $rpc->query("stats.get", []);
-

user->oper; ?>

+

user->oper; ?>

@@ -83,7 +98,7 @@ $stats = $rpc->query("stats.get", []);
-
+
@@ -91,7 +106,7 @@ $stats = $rpc->query("stats.get", []);
-

server->total; ?>

+

server->total; ?>

@@ -110,7 +125,7 @@ $stats = $rpc->query("stats.get", []);
-
+
@@ -118,7 +133,7 @@ $stats = $rpc->query("stats.get", []);
-

server_ban->server_ban; ?>

+

server_ban->server_ban; ?>

@@ -127,12 +142,12 @@ $stats = $rpc->query("stats.get", []);
Server Bans
- +
-
+
@@ -140,7 +155,7 @@ $stats = $rpc->query("stats.get", []);
-

server_ban->spamfilter; ?>

+

server_ban->spamfilter; ?>

@@ -154,7 +169,7 @@ $stats = $rpc->query("stats.get", []);
-
+
@@ -162,7 +177,7 @@ $stats = $rpc->query("stats.get", []);
-

server_ban->server_ban_exception; ?>

+

server_ban->server_ban_exception; ?>

@@ -172,7 +187,7 @@ $stats = $rpc->query("stats.get", []);
Server Ban Exceptions
- +
@@ -190,7 +205,7 @@ $stats = $rpc->query("stats.get", []); else $bg = "bg-warning"; ?> -
+
@@ -198,7 +213,8 @@ $stats = $rpc->query("stats.get", []);
-

user->ulined; ?>/server->ulined; ?>

+ +

user->ulined; ?>/server->ulined; ?>

@@ -207,7 +223,7 @@ $stats = $rpc->query("stats.get", []);
Services Online
- +
@@ -216,6 +232,57 @@ $stats = $rpc->query("stats.get", []);
+ + + +
+ +
+
+
+
+
+
+ +
+
+

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