. * All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ ##|+PRIV ##|*IDENT=page-diagnostics-logs-firewall-dynamic ##|*NAME=Status: System Logs: Firewall (Dynamic View) ##|*DESCR=Allow access to the 'Status: System Logs: Firewall (Dynamic View)' page ##|*MATCH=status_logs_filter_dynamic.php* ##|-PRIV /* AJAX related routines */ require_once("guiconfig.inc"); require_once("filter_log.inc"); handle_ajax(); require_once("status_logs_common.inc"); /* Build a list of allowed log files so we can reject others to prevent the page from acting on unauthorized files. */ $allowed_logs = array( "filter" => array("name" => "Firewall", "shortcut" => "filter"), ); // The logs to display are specified in a REQUEST argument. Default to 'system' logs if (!$_REQUEST['logfile']) { $logfile = 'filter'; $view = 'normal'; } else { $logfile = $_REQUEST['logfile']; $view = $_REQUEST['view']; if (!array_key_exists($logfile, $allowed_logs)) { /* Do not let someone attempt to load an unauthorized log. */ $logfile = 'filter'; $view = 'normal'; } } if ($view == 'normal') { $view_title = gettext("Normal View"); } if ($view == 'dynamic') { $view_title = gettext("Dynamic View"); } if ($view == 'summary') { $view_title = gettext("Summary View"); } // Log Filter Submit - Firewall log_filter_form_firewall_submit(); // Manage Log Section - Code manage_log_code(); // Status Logs Common - Code status_logs_common_code(); $pgtitle = array(gettext("Status"), gettext("System Logs"), gettext($allowed_logs[$logfile]["name"]), $view_title); $pglinks = array("", "status_logs.php", "status_logs_filter.php", "@self"); include("head.inc"); if ($changes_applied) { print_apply_result_box($retval, $extra_save_msg); $manage_log_active = false; } // Tab Array tab_array_logs_common(); // Manage Log - Section/Form if ($system_logs_manage_log_form_hidden) { manage_log_section(); } // Force the formatted mode filter and form. Raw mode is not applicable in the dynamic view. $rawfilter = false; // Log Filter Submit - Firewall filter_form_firewall(); // Now the forms are complete we can draw the log table and its controls system_log_filter(); ?>

'; } ?>
', outputrule);">
'; print_info_box(gettext('No logs to display.')); print '
0) { ?>
' . gettext("TCP Flags") . ': F - FIN, S - SYN, A or . - ACK, R - RST, P - PSH, U - URG, E - ECE, C - CWR.', 'info', false); ?>