diff -r b216f9d4b917 -r 1bf0b9e056f3 www-thermferm/maintenance.php --- a/www-thermferm/maintenance.php Mon Aug 08 10:54:27 2022 +0200 +++ b/www-thermferm/maintenance.php Mon Aug 08 11:49:57 2022 +0200 @@ -30,6 +30,7 @@ $answer = send_cmd('GLOBAL GET'); $arr = explode("\r\n", $answer); $version = "?"; +$simula = false; if (startsWith($arr[0], "213")) { $j = 1; @@ -44,6 +45,9 @@ } } +if (send_cmd_check("SIMULATOR LIST") == 0) + $simula = true; + $outstr = ''.PHP_EOL; $outstr .= ''.PHP_EOL; $outstr .= ' '.PHP_EOL; @@ -87,9 +91,10 @@ /* * See if the server supports simulators */ -if (send_cmd_check("SIMULATOR LIST") == 0) { +//if (send_cmd_check("SIMULATOR LIST") == 0) { +if ($simula) { $outstr .= '
'.PHP_EOL; - $outstr .= ' '.PHP_EOL; + $outstr .= ' '.PHP_EOL; $outstr .= '
'.PHP_EOL; } $outstr .= ' '.PHP_EOL; @@ -100,6 +105,8 @@ $outstr .= ' $("#global").jqxButton({ width: 200, height: 25, theme: \'ui-redmond\' });'.PHP_EOL; $outstr .= ' $("#devices").jqxButton({ width: 200, height: 25, theme: \'ui-redmond\' });'.PHP_EOL; $outstr .= ' $("#units").jqxButton({ width: 200, height: 25, theme: \'ui-redmond\' });'.PHP_EOL; +if ($simula) + $outstr .= ' $("#simulator").jqxButton({ width: 200, height: 25, theme: \'ui-redmond\' });'.PHP_EOL; $outstr .= ' });'.PHP_EOL; $outstr .= ' '.PHP_EOL; $outstr .= build_footer();