X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/5616422143594630a6e83ca3efbcb9b8d0cfbffe..41aad10cbe0755aee50f597cb2cadd3029de7e1d:/index.php diff --git a/index.php b/index.php index c3acf6a..b41cdad 100644 --- a/index.php +++ b/index.php @@ -1,13 +1,23 @@ query("stats.get", []); -?> - -

Network Overview

+require_once "inc/header.php"; +require_once "inc/connection.php"; +$stats = $rpc->stats()->get(); +?> +
+

Network Overview

+⚪LIVE
+
-
+ +
@@ -46,7 +61,7 @@ $num_of_panel_admins = count($userlist);
Users Online
- +
@@ -70,7 +85,7 @@ $num_of_panel_admins = count($userlist);
Channels
-
View
+
channels">View
@@ -92,7 +107,7 @@ $num_of_panel_admins = count($userlist);
Opers
-
">View
+
">View
@@ -115,14 +130,14 @@ $num_of_panel_admins = count($userlist);
Servers
-
View
+
servers">View
-
+
@@ -142,7 +157,7 @@ $num_of_panel_admins = count($userlist);
Server Bans
- +
@@ -164,7 +179,7 @@ $num_of_panel_admins = count($userlist);
Spamfilter
-
View
+
spamfilter.php">View
@@ -187,7 +202,7 @@ $num_of_panel_admins = count($userlist);
Server Ban Exceptions
-
View
+
server-bans/ban-exceptions.php">View
@@ -195,12 +210,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 +233,7 @@ $num_of_panel_admins = count($userlist);
Services Online
-
">View
+
">View
@@ -234,29 +244,56 @@ $num_of_panel_admins = count($userlist); -
+
@@ -274,9 +311,9 @@ $num_of_panel_admins = count($userlist);
-
Panel Access
+
Panel Accounts
- +
@@ -287,4 +324,4 @@ $num_of_panel_admins = count($userlist); Hook::run(HOOKTYPE_OVERVIEW_CARD, $stats); -require_once "footer.php"; +require_once "inc/footer.php";