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 ($action eq 'create' || $action eq 'modify' ||
12 $action eq 'delete' || $action eq 'kill') {
13 return &text("log_$action", "<tt>".&html_escape($p->{'dir'})."</tt>");
15 elsif ($action eq 'backup' || $action eq 'bgbackup') {
16 return &text('log_'.$action, "<tt>".&html_escape($p->{'dir'})."</tt>",
17 "<tt>".&dump_dest($p)."</tt>");
19 elsif ($action eq 'restore') {
20 return &text('log_restore', "<tt>".&html_escape($object)."</tt>");