JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr# log_parser.pl # Functions for parsing this module's logs do 'cron-lib.pl'; # parse_webmin_log(user, script, action, type, object, ¶ms, [long]) # Converts logged information from this module into human-readable form sub parse_webmin_log { local ($user, $script, $action, $type, $object, $p, $long) = @_; if ($type eq "env") { return &text('log_env_'.$action, "$object"); } elsif ($type eq "crons") { return &text('log_crons_'.$action, $object); } elsif ($action eq "move") { return &text('log_move', "$object"); } elsif ($action eq 'modify') { return &text($long ? 'log_modify_l' : 'log_modify', "$object", "".&html_escape($p->{'cmd'}).""); } elsif ($action eq 'create') { return &text($long ? 'log_create_l' : 'log_create', "$object", "".&html_escape($p->{'cmd'}).""); } elsif ($action eq 'delete') { return &text($long ? 'log_delete_l' : 'log_delete', "$object", "".&html_escape($p->{'command'}).""); } elsif ($action eq 'exec' || $action eq 'kill') { return &text($long ? 'log_'.$action.'_l' : 'log_'.$action, "$object", "".&html_escape($p->{'command'}).""); } else { return $text{'log_'.$action}; } }