X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/ac50314f80f10cbe6559a8041f48288d4809c5eb..579020f8c67f7bdfd9d530a25b701af6ee53c412:/misc/server-lookup-misc.php diff --git a/misc/server-lookup-misc.php b/misc/server-lookup-misc.php index e11f63e..2538ea6 100644 --- a/misc/server-lookup-misc.php +++ b/misc/server-lookup-misc.php @@ -12,33 +12,35 @@ function generate_html_servermodes($server) Requires server->features->chanmodes as $set) - { - if (!$set) - break; - for ($i = 0; isset($set[$i]); $i++) + if (isset($server->server->features->chanmodes)) + { + foreach ($server->server->features->chanmodes as $set) { - $mode = $set[$i]; - if (isset(IRCList::$cmodes[$mode])) { - ?> - - - - -
- - Unknown - Mode "" - - + + +
+ + + Unknown + Mode "" + + server->info); ?> Uplink - server->uplink)) ? $rpc->server()->get($server->server->uplink) : "None"; ?> - id)."\">".htmlspecialchars($server->server->uplink).""; ?> + server->uplink)) ? $rpc->server()->get($server->server->uplink) : NULL; ?> + id)."\">".htmlspecialchars($server->server->uplink)."" : "No uplink"; ?> User count server->num_users); ?> @@ -119,214 +121,218 @@ function generate_html_serverinfo($server) function generate_html_usermodes($server) { - $modes = $server->server->features->usermodes; + $modes = $server->server->features->usermodes ?? NULL; echo ""; - for ($i=0; ($mode = (isset($modes[$i])) ? $modes[$i] : NULL); $i++) - { - - if ($mode == "o") - { - ?> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "; + else { + for ($i=0; ($mode = (isset($modes[$i])) ? $modes[$i] : NULL); $i++) { - ?> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + "; @@ -339,19 +345,20 @@ function generate_html_extserverinfo($server) - + - + - + - + + + - +
Oper - User is an IRC Operator. -
Service Bot - User is a Services Bot. -
DeafUser is ignoring channel messages.
InvisibleNot shown in /WHO searches.
Private channelsChannels hidden in /WHOIS outputs.
Registered NickUser is using a registered nick.
Server NoticesUser 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 - User is using a secure connection. -
There are no usermodes for this server
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 + User is an IRC Operator. +
Service Bot + User is a Services Bot. +
DeafUser is ignoring channel messages.
InvisibleNot shown in /WHO searches.
Private channelsChannels hidden in /WHOIS outputs.
Registered NickUser is using a registered nick.
Server NoticesUser 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 + User is using a secure connection. +
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. +
IPip); ?>ip) ? htmlspecialchars($server->ip) : "Unable to detect IP"); ?>
Boot timeserver->boot_time); ?>server->boot_time) ? htmlspecialchars($server->server->boot_time) : "Not available"); ?>
U-Linedserver->ulined) ? "Yes" : "No"; ?>server->ulined) && $server->server->ulined) ? "Yes" : "No"; ?>
Protocol server->features->protocol); ?>
TLS @@ -365,6 +372,7 @@ function generate_html_extserverinfo($server)