X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/74d1d3091b7d01debd9e5090e4e1b8235e2713df..e653740512b00c37a7fc19d9f41889f0844d6c68:/index.php diff --git a/index.php b/index.php index 32b849d..9734271 100644 --- a/index.php +++ b/index.php @@ -1,220 +1,365 @@ query("stats.get", []); ?> +
+

Network Overview

+ LIVE + +
+Network Overview +/* 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); -
+?> + +
+ + - -
-
-
-
- - +
-
-
-
- -
- -
-
-
-
-
-
- -
- - -
-
-
-
-
- -
-
-

server_ban->spamfilter; ?>

-
-
-
-
-
-
-
Spamfilter
-
- -
-
-
-
-
-
-
-
-
- -
-
-

server_ban->server_ban_exception; ?>

-
-
-
-
-
-
-
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"; + + + -
- +