X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/d737e927565fe512b1108bd2b339ba76beea12cc..e847862e26378bcc8374e76ac2e9be8092f98566:/misc/server-lookup-misc.php diff --git a/misc/server-lookup-misc.php b/misc/server-lookup-misc.php index 4804f7b..02464b7 100644 --- a/misc/server-lookup-misc.php +++ b/misc/server-lookup-misc.php @@ -3,16 +3,15 @@ function generate_html_servermodes($server) { - include UPATH . "/Classes/class-cmodes.php"; ?> + server->features->chanmodes as $set) { if (!$set) @@ -24,6 +23,7 @@ function generate_html_servermodes($server) ?> + server->features->software)) ? $server->server->features->software : ""; $return = ""; + $tooltip = ""; + $badge = ""; + $display_string = $string; + if (strlen($string) && strpos($string,"-")) { $tok = split($string, "-"); - $return = "" . $tok[1] . "
NameMode Description Requires
- + - + - - - - - - - + - + server->uplink)) ? $rpc->server()->get($server->server->uplink) : "None"; ?> + - + @@ -99,6 +116,261 @@ function generate_html_serverinfo($server) server->features->usermodes; + echo "
Namename; ?>name); ?>
Server ID (SID)id; ?>id); ?>
Infoserver->info; ?>
Hosthostname; ?>
IPip." "; - if ($cc = (isset($server->geoip->country_code)) ? strtolower($server->geoip->country_code) : "") - { - ?> - - server->info); ?>
Uplinkserver->uplink."\">".$server->server->uplink.""; ?>id)."\">".htmlspecialchars($server->server->uplink).""; ?>
User countserver->num_users; ?>server->num_users); ?>
Version
"; + for ($i=0; ($mode = (isset($modes[$i])) ? $modes[$i] : NULL); $i++) + { + + if ($mode == "o") + { + ?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + "; +} + +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. +
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); ?>
Boot timeserver->boot_time); ?>
U-Linedserver->ulined) ? "Yes" : "No"; ?>
Protocolserver->features->protocol); ?>
TLS + + + + + + + + + +
Cert Fingerprint".htmlspecialchars($server->tls->certfp).""; ?>
TLS Cipher".htmlspecialchars($server->tls->cipher).""; ?>
+
+ list as $module) { echo "\n"; - echo "$module->name"; + echo "".htmlspecialchars($module->name).""; $desc = $module->description; $short_desc = substr($desc, 0, 70); // truncate to 80 chars if (strlen($desc) > strlen($short_desc)) $short_desc .= "..."; - echo "$short_desc"; + echo "".htmlspecialchars($short_desc).""; $source = (!$module->third_party) ? "
Official
" : "
Third-Party
"; echo "$source"; - echo "$module->author"; - echo "$module->version"; + echo "".htmlspecialchars($module->author).""; + echo "".htmlspecialchars($module->version).""; } } ?> @@ -138,4 +410,29 @@ function generate_html_modlist($srv) $value) + { + if ($key > $biggest) + $biggest = $key; + } + if (!$biggest) + { + Message::Fail("Could not get latest version of UnrealIRCd. Please check again later."); + return NULL; + } + return $arr[$biggest]['Stable']['version']; } \ No newline at end of file