Handle hostnames with upper-case letters
[webmin.git] / at / log_parser.pl
1 # log_parser.pl
2 # Functions for parsing this module's logs
3
4 do 'at-lib.pl';
5
6 # parse_webmin_log(user, script, action, type, object, &params, [long])
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 "job") {
12         return &text('log_'.$action.'_job',
13                      "<tt>".&html_escape($object)."</tt>");
14         }
15 elsif ($type eq "jobs") {
16         return &text('log_'.$action.'_jobs', $object);
17         }
18 elsif ($action eq 'allow') {
19         return $text{'log_allow'};
20         }
21 else {
22         return undef;
23         }
24 }
25