X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/062258ffca3e14131ac530492d36ea0b0430602f..be5ea9604482ac6192dc8b03413e1fd8c2028f8b:/index.php diff --git a/index.php b/index.php index 1e966ec..0ed7b54 100644 --- a/index.php +++ b/index.php @@ -1,14 +1,25 @@ query("stats.get", []); -?> - -

Network Overview

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

Network Overview

+ +
-
+ +
@@ -28,12 +47,12 @@ $stats = (object) $array_of_stats;
- - user->record; ?> + +
-

user->total; ?>

+

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

channel->total; ?>

+

@@ -66,7 +85,7 @@ $stats = (object) $array_of_stats;
Channels
-
View
+
channels">View
@@ -76,10 +95,10 @@ $stats = (object) $array_of_stats;
- +
-

user->oper; ?>

+

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

server->total; ?>

+

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

server_ban->server_ban; ?>

+

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

server_ban->spamfilter; ?>

+

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

server_ban->server_ban_exception; ?>

+

@@ -183,33 +202,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 +228,7 @@ $stats = (object) $array_of_stats;
Services Online
- +
@@ -226,21 +236,80 @@ $stats = (object) $array_of_stats; - -
+ + + +
-
+
- +

@@ -250,9 +319,31 @@ $num_of_panel_admins = count($userlist);
-
Panel Users
+
Panel Accounts
+
+ +
+
+
+
+
+
+
+
+
+ +
+
+

+
+
+
+
+
@@ -263,4 +354,4 @@ $num_of_panel_admins = count($userlist); Hook::run(HOOKTYPE_OVERVIEW_CARD, $stats); -require_once "footer.php"; +require_once "inc/footer.php";