X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/ef866d8c9503c717e53173655402b3769d529fec..3d4e4ec4af3d2ba1eb9d7bece2361ddd56d5c7ca:/index.php?ds=sidebyside diff --git a/index.php b/index.php index 3718721..6ac2254 100644 --- a/index.php +++ b/index.php @@ -1,200 +1,376 @@ - - -
-Chat Overview | - |
---|---|
Users | |
Opers | |
Services | |
Most popular channel | ( users) |
Channels | |
Server bans | |
Spamfilter entries |
Nick | -UID | -Host / IP | -Account | -Usermodes | -Oper | -Secure | -Connected to | -Reputation â¹ï¸ | - - "; - echo "".$user['name']." | "; - echo "".$user['id']." | "; - echo "".$user['hostname']." (".$user['ip'].") | "; - $account = (isset($user['account'])) ? $user['account'] : ""; - echo "".$account." | "; - $modes = (isset($user['user']['modes'])) ? "+" . $user['user']['modes'] : "".$modes." | "; - $oper = (isset($user['user']['operlogin'])) ? $user['user']['operlogin']." (".$user['user']['operclass'].")" : ""; - echo "".$oper." | "; - $secure = (isset($user['tls'])) ? "â " : "â"; - echo "".$secure." | "; - echo "".$user['user']['servername']." | "; - echo "".$user['user']['reputation']." | "; +/* 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("
---|