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

Network Overview

- +
+

Network Overview

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

user->total; ?>

+

user->total; ?>

@@ -42,7 +54,7 @@ $stats = (object) $array_of_stats;
Users Online
-
View
+
users">View
@@ -57,7 +69,7 @@ $stats = (object) $array_of_stats;
-

channel->total; ?>

+

channel->total; ?>

@@ -66,7 +78,7 @@ $stats = (object) $array_of_stats;
Channels
-
View
+
channels">View
@@ -79,7 +91,7 @@ $stats = (object) $array_of_stats;
-

user->oper; ?>

+

user->oper; ?>

@@ -88,7 +100,7 @@ $stats = (object) $array_of_stats;
Opers
-
">View
+
">View
@@ -102,7 +114,7 @@ $stats = (object) $array_of_stats;
-

server->total; ?>

+

server->total; ?>

@@ -111,14 +123,14 @@ $stats = (object) $array_of_stats;
Servers
-
View
+
servers">View
-
+
@@ -129,7 +141,7 @@ $stats = (object) $array_of_stats;
-

server_ban->server_ban; ?>

+

server_ban->server_ban; ?>

@@ -138,7 +150,7 @@ $stats = (object) $array_of_stats;
Server Bans
-
View
+
server-bans">View
@@ -151,7 +163,7 @@ $stats = (object) $array_of_stats;
-

server_ban->spamfilter; ?>

+

server_ban->spamfilter; ?>

@@ -160,7 +172,7 @@ $stats = (object) $array_of_stats;
Spamfilter
-
View
+
spamfilter.php">View
@@ -173,7 +185,7 @@ $stats = (object) $array_of_stats;
-

server_ban->server_ban_exception; ?>

+

server_ban->server_ban_exception; ?>

@@ -183,7 +195,7 @@ $stats = (object) $array_of_stats;
Server Ban Exceptions
-
View
+
server-bans/ban-exceptions.php">View
@@ -191,12 +203,7 @@ $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"; @@ -209,7 +216,8 @@ $stats = (object) $array_of_stats;
-

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

+ +

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

@@ -218,7 +226,7 @@ $stats = (object) $array_of_stats;
Services Online
-
">View
+
">View
@@ -226,13 +234,59 @@ $stats = (object) $array_of_stats; - -
+ + + +
@@ -250,9 +304,9 @@ $num_of_panel_admins = count($userlist);
-
Panel Users
+
Panel Accounts
- +