ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/reports/php/historical/browser.php
(Generate patch)

Comparing projects/cms/source/reports/php/historical/browser.php (file contents):
Revision 1.13 by pjm2, Wed Feb 28 11:43:35 2001 UTC vs.
Revision 1.14 by pjm2, Fri Mar 2 09:13:09 2001 UTC

# Line 4 | Line 4
4   // pjm2@ukc.ac.uk
5  
6  
7 + function isReportEmpty($filename) {
8 +    if (filesize($filename) < 33) {
9 +        return TRUE;
10 +    }
11 +    return FALSE;
12 + }
13 +
14   function getdirArray($dir='./',$sort='asort') {
15      global $dir_file_count;
16      if ( is_dir($dir) ) {
# Line 100 | Line 107 | function getdirArray($dir='./',$sort='asort') {
107          include("$day/$machine_name/$report/i-maxmin.txt");
108          
109          $url = escapeshellcmd("$day/$machine_name/$report/i-chart.gif");
110 <        if (file_exists($url)) {  ?>
110 >        if (isReportEmpty("$day/$machine_name/$report/i-data.txt")) {
111 >            echo "Host <b>$machine_name</b> did not send any information about <b>$report</b> on <b>$day</b>.  Please select another report.";
112 >        }
113 >        else if (file_exists($url)) {  ?>
114            
115              <center><b>[<? echo $machine_name; ?>] - <? echo $report; ?></b></center>
116            

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines