| Server IP : 37.9.174.138 / Your IP : 216.73.216.117 Web Server : Apache System : Linux vps6.backend.sk 6.12.100+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.100-1 (2026-07-30) x86_64 User : ftpuser ( 1001) PHP Version : 8.4.24 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/share/webmin/nginx/ |
Upload File : |
# log_parser.pl
# Functions for parsing this module's logs
use strict;
use warnings;
do 'nginx-lib.pl';
our (%text);
# parse_webmin_log(user, script, action, type, object, ¶ms)
# Converts logged information from this module into human-readable form
sub parse_webmin_log
{
my ($user, $script, $action, $type, $object, $p) = @_;
if ($type eq 'mime') {
return &text('log_'.$action.'_mime',
"<tt>".&html_escape($object)."</tt>");
}
elsif ($type eq 'mimes') {
return &text('log_'.$action.'_mimes', $object);
}
elsif ($action eq 'manual') {
return &text('log_manual',
"<tt>".&html_escape($object)."</tt>");
}
elsif ($type eq 'server') {
return &text('log_'.$action.'_server',
"<tt>".&html_escape($object)."</tt>");
}
elsif ($type eq 'servers') {
return &text('log_'.$action.'_servers', $object);
}
elsif ($type eq 'serverfile') {
return &text('log_'.$action.'_serverfile', $object);
}
elsif ($type eq 'location') {
return &text('log_'.$action.'_location',
"<tt>".&html_escape($object)."</tt>",
"<tt>".&html_escape($p->{'server'})."</tt>");
}
elsif ($type eq 'user') {
return &text('log_'.$action.'_user',
"<tt>".&html_escape($object)."</tt>",
"<tt>".&html_escape($p->{'file'})."</tt>");
}
else {
return $text{'log_'.$action};
}
return undef;
}