| 5 | 
   | 
 # | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 6 | 
   | 
 # CONFIGURABLE CONSTANTS: - | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 7 | 
   | 
  | 
 
 
 
 
 
 
 
 
 
 
 
 | 8 | 
 < | 
 # The report directory, and the number of days to display. | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 9 | 
 < | 
 $reportDirectory = "/home/cut/pjm2/webpages/reports/historical"; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 10 | 
 < | 
 $maxDaysShown = 7; | 
 
 
 
 
 
 
 
 
 
 | 8 | 
 > | 
 include("browser_config.inc.php"); | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 9 | 
   | 
  | 
 
 
 
 
 
 
 
 
 
 | 12 | 
 – | 
 # Page appearance. | 
 
 
 
 
 
 
 
 
 
 | 13 | 
 – | 
 $scaleImage = "24hour.gif"; | 
 
 
 
 
 
 
 
 
 
 | 14 | 
 – | 
 $lineColor = "#9999ff"; | 
 
 
 
 
 
 
 
 
 
 | 15 | 
 – | 
  | 
 
 
 
 
 
 
 
 
 
 | 16 | 
 – | 
 # Files to include | 
 
 
 
 
 
 
 
 
 
 | 17 | 
 – | 
 $titleHTML = "title.inc"; | 
 
 
 
 
 
 
 
 
 
 | 18 | 
 – | 
 $bottomHTML = "bottom.inc"; | 
 
 
 
 
 
 
 
 
 
 | 19 | 
 – | 
 $machineNameHTML = "machine_name.inc"; | 
 
 
 
 
 
 
 
 
 
 | 20 | 
 – | 
 $reportHTML = "report.inc"; | 
 
 
 
 
 
 
 
 
 
 | 21 | 
 – | 
  | 
 
 
 
 
 
 
 
 
 
 | 22 | 
 – | 
 # What are the names of the report files? | 
 
 
 
 
 
 
 
 
 
 | 23 | 
 – | 
 $reportLimitsFile = "i-maxmin.txt"; | 
 
 
 
 
 
 
 
 
 
 | 24 | 
 – | 
 $reportChartFile = "i-chart.gif"; | 
 
 
 
 
 
 
 
 
 
 | 25 | 
 – | 
 $reportChartDataFile = "i-data.txt"; | 
 
 
 
 
 
 
 
 
 
 | 26 | 
 – | 
  | 
 
 
 
 
 
 
 
 
 
 | 27 | 
 – | 
 # Submission details. | 
 
 
 
 
 
 
 
 
 
 | 28 | 
 – | 
 $formMethod = "GET"; | 
 
 
 
 
 
 
 
 
 
 | 29 | 
 – | 
 $thisPage = "browser.php"; | 
 
 
 
 
 
 
 
 
 
 | 30 | 
 – | 
  | 
 
 
 
 
 
 
 
 
 
 | 31 | 
 – | 
 # Leave this alone unless you know what you're doing ;) | 
 
 
 
 
 
 
 
 
 
 | 32 | 
 – | 
 $minFileSize = 33; | 
 
 
 
 
 
 
 
 
 
 | 33 | 
 – | 
  | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 10 | 
   | 
 # | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 11 | 
   | 
 # END CONFIGURATION | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 12 | 
   | 
  | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 23 | 
   | 
 } | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 24 | 
   | 
  | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 25 | 
   | 
  | 
 
 
 
 
 
 
 
 
 
 
 
 | 26 | 
 < | 
 # return an array of subdirectories in the current directory. | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 51 | 
 < | 
 function getdirArray($dir='./',$sort='asort') { | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 52 | 
 < | 
     global $dir_file_count; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 53 | 
 < | 
     if ( is_dir($dir) ) { | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 54 | 
 < | 
         $fd = @opendir($dir); | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 55 | 
 < | 
         while ( ($part = @readdir($fd)) == TRUE ) { | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 56 | 
 < | 
             clearstatcache(); | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 57 | 
 < | 
             if ($part != "." && $part != "..") { | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 58 | 
 < | 
                 if (preg_match("/^[0-9]{4}\-[0-9]{2}\-[0-9]{2}$/", $part)) { | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 59 | 
 < | 
                     $dir_array[] = $part; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 60 | 
 < | 
                 } | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 61 | 
 < | 
             } | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 62 | 
 < | 
         } | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 63 | 
 < | 
         if($fd == TRUE) { | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 64 | 
 < | 
             closedir($fd); | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 65 | 
 < | 
         } | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 66 | 
 < | 
         if (is_array($dir_array)) { | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 67 | 
 < | 
             $sort($dir_array); | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 68 | 
 < | 
             $dir_file_count = count($dir_array); | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 69 | 
 < | 
             Return $dir_array; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 70 | 
 < | 
         } else { | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 71 | 
 < | 
             Return FALSE; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 72 | 
 < | 
         } | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 73 | 
 < | 
     } else { | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 74 | 
 < | 
         Return FALSE; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 75 | 
 < | 
     } | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 76 | 
 < | 
 } | 
 
 
 
 
 
 
 
 
 
 | 26 | 
 > | 
 include("iutils.inc.php"); | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 27 | 
   | 
  | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 28 | 
   | 
 ?> | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 29 | 
   | 
  |