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 ($type eq "vgetty") {
12 return &text("log_vgetty_$action",
13 "<tt>".&html_escape($object)."</tt>");
15 elsif ($action eq "delete") {
16 return &text("log_delete$type", scalar(split(/\0/, $p->{'del'})));
18 elsif ($action eq "move") {
19 return &text("log_move", scalar(split(/\0/, $p->{'del'})));
21 elsif ($action eq "upload") {
22 return &text("log_upload", "<tt>".&html_escape($p->{'file'})."</tt>");
25 return $text{"log_$action"};