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

Comparing projects/cms/source/reports/php/latest/latest.php (file contents):
Revision 1.46 by tdb, Fri Feb 11 14:05:31 2005 UTC vs.
Revision 1.47 by tdb, Fri Mar 11 12:23:33 2005 UTC

# Line 20 | Line 20
20   # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
21   #
22  
23 # Navigation for the i-scream reports.
24 # pjm2@ukc.ac.uk
25 #
23   # CONFIGURABLE CONSTANTS: -
24  
25   include("latest_config.inc.php");
# Line 33 | Line 30 | include("latest_config.inc.php");
30   include("iutils.inc.php");
31  
32   if ($formMethod == "GET") {
33 <    $machine = $_GET['machine'];
33 >    $machine = isset($_GET['machine']) ? $_GET['machine'] : "";
34   }
35  
36  
# Line 178 | Line 175 | function showDiskIO($diskRoot, $input) {
175   # show all network information.
176   function showNet($netRoot, $input) {
177      include("latest_config.inc.php");
178 <                                                                                
178 >
179      $i = 0;
180      while(1) {
181          $name = getPregMatch("$netRoot.p$i.attributes.name", $input);
# Line 195 | Line 192 | function showNet($netRoot, $input) {
192      }
193   }
194  
195 +
196   # show all mail queue information
197   function showMailQ($mailqRoot, $input) {
198      include("latest_config.inc.php");
# Line 215 | Line 213 | function showMailQ($mailqRoot, $input) {
213      }
214   }
215  
216 +
217   # Return a preg_match result.
218   function getPregMatch($value, $input) {
219      preg_match("/$value=([^\,\}]*)[\,\}]/", $input, $matches);
# Line 319 | Line 318 | function showBar($title, $value, $max, $units, $input,
318                 </b></font>
319                     This realtime report is too old to be considered recent
320   EOT;
321 +       }
322 +       else {
323 +           $warning = "";
324         }
325  
326   echo <<<EOT

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines