2 # Functions for parsing this module's logs
5 &foreign_require("mount", "mount-lib.pl");
7 # parse_webmin_log(user, script, action, type, object, ¶ms)
8 # Converts logged information from this module into human-readable form
11 local ($user, $script, $action, $type, $object, $p, $long) = @_;
12 local $ll = $long ? "_l" : "";
13 if ($type eq 'image') {
14 return &text("log_${action}_image${ll}", "<tt>$object</tt>",
15 "<tt>".&html_escape($p->{'image'})."</tt>");
17 elsif ($type eq 'other') {
18 local $other = &foreign_call("mount", "device_name", $p->{'other'})
20 return &text("log_${action}_other${ll}", "<tt>$object</tt>", $other);
22 elsif ($action eq 'apply') {
23 return $text{'log_apply'};
25 elsif ($action eq 'global') {
26 return $text{'log_global'};