diff options
author | Ermal Luçi <eri@pfsense.org> | 2009-04-26 15:20:50 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2009-04-26 15:20:50 +0000 |
commit | a778209996e00a99675ec09040464e8d9628d07d (patch) | |
tree | 0a2b7a676cff787c21c86674ff77d64ab4f14738 /usr | |
parent | 45316b1c161aa0c8ae05e08caf427ee9e90f97b2 (diff) | |
download | pfsense-a778209996e00a99675ec09040464e8d9628d07d.zip pfsense-a778209996e00a99675ec09040464e8d9628d07d.tar.gz |
Show interface groups first in the interface dropdown.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/firewall_rules_edit.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php index 5ea594b..5e3f20e 100755 --- a/usr/local/www/firewall_rules_edit.php +++ b/usr/local/www/firewall_rules_edit.php @@ -528,6 +528,12 @@ include("head.inc"); <select name="interface" class="formselect"> <?php endif; + /* add group interfaces */ + if (is_array($config['ifgroups']['ifgroupentry'])) + foreach($config['ifgroups']['ifgroupentry'] as $ifgen) + if (have_ruleint_access($ifgen['ifname'])) + $interfaces[$ifgen['ifname']] = $ifgen['ifname']; + $ifdescs = get_configured_interface_with_descr(); foreach ($ifdescs as $ifent => $ifdesc) @@ -555,12 +561,6 @@ include("head.inc"); if ($config['openvpn']["openvpn-server"] || $config['openvpn']["openvpn-client"]) $interfaces["openvpn"] = "OpenVPN"; - /* add group interfaces */ - if (is_array($config['ifgroups']['ifgroupentry'])) - foreach($config['ifgroups']['ifgroupentry'] as $ifgen) - if (have_ruleint_access($ifgen['ifname'])) - $interfaces[$ifgen['ifname']] = $ifgen['ifname']; - foreach ($interfaces as $iface => $ifacename): ?> <option value="<?=$iface;?>" <?php if ($pconfig['interface'] <> "" && stristr($pconfig['interface'], $iface)) echo "selected"; ?>><?=gettext($ifacename);?></option> <?php endforeach; ?> |