From af0d4e533da8a5a27ebc9fe7c1ec3dca9f852793 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Thu, 25 Oct 2007 17:39:05 +0000 Subject: [PATCH] Show rules file --- firewall/index.cgi | 5 ++++- firewall/lang/en | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/firewall/index.cgi b/firewall/index.cgi index fd5eed0aa..42cd9d324 100755 --- a/firewall/index.cgi +++ b/firewall/index.cgi @@ -4,8 +4,11 @@ require './firewall-lib.pl'; &ReadParse(); +if ($iptables_save_file) { + $desc = &text('index_editing', "$iptables_save_file"); + } &ui_print_header(undef, $text{'index_title'}, undef, "intro", 1, 1, 0, - &help_search_link("iptables", "man", "doc")); + &help_search_link("iptables", "man", "doc"), undef, undef, $desc); # Check for iptables and iptables-restore commands if ($c = &missing_firewall_commands()) { diff --git a/firewall/lang/en b/firewall/lang/en index 9ce4482da..8799ecb2c 100644 --- a/firewall/lang/en +++ b/firewall/lang/en @@ -1,4 +1,5 @@ index_title=Linux Firewall +index_editing=Rules file $1 index_ecommand=The command $1 was not found on your system. Webmin needs this command to configure IPtables. index_ekernel=An error occured when checking your current IPtables configuration : $1 This may indicate that your kernel does not support IPtables. index_header=Firewall configuration from $1