Revision a7782099
Added by Ermal Luçi about 16 years ago
usr/local/www/firewall_rules_edit.php | ||
---|---|---|
528 | 528 |
<select name="interface" class="formselect"> |
529 | 529 |
<?php |
530 | 530 |
endif; |
531 |
/* add group interfaces */ |
|
532 |
if (is_array($config['ifgroups']['ifgroupentry'])) |
|
533 |
foreach($config['ifgroups']['ifgroupentry'] as $ifgen) |
|
534 |
if (have_ruleint_access($ifgen['ifname'])) |
|
535 |
$interfaces[$ifgen['ifname']] = $ifgen['ifname']; |
|
536 |
|
|
531 | 537 |
$ifdescs = get_configured_interface_with_descr(); |
532 | 538 |
|
533 | 539 |
foreach ($ifdescs as $ifent => $ifdesc) |
... | ... | |
555 | 561 |
if ($config['openvpn']["openvpn-server"] || $config['openvpn']["openvpn-client"]) |
556 | 562 |
$interfaces["openvpn"] = "OpenVPN"; |
557 | 563 |
|
558 |
/* add group interfaces */ |
|
559 |
if (is_array($config['ifgroups']['ifgroupentry'])) |
|
560 |
foreach($config['ifgroups']['ifgroupentry'] as $ifgen) |
|
561 |
if (have_ruleint_access($ifgen['ifname'])) |
|
562 |
$interfaces[$ifgen['ifname']] = $ifgen['ifname']; |
|
563 |
|
|
564 | 564 |
foreach ($interfaces as $iface => $ifacename): ?> |
565 | 565 |
<option value="<?=$iface;?>" <?php if ($pconfig['interface'] <> "" && stristr($pconfig['interface'], $iface)) echo "selected"; ?>><?=gettext($ifacename);?></option> |
566 | 566 |
<?php endforeach; ?> |
Also available in: Unified diff
Show interface groups first in the interface dropdown.