2 # Functions for parsing this module's logs
4 do 'pptp-client-lib.pl';
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, $long) = @_;
11 $object = "<tt>". &html_escape($object)."</tt>";
12 if ($type eq 'tunnel') {
13 return &text('log_'.$action, $object);
15 elsif ($action eq 'conn') {
16 if ($p->{'address'}) {
17 return &text($long ? 'log_conn_l' : 'log_conn',
18 $object, $p->{'address'});
21 return &text('log_failed', $object);
24 elsif ($action eq 'disc') {
25 return &text('log_disc', $object);
28 return $text{'log_'.$action};