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.38 by pjm2, Tue Mar 13 19:29:11 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");
101 >        include("$reportDirectory/$day/$machine_name/$report/$reportLimitsFile");
102          
103 <        $url = escapeshellcmd("$day/$machine_name/$report/$reportChartFile");
104 <        if (isReportEmpty("$day/$machine_name/$report/$reportChartDataFile", $minFileSize)) {
103 >        $url = "$webRoot/$day/$machine_name/$report/$reportChartFile";
104 >        if (isReportEmpty("$reportDirectory/$day/$machine_name/$report/$reportChartDataFile", $minFileSize)) {
105              echo "Host <b>$machine_name</b> did not send any information about <b>$report</b> on <b>$day</b>.  Please select another report.";
106          }
107 <        else if (file_exists($url)) {  ?>
107 >        else if (file_exists("$reportDirectory/$day/$machine_name/$report/$reportChartFile")) {  ?>
108            
109              <center><b>[<? echo $machine_name; ?>] - <? echo $report; ?></b></center>
110            
# Line 132 | Line 132 | include("iutils.inc.php");
132              
133              <b>Extra data</b>
134              <p>
135 <            <a href="<? echo "$day/$machine_name/$report/$reportChartDataFile" ?>">Raw plot data</a><br>
136 <            <a href="<? echo "$day/$machine_name/$report/$reportChartFile" ?>">GIF chart</a><br>
137 <            <a href="<? echo "$day/$machine_name/$report/$reportLimitsFile" ?>">PHP y-axis limits include</a>
135 >            <a href="<? echo "$webRoot/$day/$machine_name/$report/$reportChartDataFile" ?>">Raw plot data</a><br>
136 >            <a href="<? echo "$webRoot/$day/$machine_name/$report/$reportChartFile" ?>">GIF chart</a><br>
137 >            <a href="<? echo "$webRoot/$day/$machine_name/$report/$reportLimitsFile" ?>">PHP y-axis limits include</a>
138              
139          <? }
140          else {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines