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.36 by pjm2, Tue Mar 13 19:16:36 2001 UTC vs.
Revision 1.39 by pjm2, Fri Mar 16 18:58:33 2001 UTC

# Line 98 | Line 98 | include("iutils.inc.php");
98   <?
99      if ($submit == "Show" && $machine_name && $report) {
100          
101 <        include("$day/$machine_name/$report/$reportLimitsFile");
102 <        
103 <        $url = escapeshellcmd("$day/$machine_name/$report/$reportChartFile");
104 <        if (isReportEmpty("$day/$machine_name/$report/$reportChartDataFile", $minFileSize)) {
101 >        $url = "$webRoot/$day/$machine_name/$report/$reportChartFile";
102 >        if (isReportEmpty("$reportDirectory/$day/$machine_name/$report/$reportChartDataFile", $minFileSize)) {
103              echo "Host <b>$machine_name</b> did not send any information about <b>$report</b> on <b>$day</b>.  Please select another report.";
104          }
105 <        else if (file_exists($url)) {  ?>
106 <          
105 >        else if (file_exists("$reportDirectory/$day/$machine_name/$report/$reportChartFile")) {  
106 >
107 >            include("$reportDirectory/$day/$machine_name/$report/$reportLimitsFile");
108 >            
109 >            ?>
110 >            
111              <center><b>[<? echo $machine_name; ?>] - <? echo $report; ?></b></center>
112            
113              <table border="0" cellpadding="0" cellspacing="0">
# Line 128 | Line 130 | include("iutils.inc.php");
130               </tr>
131              </table>
132              
133 <            <hr weigth="1" color="<? echo $lineColor ?>">
133 >            <hr weight="1" color="<? echo $lineColor ?>">
134              
135 +            <b>Latest data</b>
136 +            <p>
137 +            View the latest set of data received from
138 +            <a href="<? echo "latest.php?machine=$machine_name"; ?>"><?=$machine_name?></a>
139 +
140 +            <hr weight="1" color="<? echo $lineColor ?>">
141 +            
142              <b>Extra data</b>
143              <p>
144 <            <a href="<? echo "$day/$machine_name/$report/$reportChartDataFile" ?>">Raw plot data</a><br>
145 <            <a href="<? echo "$day/$machine_name/$report/$reportChartFile" ?>">GIF chart</a><br>
146 <            <a href="<? echo "$day/$machine_name/$report/$reportLimitsFile" ?>">PHP y-axis limits include</a>
144 >            <a href="<? echo "$webRoot/$day/$machine_name/$report/$reportChartDataFile" ?>">Raw plot data</a><br>
145 >            <a href="<? echo "$webRoot/$day/$machine_name/$report/$reportChartFile" ?>">GIF chart</a><br>
146 >            <a href="<? echo "$webRoot/$day/$machine_name/$report/$reportLimitsFile" ?>">PHP y-axis limits include</a>
147              
148          <? }
149          else {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines