| 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/pptp-client/ |
Upload File : |
# log_parser.pl
# Functions for parsing this module's logs
do 'pptp-client-lib.pl';
# parse_webmin_log(user, script, action, type, object, ¶ms)
# Converts logged information from this module into human-readable form
sub parse_webmin_log
{
local ($user, $script, $action, $type, $object, $p, $long) = @_;
$object = "<tt>". &html_escape($object)."</tt>";
if ($type eq 'tunnel') {
return &text('log_'.$action, $object);
}
elsif ($action eq 'conn') {
if ($p->{'address'}) {
return &text($long ? 'log_conn_l' : 'log_conn',
$object, $p->{'address'});
}
else {
return &text('log_failed', $object);
}
}
elsif ($action eq 'disc') {
return &text('log_disc', $object);
}
else {
return $text{'log_'.$action};
}
}