Handle hostnames with upper-case letters
[webmin.git] / ipfw / log_parser.pl
1 # log_parser.pl
2 # Functions for parsing this module's logs
3
4 do 'ipfw-lib.pl';
5
6 # parse_webmin_log(user, script, action, type, object, &params)
7 # Converts logged information from this module into human-readable form
8 sub parse_webmin_log
9 {
10 local ($user, $script, $action, $type, $object, $p, $long) = @_;
11 if ($type eq "rule") {
12         return &text("log_${action}_rule".($long ? "_l" : ""),
13                      $text{'action_'.$object},
14                      &describe_rule($p, 1));
15         }
16 elsif ($action eq "delsel") {
17         return &text('log_delsel', $p->{'count'});
18         }
19 else {
20         return $text{"log_$action"};
21         }
22 }
23