X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/76200e36b9dce259a825f751f5e33abab4be9a06..9a4a88b54415ab2ed3e797ed07953c626d02c38b:/index.php diff --git a/index.php b/index.php index 044775f..73512bb 100644 --- a/index.php +++ b/index.php @@ -1,213 +1,320 @@ - - - -
-

UnrealIRCd Administration Panel


+ +
+

Network Overview

+⚪LIVE
- -
- Overview - Users - Channels - Server Bans - Spamfilter -
$value) - { - foreach ($value as $tok) - { - $tok = explode(",",$tok); - rpc_tkl_del(base64_decode($tok[0]), base64_decode($tok[1])); - } - } +$array_of_stats = []; + +/* 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); -rpc_pop_lists(); // populate our static lists (users, channels, tkl, spamfilter) ?> + +
-
-
- - - - - - - - - -
Chat Overview
Users
Opers
Services
Most popular channel ( users)
Channels
Server bans
Spamfilter entries
- -
-
-

- - - - - - - - - - - - "; - echo ""; - echo ""; - echo ""; - $account = (isset($user['user']['account'])) ? $user['user']['account'] : ""; - echo ""; - $modes = (isset($user['user']['modes'])) ? "+" . $user['user']['modes'] : ""; - echo ""; - $oper = (isset($user['user']['operlogin'])) ? $user['user']['operlogin']." (".$user['user']['operclass'].")" : ""; - echo ""; - $secure = (isset($user['tls'])) ? "✅" : "❌"; - echo ""; - echo ""; - echo ""; +
+
+
+
+
+
+ + + +
+
+

+
+
+
+
+
+
+
Users Online
+
+ +
+
+
+ + +
+
+
+
+
+
+ +
+
+

+
+
+
+
+
+
+
Channels
+
+ +
+
+
+
+
+
+
+
+
+ +
+
+

+
+
+
+
+
+
+
Opers
+
+ +
+
+
+
+ +
+
+
+
+
+ +
+
+

+
+
+
+
+
+
+
Servers
+
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+
+ +
+
+

+
+
+
+
+
+
+
Server Bans
+
+ +
+
+
+
+
+
+
+
+
+ +
+
+

+
+
+
+
+
+
+
Spamfilter
+
+ +
+
+
+
+
+
+
+
+
+ +
+
+

+
+
+
+ +
+
+
+
Server Ban Exceptions
+
+ +
+
+
+
+ +
+
+
+
+
+ +
+
+ +

+
+
+
+
+
+
+
Services Online
+
+ +
+
+ +
+
+
+
+ + + + +
+ +
+
+
+
+
+
+ +
+
+

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

Copyright 2022-2023 © UnrealIRCd

\ No newline at end of file +require_once "inc/footer.php";
NickUIDHost / IPAccountUsermodesOperSecureConnected toReputation ℹ️".$user['name']."".$user['id']."".$user['hostname']." (".$user['ip'].")".$account."".$modes."".$oper."".$secure."".$user['user']['servername']."".$user['user']['reputation']."