X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/ce8122f02ff7c26a6ead371928cf72f39ff5905d..4b48b46f55bb6a03a29d0d0db04b3076c1eaae8f:/index.php diff --git a/index.php b/index.php index 9a6a13a..175d4ea 100644 --- a/index.php +++ b/index.php @@ -1,32 +1,64 @@ 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; ?>

+
+
+
+
-

-
Users
+
Users Online
+
+ +
-
+
@@ -34,14 +66,21 @@ rpc_pop_lists();
-

+

channel->total; ?>

+
+
+
+
+
+
Channels
+
-
+
@@ -49,34 +88,49 @@ rpc_pop_lists();
-

+

user->oper; ?>

+
+
+
+
+
+
Opers
+
-
+ +
-
+
-

+

server->total; ?>

+
+
+
+
+
+
Servers
+
-
+
-
+
@@ -84,14 +138,21 @@ rpc_pop_lists();
-

+

server_ban->server_ban; ?>

+
+
+
+
+
+
Server Bans
+
-
+
@@ -99,14 +160,21 @@ rpc_pop_lists();
-

-
Spamfilter Entries
+

server_ban->spamfilter; ?>

+
+
+
+
Spamfilter
+
+ +
+
-
+
@@ -114,18 +182,30 @@ rpc_pop_lists();
-

-
Ban Excepts
+

server_ban->server_ban_exception; ?>

+ +
+
+
+
Server Ban Exceptions
+
+ +
+
server->ulined) { $bg = "bg-success"; - } ?> -
+ $tooltip = "Users / Servers"; + } + else + $bg = "bg-warning"; + ?> +
@@ -133,13 +213,105 @@ rpc_pop_lists();
-

+ +

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

+
+
+
+
+
+
Services Online
+
-
\ No newline at end of file +
+ + + + +
+ +
+
+
+
+
+
+ +
+
+

+
+
+
+
+
+
+
Panel Accounts
+
+ +
+
+
+
+
+
+