2 # Functions for parsing this module's logs
4 do 'ppp-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) = @_;
11 if ($type eq "dialer") {
12 return &text('log_'.$action,
13 "<tt>".&html_escape(&dialer_name($object))."</tt>");
15 elsif ($action eq "init") {
16 return $text{'log_init'};
18 elsif ($action eq "connect") {
19 return &text($object && $object ne '-' ? 'log_connect' : 'log_fail',
20 "<tt>".&html_escape($type)."</tt>");
22 elsif ($action eq "disconnect") {
23 return &text('log_disconnect', "<tt>".&html_escape($type)."</tt>");