X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/9e2a2ac021a33268908b8dd3ec1376f6bf8e0041..6210ec482efa44e152fb8bc61d4dd8f529687cb9:/index.php
diff --git a/index.php b/index.php
index 61fef15..e7b5f74 100644
--- a/index.php
+++ b/index.php
@@ -1,8 +1,9 @@
query("stats.get", []);
+$stats = $rpc->stats()->get();
?>
Network Overview
@@ -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
-
+
@@ -57,7 +61,7 @@ $stats = (object) $array_of_stats;
-
channel->total; ?>
+ channel->total; ?>
@@ -66,7 +70,7 @@ $stats = (object) $array_of_stats;
Channels
-
+
@@ -79,7 +83,7 @@ $stats = (object) $array_of_stats;
-
user->oper; ?>
+ user->oper; ?>
@@ -88,7 +92,7 @@ $stats = (object) $array_of_stats;
Opers
-
+
@@ -102,7 +106,7 @@ $stats = (object) $array_of_stats;
-
server->total; ?>
+ server->total; ?>
@@ -111,7 +115,7 @@ $stats = (object) $array_of_stats;
Servers
-
+
@@ -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
-
+
@@ -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
-
+
@@ -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
-
+
@@ -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
-
+
@@ -227,6 +227,64 @@ $stats = (object) $array_of_stats;
+
+
+
+