X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/79ed2176e804ca03dd6555cd58f91770c6f0b042..d5ffb4bb26cc3910c5e4da8de0f6ed8e64a273fa:/index.php diff --git a/index.php b/index.php index 632580c..aa0a7d0 100644 --- a/index.php +++ b/index.php @@ -1,220 +1,376 @@ 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); +$current_user = unreal_get_current_user(); +if (isset($current_user->user_meta['hibp'])) +{ + $num = $current_user->user_meta['hibp']; + Message::Fail("
Urgent
","Your password was found in a data breach $num time(s).", + "Please update your password immediately"); +} +?> + +
+ +
+ +
-
- -
-
-
-
- -
- -
-
-
-
-
-
- + - -
-
-
-
-
- -
- - -
-
-
-
-
- -
-
-

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