--- projects/cms/source/reports/php/historical/browser.php 2001/02/03 22:34:02 1.1 +++ projects/cms/source/reports/php/historical/browser.php 2001/02/03 22:35:15 1.2 @@ -31,18 +31,13 @@ function getdirArray($dir='./',$sort='asort') { include("day.inc"); - if ($submit == "bung") { - $url = escapeshellcmd("$day/$machine_name/$report/chart.gif"); - Header("Location: $url"); - exit; - } ?>
--
+ + + if ($submit == "bung") { + $url = escapeshellcmd("$day/$machine_name/$report/chart.gif"); + if (file_exists($url)) { + echo ""; + } + else { + echo "The report could not be found.
"; + } + } + +?>