From: Valerie Pond Date: Sun, 28 Apr 2024 21:03:08 +0000 (+0800) Subject: Show security-groups in user details X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/commitdiff_plain/c70f71922944e26e43703bb2b4bde049b96f6026?hp=017b380534d44cf112d9895de646df806734250f Show security-groups in user details --- diff --git a/misc/user-lookup-misc.php b/misc/user-lookup-misc.php index 27fc7b1..c1b32c8 100644 --- a/misc/user-lookup-misc.php +++ b/misc/user-lookup-misc.php @@ -2,368 +2,384 @@ function generate_html_whois($user) { - global $rpc; - ?> + global $rpc; + ?> - - - - - - - - - - - - - - - - - - - - - - - - - - server()->get($user->user->servername); ?> +
Nickname); ?>
User ID (UID)id); ?>
Real Hosthostname); ?>
IPip); ?> - geoip->country_code)) ? strtolower($user->geoip->country_code) : "") - { - ?> - - ip"); ?>"> -
Identuser->username); ?>
GECOS / Real Nameuser->realname); ?>
Virtual Hostuser->vhost)) ? htmlspecialchars($user->user->vhost) : ""; ?>
Connected to
+ + + + + + + + + + + + + + + + + + + + + + + + + server()->get($user->user->servername); ?> - + - - - - - - + + + + + + + + "; + $i = 1; + foreach($user->user->{"security-groups"} as $sg) + { + echo ""; + } + echo "
Nickname); ?>
User ID (UID)id); ?>
Real Hosthostname); ?>
IPip); ?> + geoip->country_code)) ? strtolower($user->geoip->country_code) : "") + { + ?> + + ip"); ?>"> +
Identuser->username); ?>
GECOS / Real Nameuser->realname); ?>
Virtual Hostuser->vhost)) ? htmlspecialchars($user->user->vhost) : ""; ?>
Connected toid"; ?>">user->servername); ?>id"; ?>">user->servername); ?>
Logged in asuser->account)) ? "user->account)."\">".htmlspecialchars($user->user->account)."" : ""; ?>
Logged in asuser->account)) ? "user->account)."\">".htmlspecialchars($user->user->account)."" : ""; ?>
Security Groups
$sg
"; ?> + + + ; + - - + + - + ?> - - - user->modes[$i])) ? $user->user->modes[$i] : NULL); $i++) - { - - if ($mode == "o") - { - ?> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + user->modes[$i])) ? $user->user->modes[$i] : NULL); $i++) + { + + if ($mode == "o") + { + ?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - -
Oper - - - - - - - - - -
Oper Loginuser->operlogin)) ? $user->user->operlogin : ""; - echo htmlspecialchars($operlogin); - ?>
Oper Classuser->operclass)) ? "".htmlspecialchars($user->user->operclass)."" : "None"; ?>
-
Service Bot - This user is a Services Bot. -
DeafUser is ignoring channel messages.
InvisibleNot shown in /WHO searches.
Private channelsChannels hidden in /WHOIS outputs.
Registered NickThis user is using a registered nick.
Server NoticesThis user is receiving server notices.
Virtual HostUsing a custom hostmask
WallopsListening to /WALLOPS notices from IRC Operators.
HostmaskUsing a hostmask (hiding their IP from non-IRCops).
Secure - - - - - - - - - -
Ciphertls->cipher)) ? $user->tls->cipher : ""; - echo htmlspecialchars($cipher); - ?>
Cert Fingerprinttls->certfp)) ? "".htmlspecialchars($user->tls->certfp)."" : "None"; ?>
-
Bot - User is marked as a Bot. -
PrivDeaf - User is rejecting incoming private messages. -
Filter - User is filtering Bad Words. -
Hide IRCop - User is hiding their IRCop status. -
Hide Idle - User is hiding their idle time. -
RegOnly Messages - User is only accepting private messages from registered users. -
Deny CTCPs - Denying CTCP requests. -
View /WHOIS - User is receiving notifications when someone does a /WHOIS on them. -
Deny Insecure Messages - User is only accepting messages from users using a secure connection. -
Oper + + + + + + + + + +
Oper Loginuser->operlogin)) ? $user->user->operlogin : ""; + echo htmlspecialchars($operlogin); + ?>
Oper Classuser->operclass)) ? "".htmlspecialchars($user->user->operclass)."" : "None"; ?>
+
Service Bot + This user is a Services Bot. +
DeafUser is ignoring channel messages.
InvisibleNot shown in /WHO searches.
Private channelsChannels hidden in /WHOIS outputs.
Registered NickThis user is using a registered nick.
Server NoticesThis user is receiving server notices.
Virtual HostUsing a custom hostmask
WallopsListening to /WALLOPS notices from IRC Operators.
HostmaskUsing a hostmask (hiding their IP from non-IRCops).
Secure + + + + + + + + + +
Ciphertls->cipher)) ? $user->tls->cipher : ""; + echo htmlspecialchars($cipher); + ?>
Cert Fingerprinttls->certfp)) ? "".htmlspecialchars($user->tls->certfp)."" : "None"; ?>
+
Bot + User is marked as a Bot. +
PrivDeaf + User is rejecting incoming private messages. +
Filter + User is filtering Bad Words. +
Hide IRCop + User is hiding their IRCop status. +
Hide Idle + User is hiding their idle time. +
RegOnly Messages + User is only accepting private messages from registered users. +
Deny CTCPs + Denying CTCP requests. +
View /WHOIS + User is receiving notifications when someone does a /WHOIS on them. +
Deny Insecure Messages + User is only accepting messages from users using a secure connection. +
+ ?> + + - + ?> - - - - - - - user->channels as $chan) - { - ?> - - - - - - -
- Channel - - Status -
name)."\">$chan->name"; ?> - - level[$i]); $i++) - { - ?>
level[$i] == "v") - { - ?>Voicelevel[$i] == "h") - { - ?>Half-Oplevel[$i] == "o") - { - ?>
Operator
level[$i] == "a") - { - ?>Adminlevel[$i] == "q") - { - ?>Ownerlevel[$i] == "Y") - { - ?>OJOIN
-
+ + + + + + + user->channels as $chan) + { + ?> + + + + + + +
+ Channel + + Status +
name)."\">$chan->name"; ?> + + level[$i]); $i++) + { + ?>
level[$i] == "v") + { + ?>Voicelevel[$i] == "h") + { + ?>Half-Oplevel[$i] == "o") + { + ?>
Operator
level[$i] == "a") + { + ?>Adminlevel[$i] == "q") + { + ?>Ownerlevel[$i] == "Y") + { + ?>OJOIN
+
-