X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/062258ffca3e14131ac530492d36ea0b0430602f..ea90b321a4b3768028d841b307c362af97a5e6e1:/index.php diff --git a/index.php b/index.php index 1e966ec..b5009ce 100644 --- a/index.php +++ b/index.php @@ -1,5 +1,6 @@ query("stats.get", []); @@ -18,6 +19,9 @@ Hook::run(HOOKTYPE_PRE_OVERVIEW_CARD, $array_of_stats); */ $stats = (object) $array_of_stats; +$userlist = []; +Hook::run(HOOKTYPE_GET_USER_LIST, $userlist); +$num_of_panel_admins = count($userlist); ?>
@@ -33,7 +37,7 @@ $stats = (object) $array_of_stats;
-

user->total; ?>

+

user->total; ?>

@@ -42,7 +46,7 @@ $stats = (object) $array_of_stats;
Users Online
-
View
+
users">View
@@ -57,7 +61,7 @@ $stats = (object) $array_of_stats;
-

channel->total; ?>

+

channel->total; ?>

@@ -66,7 +70,7 @@ $stats = (object) $array_of_stats;
Channels
-
View
+
channels">View
@@ -79,7 +83,7 @@ $stats = (object) $array_of_stats;
-

user->oper; ?>

+

user->oper; ?>

@@ -88,7 +92,7 @@ $stats = (object) $array_of_stats;
Opers
-
">View
+
">View
@@ -102,7 +106,7 @@ $stats = (object) $array_of_stats;
-

server->total; ?>

+

server->total; ?>

@@ -111,7 +115,7 @@ $stats = (object) $array_of_stats;
Servers
-
View
+
servers">View
@@ -129,7 +133,7 @@ $stats = (object) $array_of_stats;
-

server_ban->server_ban; ?>

+

server_ban->server_ban; ?>

@@ -138,7 +142,7 @@ $stats = (object) $array_of_stats;
Server Bans
-
View
+
server-bans">View
@@ -151,7 +155,7 @@ $stats = (object) $array_of_stats;
-

server_ban->spamfilter; ?>

+

server_ban->spamfilter; ?>

@@ -160,7 +164,7 @@ $stats = (object) $array_of_stats;
Spamfilter
-
View
+
spamfilter.php">View
@@ -173,7 +177,7 @@ $stats = (object) $array_of_stats;
-

server_ban->server_ban_exception; ?>

+

server_ban->server_ban_exception; ?>

@@ -183,7 +187,7 @@ $stats = (object) $array_of_stats;
Server Ban Exceptions
-
View
+
server-bans/ban-exceptions.php">View
@@ -191,12 +195,7 @@ $stats = (object) $array_of_stats; server->ulined) { $bg = "bg-success"; - - /* honestly can't think of a case where there would actually be only one uline... but... well here we are, worrying over the small stuff =] */ - $user_noun = ($stats->user->ulined == 1) ? "user" : "users"; // use "users" even if 0, sounds better. - $is_are = ($stats->user->ulined == 1) ? "is" : "are"; - $server_noun = ($stats->server->ulined == 1) ? "server" : "servers"; - $tooltip = "There $is_are " . $stats->user->ulined . " U-Lined $user_noun over " . $stats->server->ulined . " U-Lined $server_noun"; + $tooltip = "Users / Servers"; } else $bg = "bg-warning"; @@ -209,7 +208,8 @@ $stats = (object) $array_of_stats;
-

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

+ +

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

@@ -218,7 +218,7 @@ $stats = (object) $array_of_stats;
Services Online
-
">View
+
">View
@@ -226,13 +226,32 @@ $stats = (object) $array_of_stats; - -
+ + + +
@@ -250,9 +269,9 @@ $num_of_panel_admins = count($userlist);
-
Panel Users
+
Panel Access
- +