summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_nat.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-04-04 21:18:19 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-04-04 21:18:19 +0000
commit514dbaf8f0538e48ec1c60fde8d72d7ae18cd4ce (patch)
tree692543eb1db0d10c16c760e50a895dd35a1a06e7 /usr/local/www/firewall_nat.php
parent801d50beb81abd8aae7392f727765369cd4179d6 (diff)
downloadpfsense-514dbaf8f0538e48ec1c60fde8d72d7ae18cd4ce.zip
pfsense-514dbaf8f0538e48ec1c60fde8d72d7ae18cd4ce.tar.gz
When adding a redirect for FTP alert the user that it really creates 2 firewall rules
Ticket #899
Diffstat (limited to 'usr/local/www/firewall_nat.php')
-rwxr-xr-xusr/local/www/firewall_nat.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/usr/local/www/firewall_nat.php b/usr/local/www/firewall_nat.php
index e1b4ba3..c727982 100755
--- a/usr/local/www/firewall_nat.php
+++ b/usr/local/www/firewall_nat.php
@@ -38,6 +38,10 @@ if (!is_array($config['nat']['rule']))
$a_nat = &$config['nat']['rule'];
+/* if a custom message has been passed along, lets process it */
+if ($_GET['savemsg'])
+ $savemsg = $_GET['savemsg'];
+
if ($_POST) {
$pconfig = $_POST;
@@ -138,9 +142,13 @@ include("head.inc");
<form action="firewall_nat.php" method="post" name="iform">
<script type="text/javascript" language="javascript" src="row_toggle.js">
</script>
-<?php if ($savemsg) print_info_box($savemsg); ?>
<?php if (file_exists($d_natconfdirty_path)): ?><p>
-<?php print_info_box_np("The NAT configuration has been changed.<br>You must apply the changes in order for them to take effect.");?>
+<?php
+ if($savemsg)
+ print_info_box_np("{$savemsg}<br>The NAT configuration has been changed.<br>You must apply the changes in order for them to take effect.");
+ else
+ print_info_box_np("The NAT configuration has been changed.<br>You must apply the changes in order for them to take effect.");
+?>
<?php endif; ?>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr><td>
OpenPOWER on IntegriCloud