diff options
author | NOYB <Al_Stu@Frontier.com> | 2016-01-20 06:22:16 -0800 |
---|---|---|
committer | NOYB <Al_Stu@Frontier.com> | 2016-01-20 06:22:16 -0800 |
commit | c05363c8ca124772f7d36efde711af27a3d9f898 (patch) | |
tree | 83a6a513624c9d51b34dd648d147c9d28b26f7e5 /src/usr/local/www/status_logs_vpn.php | |
parent | 62a4f54c37166414e9e62d2d484ec4e5f76a92d2 (diff) | |
download | pfsense-c05363c8ca124772f7d36efde711af27a3d9f898.zip pfsense-c05363c8ca124772f7d36efde711af27a3d9f898.tar.gz |
Special Panels - Show/Hide
Add configuration option to show or hide special panels.
When a panel is hidden a button is displayed on the page title bar to toggle the panel display.
Diffstat (limited to 'src/usr/local/www/status_logs_vpn.php')
-rw-r--r-- | src/usr/local/www/status_logs_vpn.php | 28 |
1 files changed, 23 insertions, 5 deletions
diff --git a/src/usr/local/www/status_logs_vpn.php b/src/usr/local/www/status_logs_vpn.php index 2bd8a09..cce15dd 100644 --- a/src/usr/local/www/status_logs_vpn.php +++ b/src/usr/local/www/status_logs_vpn.php @@ -127,6 +127,12 @@ if (!$input_errors && $savemsg) { 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(); @@ -272,7 +278,9 @@ if (!$rawfilter) { <?php # Manage Log - Section/Form -manage_log_section(); +if (!$system_logs_manage_log_form_hidden) { + manage_log_section(); +} ?> <?php @@ -354,17 +362,26 @@ function filter_form_vpn() { global $filter_active, $rawfilter, $filterfieldsarray, $filtertext, $filterlogentries_qty, $nentries, $Include_Act, $interfacefilter; global $logfile; + global $system_logs_filter_form_hidden; if ($filter_active) { - $filter_state = SEC_OPEN; + $panel_state = 'in'; + $panel_body_state = SEC_OPEN; } else { - $filter_state = SEC_CLOSED; + if ($system_logs_filter_form_hidden) { + $panel_state = 'out'; + $panel_body_state = SEC_OPEN; + } else { + $panel_state = 'in'; + $panel_body_state = SEC_CLOSED; + } } if (!$rawfilter) { // Advanced log filter form $form = new Form(false); + $form->setAttribute('id', 'filter-form')->addClass('collapse ' . $panel_state); - $section = new Form_Section('Advanced Log Filter', 'adv-filter-panel', COLLAPSIBLE|$filter_state); + $section = new Form_Section('Advanced Log Filter', 'filter-panel', COLLAPSIBLE|$panel_body_state); if ($logfile == "vpn") { $group = new Form_Group(''); @@ -460,8 +477,9 @@ function filter_form_vpn() { ); } else { // Simple log filter form $form = new Form(false); + $form->setAttribute('id', 'filter-form')->addClass('collapse ' . $panel_state); - $section = new Form_Section('Log Filter', 'basic-filter-panel', COLLAPSIBLE|$filter_state); + $section = new Form_Section('Log Filter', 'filter-panel', COLLAPSIBLE|$panel_body_state); $group = new Form_Group(''); |