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; + ?> -
Nick | -name; ?> |
- ||
---|---|---|---|
UID | -id; ?> |
- ||
Real Host | -hostname; ?> |
- ||
IP | -ip." ";
- if ($cc = (isset($user->geoip->country_code)) ? strtolower($user->geoip->country_code) : "")
- {
- ?>
-
- |
- ||
Ident | -user->username; ?> |
- ||
GECOS / Real Name | -user->realname; ?> |
- ||
Virtual Host | -user->vhost)) ? $user->user->vhost : ""; ?> |
- ||
Connected to | -user->servername; ?> |
- - | |
Logged in as | -user->account)) ? $user->user->account : ""; ?> |
-
Nick | +name); ?> |
+ |
---|---|---|
User ID (UID) | +id); ?> |
+ |
Real Host | +hostname); ?> |
+ |
IP | +ip); ?>
+ geoip->country_code)) ? strtolower($user->geoip->country_code) : "")
+ {
+ ?>
+
+ ip"); ?>">
+ |
+ |
Ident | +user->username); ?> |
+ |
GECOS / Real Name | +user->realname); ?> |
+ |
Virtual Host | +user->vhost)) ? htmlspecialchars($user->user->vhost) : ""; ?> |
+ |
Connected to | + server()->get($user->user->servername); ?> + +id"; ?>">user->servername); ?> |
-
user->account)) ? "user->account)."\">".htmlspecialchars($user->user->account)."" : ""; ?>
";
+ $i = 1;
+ foreach($user->user->{"security-groups"} as $sg)
+ {
+ echo "$sg ";
+ }
+ echo "
Oper | +
+
|
+ ||||
---|---|---|---|---|---|
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 | +
+
|
+ ||||
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 Login | -user->operlogin; ?> |
-
Oper Class | -user->operclass)) ? "".$user->user->operclass."" : "None"; ?> | -
/WALLOPS
notices from IRC Operators.Cipher | -tls->cipher; ?> |
-
Cert Fingerprint | -tls->certfp)) ? "".$user->tls->certfp."" : "None"; ?> | -
/WHOIS
on them.
- + Channel + | ++ Status + | + + + user->channels as $chan) + { + ?> +
---|---|
name)."\">$chan->name"; ?> | +
+
+ level[$i]); $i++)
+ {
+ ?> level[$i] == "v")
+ {
+ ?>Voicelevel[$i] == "h")
+ {
+ ?>Half-Oplevel[$i] == "o")
+ {
+ ?>
+ Operatorlevel[$i] == "a") + { + ?>Adminlevel[$i] == "q") + { + ?>Ownerlevel[$i] == "Y") + { + ?>OJOIN |
+