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 'mgetty') {
12 return &text('log_mgetty_'.$action,
13 "<tt>".&html_escape($object)."</tt>");
15 elsif ($type eq 'dialin') {
16 return &text('log_dialin_'.$action,
17 "<tt>".&html_escape($object)."</tt>");
19 elsif ($action eq 'options') {
20 return $object ne '-' ?
21 &text('log_options2', "<tt>".&html_escape($object)."</tt>") :
24 elsif ($action eq 'sync') {
25 return $text{'log_sync'};
27 elsif ($action eq 'mgetty_apply') {
28 return $text{'log_apply'};
30 elsif ($action eq 'deletes') {
31 return &text('log_deletes', $object);
34 return &text('log_'.$action, "<tt>".&html_escape($object)."</tt>");