X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/f10794036cb7c1a60ebfe26bf08d138e5c529b11..3ca012c96f78bc8a64a17d49d31c317a9a9466d6:/index.php diff --git a/index.php b/index.php index 32b849d..57c2213 100644 --- a/index.php +++ b/index.php @@ -1,26 +1,58 @@ query("stats.get", []); ?> +
+

Network Overview

+ +
+Network Overview +/* What if someone wants to add their own stats... */ +Hook::run(HOOKTYPE_PRE_OVERVIEW_CARD, $array_of_stats); -
+/* This makes sure that a plugin which called the parameter + * by reference can add/update the stats for display here. +*/ +$stats = (object) $array_of_stats; -
-
+$userlist = []; +Hook::run(HOOKTYPE_GET_USER_LIST, $userlist); +$num_of_panel_admins = count($userlist); + +?> + +
+ +
+
- user->record; ?> +
-

user->total - $stats->user->ulined; ?>

+

@@ -29,14 +61,14 @@ $stats = $rpc->query("stats.get", []);
Users Online
- +
-
+
@@ -44,7 +76,7 @@ $stats = $rpc->query("stats.get", []);
-

channel->total; ?>

+

@@ -53,12 +85,12 @@ $stats = $rpc->query("stats.get", []);
Channels
- +
-
+
@@ -66,7 +98,7 @@ $stats = $rpc->query("stats.get", []);
-

user->oper; ?>

+

@@ -75,14 +107,13 @@ $stats = $rpc->query("stats.get", []);
Opers
- - +
-
+
@@ -90,7 +121,7 @@ $stats = $rpc->query("stats.get", []);
-

server->total; ?>

+

@@ -99,17 +130,17 @@ $stats = $rpc->query("stats.get", []);
Servers
- +
-
+
-
+
@@ -117,7 +148,7 @@ $stats = $rpc->query("stats.get", []);
-

server_ban->server_ban; ?>

+

@@ -126,12 +157,12 @@ $stats = $rpc->query("stats.get", []);
Server Bans
- +
-
+
@@ -139,7 +170,7 @@ $stats = $rpc->query("stats.get", []);
-

server_ban->spamfilter; ?>

+

@@ -148,12 +179,12 @@ $stats = $rpc->query("stats.get", []);
Spamfilter
- +
-
+
@@ -161,7 +192,7 @@ $stats = $rpc->query("stats.get", []);
-

server_ban->server_ban_exception; ?>

+

@@ -171,25 +202,15 @@ $stats = $rpc->query("stats.get", []);
Server Ban Exceptions
- +
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 ?> -
+
@@ -197,7 +218,8 @@ $stats = $rpc->query("stats.get", []);
-

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

+ +

@@ -206,7 +228,7 @@ $stats = $rpc->query("stats.get", []);
Services Online
- +
@@ -215,6 +237,99 @@ $stats = $rpc->query("stats.get", []); + + + +
+ +
+
+
+
+
+
+ +
+
+

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