-
- $tab_group = 'firewall'; include('diag_logs_pills.inc'); ?>
-
+
+
+
+ |
+ = sprintf(gettext('The following summaries have been collected from the last %s lines of the firewall log (maximum is %s).'), $gotlines, $lines)?>
+ |
+
diff --git a/src/www/diag_logs_gateways.php b/src/www/diag_logs_gateways.php
index 611323c7c..ed2ae859b 100644
--- a/src/www/diag_logs_gateways.php
+++ b/src/www/diag_logs_gateways.php
@@ -46,19 +46,11 @@ if ($_POST['clear']) {
clear_clog($system_logfile);
}
-if ($_GET['filtertext']) {
- $filtertext = htmlspecialchars($_GET['filtertext']);
-}
-
-if ($_POST['filtertext']) {
+if (isset($_POST['filtertext'])) {
$filtertext = htmlspecialchars($_POST['filtertext']);
}
-if ($filtertext) {
- $filtertextmeta = "?filtertext={$filtertext}";
-}
-
-$pgtitle = array(gettext("Status"),gettext("System logs"),gettext("Gateways"));
+$pgtitle = array(gettext('System'), gettext('Log Files'), gettext('Gateways'));
$shortcut_section = "gateways";
include("head.inc");
@@ -75,38 +67,30 @@ include("head.inc");
0) print_input_errors($input_errors); ?>
-
- $active_tab = "/diag_logs.php"; include('diag_logs_tabs.inc'); ?>
-
-
-
- include('diag_logs_pills.inc'); ?>
-
-
-
-
-
-
+
|
-
-
+ |
+
+
+
diff --git a/src/www/diag_logs_pills.inc b/src/www/diag_logs_pills.inc
index 1ee99d50a..b51c22515 100644
--- a/src/www/diag_logs_pills.inc
+++ b/src/www/diag_logs_pills.inc
@@ -36,19 +36,9 @@ if ($tab_group == 'vpn') {
$tab_array[] = array(gettext("PPPoE Raw"), (($vpntype == "poes") && ($mode == "raw")), "/diag_logs_vpn.php?vpntype=poes&mode=raw");
$tab_array[] = array(gettext("L2TP Logins"), (($vpntype == "l2tp") && ($mode != "raw")), "/diag_logs_vpn.php?vpntype=l2tp");
$tab_array[] = array(gettext("L2TP Raw"), (($vpntype == "l2tp") && ($mode == "raw")), "/diag_logs_vpn.php?vpntype=l2tp&mode=raw");
-} elseif ($tab_group == 'firewall') {
- $tab_array[] = array(gettext("Normal View"), true, "/diag_logs_filter.php");
- $tab_array[] = array(gettext("Dynamic View"), false, "/diag_logs_filter_dynamic.php");
- $tab_array[] = array(gettext("Summary View"), false, "/diag_logs_filter_summary.php");
-} elseif ($tab_group == 'proxy') {
+} else {
$tab_array[] = array(gettext('Cache'), true, '/diag_logs_proxy.php?type=cache');
$tab_array[] = array(gettext('Access'), false, '/diag_logs_proxy.php?type=access');
-} else {
- $tab_array[] = array(gettext("General"), true, "/diag_logs.php");
- $tab_array[] = array(gettext("Gateways"), false, "/diag_logs_gateways.php");
- $tab_array[] = array(gettext("Routing"), false, "/diag_logs_routing.php");
- $tab_array[] = array(gettext("Resolver"), false, "/diag_logs_resolver.php");
- $tab_array[] = array(gettext("Wireless"), false, "/diag_logs_wireless.php");
}
?>