X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/5616422143594630a6e83ca3efbcb9b8d0cfbffe..4b48b46f55bb6a03a29d0d0db04b3076c1eaae8f:/index.php diff --git a/index.php b/index.php index c3acf6a..175d4ea 100644 --- a/index.php +++ b/index.php @@ -3,7 +3,7 @@ require_once "common.php"; require_once "connection.php"; require_once "header.php"; -$stats = $rpc->query("stats.get", []); +$stats = $rpc->stats()->get(); ?>

Network Overview

@@ -24,7 +24,12 @@ Hook::run(HOOKTYPE_GET_USER_LIST, $userlist); $num_of_panel_admins = count($userlist); ?> -
+ +
@@ -46,7 +51,7 @@ $num_of_panel_admins = count($userlist);
Users Online
- +
@@ -70,7 +75,7 @@ $num_of_panel_admins = count($userlist);
Channels
-
View
+
channels">View
@@ -92,7 +97,7 @@ $num_of_panel_admins = count($userlist);
Opers
-
">View
+
">View
@@ -115,14 +120,14 @@ $num_of_panel_admins = count($userlist);
Servers
-
View
+
servers">View
-
+
@@ -142,7 +147,7 @@ $num_of_panel_admins = count($userlist);
Server Bans
- +
@@ -164,7 +169,7 @@ $num_of_panel_admins = count($userlist);
Spamfilter
-
View
+
spamfilter.php">View
@@ -187,7 +192,7 @@ $num_of_panel_admins = count($userlist);
Server Ban Exceptions
-
View
+
server-bans/ban-exceptions.php">View
@@ -195,12 +200,7 @@ $num_of_panel_admins = count($userlist); 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"; @@ -223,7 +223,7 @@ $num_of_panel_admins = count($userlist);
Services Online
-
">View
+
">View
@@ -234,29 +234,56 @@ $num_of_panel_admins = count($userlist); -
+
@@ -274,9 +301,9 @@ $num_of_panel_admins = count($userlist);
-
Panel Access
+
Panel Accounts
- +