array("name" => "General", "shortcut" => ""), "dhcpd" => array("name" => "DHCP", "shortcut" => "dhcp"), "portalauth" => array("name" => "Captive Portal Authentication", "shortcut" => "captiveportal"), "ipsec" => array("name" => "IPsec", "shortcut" => "ipsec"), "ppp" => array("name" => "PPP", "shortcut" => ""), "relayd" => array("name" => "Load Balancer", "shortcut" => "relayd"), "openvpn" => array("name" => "OpenVPN", "shortcut" => "openvpn"), "ntpd" => array("name" => "NTPd", "shortcut" => "ntp"), "gateways" => array("name" => "Gateways", "shortcut" => "gateways"), "routing" => array("name" => "Routing", "shortcut" => "routing"), "resolver" => array("name" => "DNS Resolver", "shortcut" => "resolver"), "wireless" => array("name" => "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(); // Filter Section/Form - System filter_form_system(); // Now the forms are complete we can draw the log table and its controls if (!$rawfilter) { if ($filterlogentries_submit) { $filterlog = conv_log_filter($logfile_path, $nentries, $nentries + 100, $filterfieldsarray); } else { $filterlog = conv_log_filter($logfile_path, $nentries, $nentries + 100, $filtertext); } ?>