| 2 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 3 |  | # The rrd directory containing the images | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 4 |  | $imgdir = "/home/pkg/iscream/public_html/graphs"; | 
 
 
 
 
 
 
 
 
 
 
 | 5 | < | $imgwebdir = "/~iscream/graphs"; | 
 
 
 
 
 
 
 
 
 | 5 | > | $imgwebdir = "/graphs"; | 
 
 
 
 
 
 
 
 
 
 
 | 6 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 7 |  | # Page appearance | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 8 |  | $lineColor = "#9999ff"; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 38 |  | if($string == "users") { | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 39 |  | return "User counts"; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 40 |  | } | 
 
 
 
 
 
 
 
 
 
 
 | 41 | < |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 41 | > |  | 
 
 
 
 
 | 42 | > | # The name Paging information should be displayed as | 
 
 
 
 
 | 43 | > | if($string == "paging") { | 
 
 
 
 
 | 44 | > | return "Paging"; | 
 
 
 
 
 | 45 | > | } | 
 
 
 
 
 | 46 | > |  | 
 
 
 
 
 
 
 
 
 
 
 | 47 |  | # Values use for escaping (need to match the perl scripts!) | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 48 |  | # / converted to a decimal then hex'd | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 49 |  | $hex_slash = "_2f"; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 53 |  | # The name Disk information should be displayed as | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 54 |  | if(preg_match("/^disk-(\S+)$/", $string, $matches)) { | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 55 |  | $string = preg_replace("/$hex_slash/", "/", $matches[1]); | 
 
 
 
 
 
 
 
 
 
 
 | 56 | < | $string = preg_replace("/$hex_underscore/", "#", $string); | 
 
 
 
 
 
 
 
 
 | 56 | > | $string = preg_replace("/$hex_underscore/", "_", $string); | 
 
 
 
 
 
 
 
 
 
 
 | 57 |  | return "Disk usage: $string"; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 58 |  | } | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 59 |  |  |