2 # Functions for parsing this module's logs
6 # parse_webmin_log(user, script, action, type, object, ¶ms, [long])
7 # Converts logged information from this module into human-readable form
10 local ($user, $script, $action, $type, $object, $p, $long) = @_;
11 $p->{'host'} = $p->{'host'} ? &html_escape($p->{'host'}) : '*';
12 $object = &html_escape($object);
13 if ($action eq 'modify') {
14 return &text($long ? 'log_modify_l' : 'log_modify',
15 "<tt>$object</tt>", "<tt>$p->{'host'}</tt>");
17 elsif ($action eq 'create') {
18 return &text($long ? 'log_create_l' : 'log_create',
19 "<tt>$object</tt>", "<tt>$p->{'host'}</tt>");
21 elsif ($action eq 'delete') {
22 return &text($long ? 'log_delete_l' : 'log_delete',
23 "<tt>$object</tt>", "<tt>$p->{'host'}</tt>");
25 elsif ($action eq 'apply') {
26 return $text{'log_apply'};