X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/33f512fa30c06fa488c42e68f9bc9f401300a5ab..f2e07243d0746dfbc7fb516c62134d03fd465eb5:/index.php diff --git a/index.php b/index.php index 173a84d..ee74214 100644 --- a/index.php +++ b/index.php @@ -1,14 +1,25 @@ query("stats.get", []); -?> - -

Network Overview

+require_once "inc/header.php"; +?> +
+

Network Overview

+ +
-
+ +
-
+
- - user->record; ?> + +
-

user->total; ?>

+

@@ -42,7 +60,7 @@ $stats = (object) $array_of_stats;
Users Online
- +
@@ -54,10 +72,10 @@ $stats = (object) $array_of_stats;
- +
-

channel->total; ?>

+

@@ -66,7 +84,7 @@ $stats = (object) $array_of_stats;
Channels
- +
@@ -76,10 +94,10 @@ $stats = (object) $array_of_stats;
- +
-

user->oper; ?>

+

@@ -88,7 +106,7 @@ $stats = (object) $array_of_stats;
Opers
-
">View
+ @@ -99,10 +117,10 @@ $stats = (object) $array_of_stats;
- +
-

server->total; ?>

+

@@ -111,14 +129,14 @@ $stats = (object) $array_of_stats;
Servers
-
View
+
servers">View
-
+
@@ -126,10 +144,10 @@ $stats = (object) $array_of_stats;
- +
-

server_ban->server_ban; ?>

+

@@ -138,7 +156,7 @@ $stats = (object) $array_of_stats;
Server Bans
- +
@@ -148,10 +166,10 @@ $stats = (object) $array_of_stats;
- +
-

server_ban->spamfilter; ?>

+

@@ -160,7 +178,7 @@ $stats = (object) $array_of_stats;
Spamfilter
-
View
+
spamfilter.php">View
@@ -170,10 +188,10 @@ $stats = (object) $array_of_stats;
- +
-

server_ban->server_ban_exception; ?>

+

@@ -183,33 +201,24 @@ $stats = (object) $array_of_stats;
Server Ban Exceptions
-
View
+
server-bans/ban-exceptions.php">View
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"; - } - else - $bg = "bg-warning"; + $bg = "bg-success"; // FIXME: this isn't dynamic ?>
- +
-

user->ulined; ?>/server->ulined; ?>

+ +

@@ -218,7 +227,7 @@ $stats = (object) $array_of_stats;
Services Online
- +
@@ -227,8 +236,123 @@ $stats = (object) $array_of_stats; + + + +
+ +
+
+
+
+
+
+ +
+
+

+
+
+
+
+
+
+
Panel Accounts
+
+ +
+
+
+
+
+
+
+
+
+ +
+
+

+
+
+
+
+
+
+
Plugins
+
+ +
+
+
+
+
+