X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/1bc2dc2ca15db2fbfbe7362e5443b9882b41abb7..7bcd30edb23fcc1872f0a6772ab91b3c9d8b4779:/servers/index.php diff --git a/servers/index.php b/servers/index.php index 0095e1c..c328337 100644 --- a/servers/index.php +++ b/servers/index.php @@ -1,6 +1,7 @@ server()->getAll(); +$latest = 0; +if ($checkforupdates) +{ + $latest = get_unreal_latest_version(); +} ?>

Servers Overview

- +
Filter:
- Name + Name:
-
Rehash Selected


+ +
Rehash Selected
+ - - - + + + @@ -141,14 +149,25 @@ Click on a server name to view more information. strpos(strtolower($server->name), strtolower($_POST['sf_name'])) == false) continue; + $update = ""; + if ($checkforupdates && $latest) + { + + $tok = split($server->server->features->software, "-"); + if (!strcasecmp($tok[0],"unrealircd")) + { + if ($latest > $tok[1]) + $update = " "; + } + } echo ""; echo ""; - echo "id."\">$server->name"; + echo "id."\">$server->name $update"; echo "".$server->server->num_users.""; $s = sinfo_conv_version_string($server); - + echo "$s"; if (isset($server->server->uplink)) echo "".$server->server->uplink.""; @@ -161,4 +180,4 @@ Click on a server name to view more information. - +