| 1 | <?php | 
 
 
 
 
 | 2 |  | 
 
 
 
 
 | 3 | # The report directory, and the data file name. | 
 
 
 
 
 | 4 | $latestDirectory = "/usr/local/proj/co600_10/webroot/latest"; | 
 
 
 
 
 | 5 | $latestData = "latest_data"; | 
 
 
 
 
 | 6 |  | 
 
 
 
 
 | 7 | # Warning tolerance.  I.e. Give a warning if a realtime reports is older | 
 
 
 
 
 | 8 | # than this time (in seconds). | 
 
 
 
 
 | 9 | $warning_age = 600; | 
 
 
 
 
 | 10 |  | 
 
 
 
 
 | 11 | # Page appearance. | 
 
 
 
 
 | 12 | $lineColor = "#9999ff"; | 
 
 
 
 
 | 13 |  | 
 
 
 
 
 | 14 | # Files to include | 
 
 
 
 
 | 15 | $titleHTML = "title.inc.php"; | 
 
 
 
 
 | 16 | $bottomHTML = "bottom.inc"; | 
 
 
 
 
 | 17 |  | 
 
 
 
 
 | 18 | # Submission details. | 
 
 
 
 
 | 19 | $formMethod = "GET"; | 
 
 
 
 
 | 20 | $thisPage = "latest.php"; | 
 
 
 
 
 | 21 |  | 
 
 
 
 
 | 22 | # Images | 
 
 
 
 
 | 23 | $barImage = "bar.gif"; | 
 
 
 
 
 | 24 | $scaleImage = "scale.gif"; | 
 
 
 
 
 | 25 | $max_width = 300; | 
 
 
 
 
 | 26 |  | 
 
 
 
 
 | 27 | # Values use for escaping (need to match the perl scripts!) | 
 
 
 
 
 | 28 | # (used mainly in graph.php and rrdgraphing perl scripts) | 
 
 
 
 
 | 29 | # / converted to a decimal then hex'd | 
 
 
 
 
 | 30 | $hex_slash = "_2f"; | 
 
 
 
 
 | 31 | # _ converted to a decimal then hex'd | 
 
 
 
 
 | 32 | $hex_underscore = "_5f"; | 
 
 
 
 
 | 33 | # (space) converted to a decimal then hex'd | 
 
 
 
 
 | 34 | $hex_space = "_20"; | 
 
 
 
 
 | 35 | # : converted to a decimal then hex'd | 
 
 
 
 
 | 36 | $hex_colon = "_3A"; | 
 
 
 
 
 | 37 | # \ converted to a decimal then hex'd | 
 
 
 
 
 | 38 | $hex_bslash = "_5C"; | 
 
 
 
 
 | 39 | # ( converted to a decimal then hex'd | 
 
 
 
 
 | 40 | $hex_rbracket = "_28"; | 
 
 
 
 
 | 41 | # ) converted to a decimal then hex'd | 
 
 
 
 
 | 42 | $hex_lbracket = "_29"; | 
 
 
 
 
 | 43 | # + converted to a decimal then hex'd | 
 
 
 
 
 | 44 | $hex_plus = "_2B"; | 
 
 
 
 
 | 45 | # # converted to a decimal then hex'd | 
 
 
 
 
 | 46 | $hex_hash = "_23"; | 
 
 
 
 
 | 47 |  | 
 
 
 
 
 | 48 | ?> |