2 # Functions for parsing this module's logs
6 # parse_webmin_log(user, script, action, type, object, ¶ms)
7 # Converts logged information from this module into human-readable form
10 local ($user, $script, $action, $type, $object, $p) = @_;
11 if ($type eq 'source' || $type eq 'destination' ||
12 $type eq 'filter' || $type eq 'log') {
13 return &text('log_'.$action.'_'.$type,
14 "<tt>".&html_escape($object)."</tt>");
16 elsif ($type eq 'sources' || $type eq 'destinations' ||
17 $type eq 'filters' || $type eq 'logs') {
18 return &text('log_'.$action.'_'.$type, $object);
21 return $text{'log_'.$action};