diff -r 44bcfe087f9e -r 64cd9865bd11 www-thermferm/archives.php --- a/www-thermferm/archives.php Thu Apr 02 21:53:28 2015 +0200 +++ b/www-thermferm/archives.php Thu Apr 02 22:08:15 2015 +0200 @@ -22,6 +22,7 @@ *****************************************************************************/ require_once('utilities.php'); +$my_style = 'ui-redmond'; if (isset($_GET['action'])) { switch ($_GET['action']) { @@ -41,6 +42,183 @@ * */ +/* + * View an archived file in graph format + */ +function archive_view() { + + global $my_style; + + $name = urldecode($_GET['name']); + + $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; + $outstr .= ' '.PHP_EOL; + $outstr .= ' Archive View '.$name.''.PHP_EOL; + $outstr .= ' '.PHP_EOL; + $outstr .= ' '.PHP_EOL; + $outstr .= ' '.PHP_EOL; + $outstr .= ' '.PHP_EOL; + $outstr .= ' '.PHP_EOL; + $outstr .= ' '.PHP_EOL; + $outstr .= ' '.PHP_EOL; + $outstr .= ' '.PHP_EOL; + $outstr .= ' '.PHP_EOL; + $outstr .= ' '.PHP_EOL; + $outstr .= ' '.PHP_EOL; + + $outstr .= ' '.PHP_EOL; + $outstr .= '
'.PHP_EOL; + $outstr .= ' '.PHP_EOL; + $outstr .= '
'.PHP_EOL; + + $outstr .= ' '.PHP_EOL; + $outstr .= '
'.PHP_EOL; + $outstr .= '
'.PHP_EOL; + $outstr .= '
'.PHP_EOL; + $outstr .= ' '.PHP_EOL; + $outstr .= ' '.PHP_EOL; + $outstr .= '
'.PHP_EOL; + $outstr .= '
'.PHP_EOL; + + $outstr .= ' '.PHP_EOL; + $outstr .= build_footer(); + echo $outstr; +}