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 $object = &html_escape($object);
12 if ($action eq 'modify') {
13 return &text('log_modify', "<tt>$object</tt>");
15 elsif ($action eq 'create') {
16 return &text('log_create', "<tt>$object</tt>");
18 elsif ($action eq 'delete') {
19 return &text('log_delete', "<tt>$object</tt>");
21 elsif ($action eq 'apply') {
22 return $text{'log_apply'};
24 elsif ($action eq 'start') {
25 return $text{'log_start'};