X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/28d5eb87e982bc63543a5336720b2a058daf901e..e0c259fc7c93c77aa87d52f32a8c0ec7071843c2:/index.php
diff --git a/index.php b/index.php
index f6aa3d2..4db5cb0 100644
--- a/index.php
+++ b/index.php
@@ -1,32 +1,56 @@
query("stats.get", []);
?>
Network Overview
-
+
+
+
-
+
-
-
-
+
+
+
+
+
+
+
Server Ban Exceptions
+
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";
+ }
+ else
+ $bg = "bg-warning";
+ ?>
+
-
\ No newline at end of file
+
+
+