X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/4fc503d806fb32dc8d2ef286ceb4183ef54ad93f..630261974fd350964443aed92704938d4a8bd858:/index.php
diff --git a/index.php b/index.php
index 9919d35..219c143 100644
--- a/index.php
+++ b/index.php
@@ -1,12 +1,23 @@
query("stats.get", []);
-?>
-
-
Network Overview
+require_once "inc/header.php";
+require_once "inc/connection.php";
+$stats = $rpc->stats()->get();
+?>
+
+
Network Overview
+âªLIVE
+
-
+
+
@@ -36,7 +52,7 @@ $num_of_panel_admins = count($userlist);
-
user->total; ?>
+ user->total; ?>
@@ -45,7 +61,7 @@ $num_of_panel_admins = count($userlist);
Users Online
-
+
@@ -60,7 +76,7 @@ $num_of_panel_admins = count($userlist);
-
channel->total; ?>
+ channel->total; ?>
@@ -69,7 +85,7 @@ $num_of_panel_admins = count($userlist);
Channels
-
+
@@ -82,7 +98,7 @@ $num_of_panel_admins = count($userlist);
-
user->oper; ?>
+ user->oper; ?>
@@ -91,7 +107,7 @@ $num_of_panel_admins = count($userlist);
Opers
-
+
@@ -105,7 +121,7 @@ $num_of_panel_admins = count($userlist);
-
server->total; ?>
+ server->total; ?>
@@ -114,14 +130,14 @@ $num_of_panel_admins = count($userlist);
Servers
-
+
-
+
@@ -132,7 +148,7 @@ $num_of_panel_admins = count($userlist);
-
server_ban->server_ban; ?>
+ server_ban->server_ban; ?>
@@ -141,7 +157,7 @@ $num_of_panel_admins = count($userlist);
Server Bans
-
+
@@ -154,7 +170,7 @@ $num_of_panel_admins = count($userlist);
-
server_ban->spamfilter; ?>
+ server_ban->spamfilter; ?>
@@ -163,7 +179,7 @@ $num_of_panel_admins = count($userlist);
Spamfilter
-
+
@@ -176,7 +192,7 @@ $num_of_panel_admins = count($userlist);
-
server_ban->server_ban_exception; ?>
+ server_ban->server_ban_exception; ?>
@@ -186,7 +202,7 @@ $num_of_panel_admins = count($userlist);
Server Ban Exceptions
-
+
@@ -194,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";
@@ -212,7 +223,8 @@ $num_of_panel_admins = count($userlist);
- user->ulined; ?>/server->ulined; ?>
+
+ user->ulined; ?>/server->ulined; ?>
@@ -221,7 +233,7 @@ $num_of_panel_admins = count($userlist);
Services Online
-
+
@@ -229,7 +241,59 @@ $num_of_panel_admins = count($userlist);
-
+
+
+
+
+
@@ -247,9 +311,9 @@ $num_of_panel_admins = count($userlist);
-
Panel Users
+ Panel Accounts
-
+
@@ -260,4 +324,4 @@ $num_of_panel_admins = count($userlist);
Hook::run(HOOKTYPE_OVERVIEW_CARD, $stats);
-require_once "footer.php";
+require_once "inc/footer.php";