From f372bd5b992b3a3b4e18a73bcaa13bd19a228a1a Mon Sep 17 00:00:00 2001 From: NOYB Date: Wed, 6 Jan 2016 09:57:01 -0800 Subject: Fixed up for vpn.log filtering. --- src/usr/local/www/status_logs_vpn.php | 33 +++++++++++---------------------- 1 file changed, 11 insertions(+), 22 deletions(-) (limited to 'src/usr/local/www/status_logs_vpn.php') diff --git a/src/usr/local/www/status_logs_vpn.php b/src/usr/local/www/status_logs_vpn.php index 8c69998..17def8a 100644 --- a/src/usr/local/www/status_logs_vpn.php +++ b/src/usr/local/www/status_logs_vpn.php @@ -136,17 +136,14 @@ filter_form_vpn(); // Now the forms are complete we can draw the log table and its controls if (!$rawfilter) { - if ($logfile != "vpn") { # Needs to be tested with a vpn.log file before enabling. - if ($filterlogentries_submit) { - $filterlog = conv_log_filter($vpn_logfile, $nentries, $nentries + 100, $filterfieldsarray); - } else { - $filterlog = conv_log_filter($vpn_logfile, $nentries, $nentries + 100, $filtertext); - } + if ($filterlogentries_submit) { + $filterlog = conv_log_filter($vpn_logfile, $nentries, $nentries + 100, $filterfieldsarray); + } else { + $filterlog = conv_log_filter($vpn_logfile, $nentries, $nentries + 100, $filtertext); } ?>
-

- -

-
@@ -179,8 +173,8 @@ if (!$rawfilter) { / tags - if ($rows > 0) $filterlog[0] = ''; - } + } + } // e-o-foreach ?> setHelp('' . gettext('Regular expression reference') . ' ' . gettext('Precede with exclamation (!) to exclude match.')); $section->add($group); $form->add($section); - if ($logfile != "vpn") { # Needs to be tested with a vpn.log file before enabling. - print $form; - } + print $form; } ?> -- cgit v1.1
@@ -188,9 +182,9 @@ if (!$rawfilter) { - + - + @@ -201,11 +195,8 @@ if (!$rawfilter) {