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); + +?> +
+ +
+
- + + user->record; ?> +
-

+

user->total; ?>

@@ -31,8 +50,10 @@ rpc_pop_lists();
+ +
-
+
@@ -40,7 +61,7 @@ rpc_pop_lists();
-

+

channel->total; ?>

@@ -54,7 +75,7 @@ rpc_pop_lists();
-
+
@@ -62,7 +83,7 @@ rpc_pop_lists();
-

+

user->oper; ?>

@@ -71,14 +92,13 @@ rpc_pop_lists();
Opers
- - +
-
+
@@ -86,7 +106,7 @@ rpc_pop_lists();
-

+

server->total; ?>

@@ -105,7 +125,7 @@ rpc_pop_lists();
-
+
@@ -113,7 +133,7 @@ rpc_pop_lists();
-

+

server_ban->server_ban; ?>

@@ -122,12 +142,12 @@ rpc_pop_lists();
Server Bans
- +
-
+
@@ -135,7 +155,7 @@ rpc_pop_lists();
-

+

server_ban->spamfilter; ?>

@@ -149,7 +169,7 @@ rpc_pop_lists();
-
+
@@ -157,7 +177,7 @@ rpc_pop_lists();
-

+

server_ban->server_ban_exception; ?>

@@ -167,16 +187,20 @@ rpc_pop_lists();
Server Ban Exceptions
- +
server->ulined) { $bg = "bg-success"; - } ?> -
+ $tooltip = "Users / Servers"; + } + else + $bg = "bg-warning"; + ?> +
@@ -184,7 +208,8 @@ rpc_pop_lists();
-

+ +

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

@@ -193,7 +218,7 @@ rpc_pop_lists();
Services Online
- +
@@ -202,6 +227,59 @@ rpc_pop_lists(); + + + +
+ +
+
+
+
+
+
+ +
+
+

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