X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/440ff671f07bf112f2371cbe7e1afb23f2f614b6..be5ea9604482ac6192dc8b03413e1fd8c2028f8b:/index.php diff --git a/index.php b/index.php index fb2cd8e..0ed7b54 100644 --- a/index.php +++ b/index.php @@ -1,28 +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); - +$userlist = []; +Hook::run(HOOKTYPE_GET_USER_LIST, $userlist); +$num_of_panel_admins = count($userlist); -
-
+?> + +
+ +
+
- - user->record; ?> + +
-

user->total; ?>

+

@@ -31,22 +61,22 @@ $stats = $rpc->query("stats.get", []);
Users Online
- +
-
+
- +
-

channel->total; ?>

+

@@ -55,20 +85,20 @@ $stats = $rpc->query("stats.get", []);
Channels
- +
-
+
- +
-

user->oper; ?>

+

@@ -77,21 +107,21 @@ $stats = $rpc->query("stats.get", []);
Opers
- +
-
+
- +
-

server->total; ?>

+

@@ -100,25 +130,25 @@ $stats = $rpc->query("stats.get", []);
Servers
- +
-
+
-
+
- +
-

server_ban->server_ban; ?>

+

@@ -127,20 +157,20 @@ $stats = $rpc->query("stats.get", []);
Server Bans
- +
-
+
- +
-

server_ban->spamfilter; ?>

+

@@ -149,20 +179,20 @@ $stats = $rpc->query("stats.get", []);
Spamfilter
- +
-
+
- +
-

server_ban->server_ban_exception; ?>

+

@@ -172,33 +202,24 @@ $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 ?> -
+
- +
-

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

+ +

@@ -207,7 +228,7 @@ $stats = $rpc->query("stats.get", []);
Services Online
- +
@@ -216,8 +237,121 @@ $stats = $rpc->query("stats.get", []);
+ + + +
+ +
+
+
+
+
+
+ +
+
+

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

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