summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2008-06-27 15:49:36 +0000
committerErmal Luçi <eri@pfsense.org>2008-06-27 15:49:36 +0000
commit5335811d9df7bfbf403ceb966ca6972ce1012975 (patch)
tree7e1df958ef41dc369cac1640f391cac7232d3c0a /usr/local
parent5ac93075dd128613bd8bb178d2b00ebdf4257954 (diff)
downloadpfsense-5335811d9df7bfbf403ceb966ca6972ce1012975.zip
pfsense-5335811d9df7bfbf403ceb966ca6972ce1012975.tar.gz
Do not use the same variable name as the interface we are working with.
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/firewall_rules_edit.php22
1 files changed, 11 insertions, 11 deletions
diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php
index 59ee4c5..53ec501 100755
--- a/usr/local/www/firewall_rules_edit.php
+++ b/usr/local/www/firewall_rules_edit.php
@@ -495,9 +495,9 @@ include("head.inc");
endif;
$ifdescs = get_configured_interface_with_descr();
- foreach ($ifdescs as $if => $ifdesc)
- if(have_ruleint_access($if))
- $interfaces[$if] = $ifdesc;
+ foreach ($ifdescs as $ifent => $ifdesc)
+ if(have_ruleint_access($ifent))
+ $interfaces[$ifent] = $ifdesc;
if ($config['pptpd']['mode'] == "server")
if(have_ruleint_access("pptp"))
@@ -628,10 +628,10 @@ include("head.inc");
<?php endif; ?>
<?php
$ifdisp = get_configured_interface_with_descr();
- foreach ($ifdisp as $if => $ifdesc): ?>
- <?php if(have_ruleint_access($if)): ?>
- <option value="<?=$if;?>" <?php if ($pconfig['src'] == $if) { echo "selected"; } ?>><?=htmlspecialchars($ifdesc);?> subnet</option>
- <option value="<?=$if;?>ip"<?php if ($pconfig['src'] == $if . "ip") { echo "selected"; } ?>>
+ foreach ($ifdisp as $ifent => $ifdesc): ?>
+ <?php if(have_ruleint_access($ifent)): ?>
+ <option value="<?=$ifent;?>" <?php if ($pconfig['src'] == $ifent) { echo "selected"; } ?>><?=htmlspecialchars($ifdesc);?> subnet</option>
+ <option value="<?=$ifent;?>ip"<?php if ($pconfig['src'] == $ifent . "ip") { echo "selected"; } ?>>
<?=$ifdesc?> address
</option>
<?php endif; ?>
@@ -991,15 +991,15 @@ on another rule.")?>
}
}
$iflist = get_configured_interface_with_descr();
- foreach ($iflist as $if => $ifdesc) {
- if($config['interfaces'][$if]['ipaddr'] == "dhcp") {
- if ($pconfig['gateway'] == $if) {
+ foreach ($iflist as $ifent => $ifdesc) {
+ if($config['interfaces'][$ifent]['ipaddr'] == "dhcp") {
+ if ($pconfig['gateway'] == $ifent) {
$selected = " SELECTED";
} else {
$selected = "";
}
if($ifdesc <> "")
- echo "<option value=\"{$if}\" {$selected}>".strtoupper($if)." - {$ifdesc}</option>\n";
+ echo "<option value=\"{$ifent}\" {$selected}>".strtoupper($if)." - {$ifdesc}</option>\n";
}
}
?>
OpenPOWER on IntegriCloud