array("name" => gettext("VPN Logins"), "shortcut" => "poes"), "poes" => array("name" => gettext("PPPoE Service"), "shortcut" => "pppoes"), "l2tps" => array("name" => gettext("L2TP Service"), "shortcut" => "l2tps"), ); // The logs to display are specified in a GET argument. Default to 'system' logs if (!$_GET['logfile']) { $logfile = 'vpn'; $vpntype = "poes"; } else { $logfile = $_GET['logfile']; $vpntype = $_GET['vpntype']; if (!array_key_exists($logfile, $allowed_logs)) { /* Do not let someone attempt to load an unauthorized log. */ $logfile = 'vpn'; $vpntype = "poes"; } } if ($vpntype == 'poes') { $allowed_logs['vpn']['name'] = gettext("PPPoE Logins"); } if ($vpntype == 'l2tp') { $allowed_logs['vpn']['name'] = gettext("L2TP Logins"); } // Log Filter Submit - VPN log_filter_form_vpn_submit(); // Manage Log Section - Code manage_log_code(); // Status Logs Common - Code status_logs_common_code(); if ($filtertext) { $filtertextmeta="?filtertext=$filtertext"; } $pgtitle = array(gettext("Status"), gettext("System logs"), gettext("VPN"), gettext($allowed_logs[$logfile]["name"])); include("head.inc"); if (!$input_errors && $savemsg) { print_info_box($savemsg, 'success'); $manage_log_active = false; } // Tab Array tab_array_logs_common(); // Manage Log - Section/Form if ($system_logs_manage_log_form_hidden) { manage_log_section(); } // Filter Section/Form - VPN filter_form_vpn(); // Now the forms are complete we can draw the log table and its controls if (!$rawfilter) { system_log_filter(); // Remove those not of the selected vpn type (poes / l2tp). if ($logfile == "vpn") { foreach ($filterlog as $key => $filterent) { if (!preg_match('/' . $vpntype . '/', $filterent['type'])) { unset($filterlog[$key]); } } } ?>
=gettext("Time")?> | =gettext("Action")?> | =gettext("User")?> | =gettext("IP Address")?> |
---|---|---|---|
=htmlspecialchars($filterent['time'])?> | =htmlspecialchars($filterent['action'])?> | =htmlspecialchars($filterent['user'])?> | =htmlspecialchars($filterent['ip_address'])?> |
=gettext("Time")?> | =gettext("Type")?> | =gettext("PID")?> | =gettext("Log Message")?> |
=htmlspecialchars($filterent['time'])?> | =htmlspecialchars($filterent['type'])?> | =htmlspecialchars($filterent['pid'])?> | =htmlspecialchars($filterent['message'])?> |