X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/9e2a2ac021a33268908b8dd3ec1376f6bf8e0041..53c3262154b4828643ec075a42c30b6decb01377:/index.php
diff --git a/index.php b/index.php
index 61fef15..209abd0 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
+
-
+
+
@@ -33,7 +52,7 @@ $stats = (object) $array_of_stats;
-
user->total; ?>
+ user->total; ?>
@@ -42,7 +61,7 @@ $stats = (object) $array_of_stats;
Users Online
-
+
@@ -57,7 +76,7 @@ $stats = (object) $array_of_stats;
-
channel->total; ?>
+ channel->total; ?>
@@ -66,7 +85,7 @@ $stats = (object) $array_of_stats;
Channels
-
+
@@ -79,7 +98,7 @@ $stats = (object) $array_of_stats;
-
user->oper; ?>
+ user->oper; ?>
@@ -88,7 +107,7 @@ $stats = (object) $array_of_stats;
Opers
-
+
@@ -102,7 +121,7 @@ $stats = (object) $array_of_stats;
-
server->total; ?>
+ server->total; ?>
@@ -111,14 +130,14 @@ $stats = (object) $array_of_stats;
Servers
-
+
-
+
@@ -129,7 +148,7 @@ $stats = (object) $array_of_stats;
-
server_ban->server_ban; ?>
+ server_ban->server_ban; ?>
@@ -138,7 +157,7 @@ $stats = (object) $array_of_stats;
Server Bans
-
+
@@ -151,7 +170,7 @@ $stats = (object) $array_of_stats;
-
server_ban->spamfilter; ?>
+ server_ban->spamfilter; ?>
@@ -160,7 +179,7 @@ $stats = (object) $array_of_stats;
Spamfilter
-
+
@@ -173,7 +192,7 @@ $stats = (object) $array_of_stats;
-
server_ban->server_ban_exception; ?>
+ server_ban->server_ban_exception; ?>
@@ -183,7 +202,7 @@ $stats = (object) $array_of_stats;
Server Ban Exceptions
-
+
@@ -191,12 +210,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 +223,8 @@ $stats = (object) $array_of_stats;
- user->ulined; ?>/server->ulined; ?>
+
+ user->ulined; ?>/server->ulined; ?>
@@ -218,7 +233,7 @@ $stats = (object) $array_of_stats;
Services Online
-
+
@@ -227,8 +242,86 @@ $stats = (object) $array_of_stats;
+
+
+
+