array("name" => gettext("General"),
"shortcut" => ""),
"dhcpd" => array("name" => gettext("DHCP"),
"shortcut" => "dhcp"),
"portalauth" => array("name" => gettext("Captive Portal Authentication"),
"shortcut" => "captiveportal"),
"ipsec" => array("name" => gettext("IPsec"),
"shortcut" => "ipsec"),
"ppp" => array("name" => gettext("PPP"),
"shortcut" => ""),
"relayd" => array("name" => gettext("Load Balancer"),
"shortcut" => "relayd"),
"openvpn" => array("name" => gettext("OpenVPN"),
"shortcut" => "openvpn"),
"ntpd" => array("name" => gettext("NTPd"),
"shortcut" => "ntp"),
"gateways" => array("name" => gettext("Gateways"),
"shortcut" => "gateways"),
"routing" => array("name" => gettext("Routing"),
"shortcut" => "routing"),
"resolver" => array("name" => gettext("DNS Resolver"),
"shortcut" => "resolver"),
"wireless" => array("name" => gettext("Wireless"),
"shortcut" => "wireless"),
);
// The logs to display are specified in a GET argument. Default to 'system' logs
if (!$_GET['logfile']) {
$logfile = 'system';
} else {
$logfile = $_GET['logfile'];
if (!array_key_exists($logfile, $allowed_logs)) {
/* Do not let someone attempt to load an unauthorized log. */
$logfile = 'system';
}
}
// Log Filter Submit - System
log_filter_form_system_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($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 - System
filter_form_system();
// Now the forms are complete we can draw the log table and its controls
if (!$rawfilter) {
system_log_filter();
?>
=gettext("Time")?> |
=gettext("Process")?> |
=gettext("PID")?> |
=gettext("Message")?> |
=htmlspecialchars($filterent['time'])?>
|
=htmlspecialchars($filterent['process'])?>
|
=htmlspecialchars($filterent['pid'])?>
|
=htmlspecialchars($filterent['message'])?>
|
=gettext("Time")?> |
=gettext("Message")?> |