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') {
12 if ($p->{'old'} ne $p->{'directory'}) {
13 return &text('log_rename',
14 "<tt>".&html_escape($p->{'old'})."</tt>",
15 "<tt>".&html_escape($p->{'directory'})."</tt>");
18 return &text('log_modify',
19 "<tt>".&html_escape($object)."</tt>");
22 elsif ($action eq 'create') {
23 return &text('log_create', "<tt>".&html_escape($object)."</tt>");
25 elsif ($action eq 'delete') {
26 return &text('log_delete', "<tt>".&html_escape($object)."</tt>");
28 elsif ($action eq 'apply') {
29 return $text{'log_apply'};