X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/bdf7619aefc98b662efbf7336ea2118044db141e..ea90b321a4b3768028d841b307c362af97a5e6e1:/index.php
diff --git a/index.php b/index.php
index 511bd46..b5009ce 100644
--- a/index.php
+++ b/index.php
@@ -1,9 +1,9 @@
query("stats.get", []);
-var_dump($stats);
?>
Network Overview
@@ -19,13 +19,15 @@ 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);
?>
+
-
-
-
-
+
+
@@ -44,14 +46,14 @@ $stats = (object) $array_of_stats;
Users Online
-
+
-
+
@@ -68,12 +70,12 @@ $stats = (object) $array_of_stats;
Channels
-
+
-
+
@@ -90,13 +92,13 @@ $stats = (object) $array_of_stats;
Opers
-
+
-
+
@@ -113,7 +115,7 @@ $stats = (object) $array_of_stats;
Servers
-
+
@@ -123,7 +125,7 @@ $stats = (object) $array_of_stats;
-
+
@@ -140,12 +142,12 @@ $stats = (object) $array_of_stats;
Server Bans
-
+
-
+
@@ -162,12 +164,12 @@ $stats = (object) $array_of_stats;
Spamfilter
-
+
-
+
@@ -185,7 +187,7 @@ $stats = (object) $array_of_stats;
Server Ban Exceptions
-
+
@@ -193,17 +195,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";
?>
-
+
@@ -220,7 +218,7 @@ $stats = (object) $array_of_stats;
Services Online
-
+
@@ -229,6 +227,57 @@ $stats = (object) $array_of_stats;
+
+
+
+