X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/bdf7619aefc98b662efbf7336ea2118044db141e..a20d0d3934d18fb0c116461c0e0406d8b2e1f982:/index.php diff --git a/index.php b/index.php index 511bd46..dbd4e03 100644 --- a/index.php +++ b/index.php @@ -1,13 +1,16 @@ query("stats.get", []); -var_dump($stats); +$stats = $rpc->stats()->get(); ?> - -

Network Overview

- +
+

Network Overview

+⚪LIVE
+
+ +
-
- -
-
+
+
@@ -35,7 +45,7 @@ $stats = (object) $array_of_stats;
-

user->total; ?>

+

user->total; ?>

@@ -44,14 +54,14 @@ $stats = (object) $array_of_stats;
Users Online
- +
-
+
@@ -59,7 +69,7 @@ $stats = (object) $array_of_stats;
-

channel->total; ?>

+

channel->total; ?>

@@ -68,12 +78,12 @@ $stats = (object) $array_of_stats;
Channels
- +
-
+
@@ -81,7 +91,7 @@ $stats = (object) $array_of_stats;
-

user->oper; ?>

+

user->oper; ?>

@@ -90,13 +100,13 @@ $stats = (object) $array_of_stats;
Opers
- +
-
+
@@ -104,7 +114,7 @@ $stats = (object) $array_of_stats;
-

server->total; ?>

+

server->total; ?>

@@ -113,17 +123,17 @@ $stats = (object) $array_of_stats;
Servers
- +
-
+
-
+
@@ -131,7 +141,7 @@ $stats = (object) $array_of_stats;
-

server_ban->server_ban; ?>

+

server_ban->server_ban; ?>

@@ -140,12 +150,12 @@ $stats = (object) $array_of_stats;
Server Bans
- +
-
+
@@ -153,7 +163,7 @@ $stats = (object) $array_of_stats;
-

server_ban->spamfilter; ?>

+

server_ban->spamfilter; ?>

@@ -162,12 +172,12 @@ $stats = (object) $array_of_stats;
Spamfilter
- +
-
+
@@ -175,7 +185,7 @@ $stats = (object) $array_of_stats;
-

server_ban->server_ban_exception; ?>

+

server_ban->server_ban_exception; ?>

@@ -185,7 +195,7 @@ $stats = (object) $array_of_stats;
Server Ban Exceptions
- +
@@ -193,17 +203,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"; ?> -
+
@@ -211,7 +216,8 @@ $stats = (object) $array_of_stats;
-

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

+ +

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

@@ -220,7 +226,7 @@ $stats = (object) $array_of_stats;
Services Online
- +
@@ -229,6 +235,84 @@ $stats = (object) $array_of_stats; + + + +
+ +
+
+
+
+
+
+ +
+
+

+
+
+
+
+
+
+
Panel Accounts
+
+ +
+
+
+
+
+