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

+

user->total; ?>

@@ -32,8 +50,10 @@ rpc_pop_lists();
+ +
-
+
@@ -41,7 +61,7 @@ rpc_pop_lists();
-

+

channel->total; ?>

@@ -55,7 +75,7 @@ rpc_pop_lists();
-
+
@@ -63,7 +83,7 @@ rpc_pop_lists();
-

+

user->oper; ?>

@@ -72,14 +92,13 @@ rpc_pop_lists();
Opers
- - +
-
+
@@ -87,7 +106,7 @@ rpc_pop_lists();
-

+

server->total; ?>

@@ -96,7 +115,7 @@ rpc_pop_lists();
Servers
- +
@@ -106,7 +125,7 @@ rpc_pop_lists();
-
+
@@ -114,7 +133,7 @@ rpc_pop_lists();
-

+

server_ban->server_ban; ?>

@@ -123,12 +142,12 @@ rpc_pop_lists();
Server Bans
- +
-
+
@@ -136,7 +155,7 @@ rpc_pop_lists();
-

+

server_ban->spamfilter; ?>

@@ -150,7 +169,7 @@ rpc_pop_lists();
-
+
@@ -158,7 +177,7 @@ rpc_pop_lists();
-

+

server_ban->server_ban_exception; ?>

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

+ +

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

@@ -194,11 +218,68 @@ rpc_pop_lists();
Services Online
- +
- \ No newline at end of file + + + + + +
+ +
+
+
+
+
+
+ +
+
+

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