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.2 by pjm2, Thu Mar 8 21:40:45 2001 UTC vs.
Revision 1.5 by pjm2, Thu Mar 8 21:57:18 2001 UTC

# Line 39 | Line 39 | function getdirArray($dir='./',$sort='asort') {
39  
40  
41   function showStat($title, $value, $input) {
42 <    preg_match("/$value=([^\,]*)\,/", $input, $matches);
42 >    preg_match("/$value=([^\,]*)[\,|\}]/", $input, $matches);
43      $value = $matches[1];
44      if (empty($value)) {
45          $value = "<i>unknown</i>";
# Line 102 | Line 102 | function showBar($title, $value, $max, $input) {
102   <form method="<? echo $formMethod ?>" action="<? echo $thisPage ?>">
103   <?
104  
105 <    $file_array = getdirArray($latestDirectory,'rsort');
105 >    $file_array = getdirArray($latestDirectory,'asort');
106      print "<select size=\"1\" name=\"machine\">";
107      if ($machine) { ?>
108          <option selected value="<? echo $machine ?>"><? echo $machine ?></option>
109          <option value="">----------------</option>
110      <? }
111      foreach($file_array as $file_name) {
112 <        if (is_dir($file_name)) {
113 <            $i++;
112 >        #if (is_dir($file_name)) {
113              print "<option value=\"$file_name\">$file_name</option>";
114 <        }
114 >        #}
115      }
116      print "</select>";
117  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines