X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/5589701e8e65433029b44f3260f6d8ad855223b0..4b48b46f55bb6a03a29d0d0db04b3076c1eaae8f:/index.php
diff --git a/index.php b/index.php
index 36ef64b..175d4ea 100644
--- a/index.php
+++ b/index.php
@@ -1,8 +1,9 @@
query("stats.get", []);
+$stats = $rpc->stats()->get();
?>
Network Overview
@@ -18,13 +19,20 @@ 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);
?>
+
+
-
-
-
-
+
+
@@ -43,14 +51,14 @@ $stats = (object) $array_of_stats;
Users Online
-
+
-
+
@@ -67,12 +75,12 @@ $stats = (object) $array_of_stats;
Channels
-
+
-
+
@@ -89,13 +97,13 @@ $stats = (object) $array_of_stats;
Opers
-
+
-
+
@@ -112,17 +120,17 @@ $stats = (object) $array_of_stats;
Servers
-
+
-
+
-
+
@@ -139,12 +147,12 @@ $stats = (object) $array_of_stats;
Server Bans
-
+
-
+
@@ -161,12 +169,12 @@ $stats = (object) $array_of_stats;
Spamfilter
-
+
-
+
@@ -184,7 +192,7 @@ $stats = (object) $array_of_stats;
Server Ban Exceptions
-
+
@@ -192,17 +200,12 @@ $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";
?>
-
+
@@ -219,7 +223,7 @@ $stats = (object) $array_of_stats;
Services Online
-
+
@@ -228,6 +232,84 @@ $stats = (object) $array_of_stats;
+
+
+
+