X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/62d4ea03f96d19a718a104bfec4fa7a583341b12..c70f71922944e26e43703bb2b4bde049b96f6026:/misc/user-lookup-misc.php diff --git a/misc/user-lookup-misc.php b/misc/user-lookup-misc.php index 7bc997c..c1b32c8 100644 --- a/misc/user-lookup-misc.php +++ b/misc/user-lookup-misc.php @@ -2,292 +2,384 @@ function generate_html_whois($user) { - ?> + global $rpc; + ?> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
Nickname; ?>
UIDid; ?>
Real Hosthostname; ?>
IPip." "; - if ($cc = (isset($user->geoip->country_code)) ? strtolower($user->geoip->country_code) : "") - { - ?> - -
Identuser->username; ?>
GECOS / Real Nameuser->realname; ?>
Virtual Hostuser->vhost)) ? $user->user->vhost : ""; ?>
Connected touser->servername; ?>
Logged in asuser->account)) ? $user->user->account : ""; ?>
+ + + + + + + + + + + + + + + + + + + + + + + + + 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 toid"; ?>">user->servername); ?>
+ + + Logged in as + user->account)) ? "user->account)."\">".htmlspecialchars($user->user->account)."" : ""; ?> + + + Security Groups + "; + $i = 1; + foreach($user->user->{"security-groups"} as $sg) + { + echo "
$sg"; + } + echo ""; ?> + + + ; + - + + + + ?> + + + + 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. +
+ + - - user->modes[$i])) ? $user->user->modes[$i] : NULL); $i++) - { - - if ($mode == "o") - { - ?> - - Oper - - - - - - - - - - -
Oper Loginuser->operlogin; ?>
Oper Classuser->operclass)) ? "".$user->user->operclass."" : "None"; ?>
- - - - - Service Bot - - This user is a Services Bot. - - - - - Deaf - User is ignoring channel messages. - - - - Invisible - Not shown in /WHO searches. - - - - Private channels - Channels hidden in /WHOIS outputs. - - - - Registered Nick - This user is using a registered nick. - - - - Server Notices - This user is receiving server notices. - - - - Virtual Host - Using a custom hostmask - - - - Wallops - Listening to /WALLOPS notices from IRC Operators. - - - - Hostmask - Using a hostmask (hiding their IP from non-IRCops). - - - - Secure - - - - - - - - - - -
Ciphertls->cipher; ?>
Cert Fingerprinttls->certfp)) ? "".$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
+
-