summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/firewall_nat_1to1_edit.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2015-09-01 01:08:25 +0545
committerPhil Davis <phil.davis@inf.org>2015-09-01 01:08:25 +0545
commite6f34d22cf841af5ee8cfeba9f71a9729dc113d9 (patch)
tree5f8b896bd756d3e322ba90cfd1df36781f9322fd /src/usr/local/www/firewall_nat_1to1_edit.php
parent683ba309d50913828decb5fe3f6ade059c1dfab2 (diff)
downloadpfsense-e6f34d22cf841af5ee8cfeba9f71a9729dc113d9.zip
pfsense-e6f34d22cf841af5ee8cfeba9f71a9729dc113d9.tar.gz
bootstrap usr\local\www\f minor changes
Diffstat (limited to 'src/usr/local/www/firewall_nat_1to1_edit.php')
-rw-r--r--src/usr/local/www/firewall_nat_1to1_edit.php38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/usr/local/www/firewall_nat_1to1_edit.php b/src/usr/local/www/firewall_nat_1to1_edit.php
index ba92003..4970ba9 100644
--- a/src/usr/local/www/firewall_nat_1to1_edit.php
+++ b/src/usr/local/www/firewall_nat_1to1_edit.php
@@ -142,8 +142,8 @@ if ($_POST) {
$temp = str_replace(">", "", $value);
$newpost = htmlentities($temp);
- if($newpost != $temp)
- $input_errors[] = sprintf(gettext("Invalid characters detected (%s). Please remove invalid characters and save again."),$temp);
+ if ($newpost != $temp)
+ $input_errors[] = sprintf(gettext("Invalid characters detected (%s). Please remove invalid characters and save again."), $temp);
}
/* input validation */
@@ -282,17 +282,17 @@ function build_srctype_list() {
$sel = is_specialnet($pconfig['src']);
- if(have_ruleint_access("pptp"))
+ if (have_ruleint_access("pptp"))
$list['pptp'] = 'PPTP clients';
- if(have_ruleint_access("pppoe"))
+ if (have_ruleint_access("pppoe"))
$list['pppoe'] = 'PPPoE clients';
- if(have_ruleint_access("l2tp"))
+ if (have_ruleint_access("l2tp"))
$list['l2tp'] = 'L2TP clients';
foreach ($ifdisp as $ifent => $ifdesc) {
- if(have_ruleint_access($ifent)) {
+ if (have_ruleint_access($ifent)) {
$list[$ifent] = $ifdesc . ' net';
$list[$ifent . 'ip'] = $ifdesc . ' address';
}
@@ -306,8 +306,8 @@ function srctype_selected() {
$sel = is_specialnet($pconfig['src']);
- if(!$sel) {
- if(($pconfig['srcmask'] == 32) || (!isset($pconfig['srcmask'])))
+ if (!$sel) {
+ if (($pconfig['srcmask'] == 32) || (!isset($pconfig['srcmask'])))
return('single');
return('network');
@@ -322,17 +322,17 @@ function build_dsttype_list() {
$sel = is_specialnet($pconfig['dst']);
$list = array('any' => 'Any', 'single' => 'Single host or alias', 'network' => 'Network', '(self)' => 'This Firewall (self)');
- if(have_ruleint_access("pptp"))
+ if (have_ruleint_access("pptp"))
$list['pptp'] = 'PPTP clients';
- if(have_ruleint_access("pppoe"))
+ if (have_ruleint_access("pppoe"))
$list['pppoe'] = 'PPPoE clients';
- if(have_ruleint_access("l2tp"))
+ if (have_ruleint_access("l2tp"))
$list['l2tp'] = 'L2TP clients';
foreach ($ifdisp as $if => $ifdesc) {
- if(have_ruleint_access($if)) {
+ if (have_ruleint_access($if)) {
$list[$if] = $ifdesc;
$list[$if . 'ip'] = $ifdesc . ' address';
}
@@ -367,11 +367,11 @@ function dsttype_selected() {
$sel = is_specialnet($pconfig['dst']);
- if(empty($pconfig['dst'] || $pconfig['dst'] == "any"))
+ if (empty($pconfig['dst'] || $pconfig['dst'] == "any"))
return('any');
- if(!$sel) {
- if($pconfig['dstmask'] == 32)
+ if (!$sel) {
+ if ($pconfig['dstmask'] == 32)
return('single');
return('network');
@@ -402,15 +402,15 @@ $section->addInput(new Form_Checkbox(
$iflist = get_configured_interface_with_descr(false, true);
foreach ($iflist as $if => $ifdesc)
- if(have_ruleint_access($if))
+ if (have_ruleint_access($if))
$interfaces[$if] = $ifdesc;
if ($config['l2tp']['mode'] == "server")
- if(have_ruleint_access("l2tp"))
+ if (have_ruleint_access("l2tp"))
$interfaces['l2tp'] = "L2TP VPN";
if ($config['pptpd']['mode'] == "server")
- if(have_ruleint_access("pptp"))
+ if (have_ruleint_access("pptp"))
$interfaces['pptp'] = "PPTP VPN";
if (is_pppoe_server_enabled() && have_ruleint_access("pppoe"))
@@ -418,7 +418,7 @@ if (is_pppoe_server_enabled() && have_ruleint_access("pppoe"))
/* add ipsec interfaces */
if (isset($config['ipsec']['enable']) || isset($config['ipsec']['client']['enable']))
- if(have_ruleint_access("enc0"))
+ if (have_ruleint_access("enc0"))
$interfaces["enc0"] = "IPsec";
/* add openvpn/tun interfaces */
OpenPOWER on IntegriCloud