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 'modify' && $p->{'oldid'} ne $object) {
12 return &text('log_modify', "<tt>$p->{'oldid'}</tt>",
15 elsif ($action eq 'modify') {
16 return &text('log_modify', "<tt>$object</tt>");
18 elsif ($action eq 'create') {
19 return &text('log_create', "<tt>$object</tt>");
21 elsif ($action eq 'delete') {
22 if ($type eq 'inittabs') {
23 return &text('log_deletes', "<tt>$object</tt>");
26 return &text('log_delete', "<tt>$object</tt>");
29 elsif ($action eq 'apply') {
30 return $text{'log_apply'};