| 60 |  | $hex_colon = "_3A"; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 61 |  | # \ converted to a decimal then hex'd | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 62 |  | $hex_bslash = "_5C"; | 
 
 
 
 
 
 
 
 | 63 | + | # ( converted to a decimal then hex'd | 
 
 
 
 
 
 
 
 | 64 | + | $hex_rbracket = "_28"; | 
 
 
 
 
 
 
 
 | 65 | + | # ) converted to a decimal then hex'd | 
 
 
 
 
 
 
 
 | 66 | + | $hex_lbracket = "_29"; | 
 
 
 
 
 
 
 
 | 67 | + | # + converted to a decimal then hex'd | 
 
 
 
 
 
 
 
 | 68 | + | $hex_plus = "_2B"; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 69 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 70 |  | # The name Disk information should be displayed as | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 71 |  | if(preg_match("/^disk-(\S+)$/", $string, $matches)) { | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 94 |  | $string = preg_replace("/$hex_bslash/", "\\", $string); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 95 |  | $string = preg_replace("/$hex_space/", " ", $string); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 96 |  | $string = preg_replace("/$hex_colon/", ":", $string); | 
 
 
 
 
 
 
 
 
 
 
 | 97 | < | return "Network usage: $string"; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 97 | > | $string = preg_replace("/$hex_lbracket/", "(", $string); | 
 
 
 
 
 | 98 | > | $string = preg_replace("/$hex_rbracket/", ")", $string); | 
 
 
 
 
 | 99 | > | $string = preg_replace("/$hex_plus/", "+", $string); | 
 
 
 
 
 | 100 | > | return "Network IO: $string"; | 
 
 
 
 
 
 
 
 
 
 
 | 101 |  | } | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 102 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 103 |  | # The name Mail Queue information should be displayed as |