X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/28d5eb87e982bc63543a5336720b2a058daf901e..7aad7c29843ca2e7a6c6a5bf648ba71ef75ab6e8:/index.php diff --git a/index.php b/index.php index f6aa3d2..32b849d 100644 --- a/index.php +++ b/index.php @@ -1,32 +1,42 @@ query("stats.get", []); ?>

Network Overview

-
+
-
+
- + + user->record; ?> +
-

-
Users
+

user->total - $stats->user->ulined; ?>

+
+
+
+
Users Online
+
+ +
+
+ +
-
+
@@ -34,14 +44,21 @@ rpc_pop_lists();
-

+

channel->total; ?>

+
+
+
+
+
+
Channels
+
-
+
@@ -49,14 +66,23 @@ rpc_pop_lists();
-

+

user->oper; ?>

+
+
+
+
+
+
Opers
+ +
-
+ +
@@ -64,19 +90,26 @@ rpc_pop_lists();
-

+

server->total; ?>

+
+
+
+
+
+
Servers
+
-
+
-
+
@@ -84,14 +117,21 @@ rpc_pop_lists();
-

+

server_ban->server_ban; ?>

+
+
+
+
+
+
Server Bans
+
-
+
@@ -99,14 +139,21 @@ rpc_pop_lists();
-

-
Spamfilter Entries
+

server_ban->spamfilter; ?>

+
+
+
+
+
+
+
Spamfilter
+
-
+
@@ -114,18 +161,35 @@ rpc_pop_lists();
-

-
Ban Excepts
+

server_ban->server_ban_exception; ?>

+
+
+
+ +
+
+
+
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"; + ?> +
@@ -133,13 +197,24 @@ rpc_pop_lists();
-

+

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

+
+
+
+
+
+
Services Online
+
-
\ No newline at end of file +
+ +