diff -r dda91dfa4aa8 -r dc88583a068d www-thermferm/utilities.php --- a/www-thermferm/utilities.php Tue Aug 26 13:50:35 2014 +0200 +++ b/www-thermferm/utilities.php Tue Aug 26 14:45:03 2014 +0200 @@ -136,9 +136,25 @@ } - function build_header($heading) { + $answer = send_cmd('GLOBAL GET'); + $arr = explode("\r\n", $answer); + $version = "?"; + + if (startsWith($arr[0], "213")) { + $j = 1; + while (1) { + if (strcmp($arr[$j], ".") == 0) + break; + $f = explode(",", $arr[$j]); + + if ($f[0] == "RELEASE") + $version = $f[1]; + $j++; + } + } + $outstr = ''.PHP_EOL; $outstr .= ''.PHP_EOL; $outstr .= ' '.PHP_EOL; @@ -149,6 +165,9 @@ $outstr .= ' '.PHP_EOL; $outstr .= '
'.PHP_EOL; $outstr .= '