X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/bdf7619aefc98b662efbf7336ea2118044db141e..41aad10cbe0755aee50f597cb2cadd3029de7e1d:/index.php
diff --git a/index.php b/index.php
index 511bd46..b41cdad 100644
--- a/index.php
+++ b/index.php
@@ -1,13 +1,23 @@
query("stats.get", []);
-var_dump($stats);
-?>
-
-
Network Overview
+require_once "inc/header.php";
+require_once "inc/connection.php";
+$stats = $rpc->stats()->get();
+?>
+
+
Network Overview
+âªLIVE
+
+
+
-
-
-
-
+
+
@@ -44,14 +61,14 @@ $stats = (object) $array_of_stats;
Users Online
-
+
-
+
@@ -68,12 +85,12 @@ $stats = (object) $array_of_stats;
Channels
-
+
-
+
@@ -90,13 +107,13 @@ $stats = (object) $array_of_stats;
Opers
-
+
-
+
@@ -113,17 +130,17 @@ $stats = (object) $array_of_stats;
Servers
-
+
-
+
-
+
@@ -140,12 +157,12 @@ $stats = (object) $array_of_stats;
Server Bans
-
+
-
+
@@ -162,12 +179,12 @@ $stats = (object) $array_of_stats;
Spamfilter
-
+
-
+
@@ -185,7 +202,7 @@ $stats = (object) $array_of_stats;
Server Ban Exceptions
-
+
@@ -193,17 +210,12 @@ $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";
?>
-
+
@@ -220,7 +233,7 @@ $stats = (object) $array_of_stats;
Services Online
-
+
@@ -229,8 +242,86 @@ $stats = (object) $array_of_stats;
+
+
+
+