X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/fdc0088faa6bc7498d0e39b2457c2e758b10e6d8..e76c47e177b4e8e47b871f321490505195ebf78a:/index.php diff --git a/index.php b/index.php index 1e966ec..741f54f 100644 --- a/index.php +++ b/index.php @@ -1,8 +1,9 @@ query("stats.get", []); +$stats = $rpc->stats()->get(); ?>

Network Overview

@@ -18,9 +19,17 @@ 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 +42,7 @@ $stats = (object) $array_of_stats;
-

user->total; ?>

+

user->total; ?>

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

channel->total; ?>

+

channel->total; ?>

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

user->oper; ?>

+

user->oper; ?>

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

server->total; ?>

+

server->total; ?>

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

server_ban->server_ban; ?>

+

server_ban->server_ban; ?>

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

server_ban->spamfilter; ?>

+

server_ban->spamfilter; ?>

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

server_ban->server_ban_exception; ?>

+

server_ban->server_ban_exception; ?>

@@ -183,7 +192,7 @@ $stats = (object) $array_of_stats;
Server Ban Exceptions
-
View
+
server-bans/ban-exceptions.php">View
@@ -191,12 +200,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 +213,8 @@ $stats = (object) $array_of_stats;
-

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

+ +

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

@@ -218,7 +223,7 @@ $stats = (object) $array_of_stats;
Services Online
-
">View
+
">View
@@ -226,13 +231,39 @@ $stats = (object) $array_of_stats; - -
+ + + +
@@ -250,9 +281,9 @@ $num_of_panel_admins = count($userlist);
-
Panel Users
+
Panel Accounts
- +