diff --git a/html/cgi-bin/zoneconf.cgi b/html/cgi-bin/zoneconf.cgi
index eb6cd0e66..9d01d06ce 100644
--- a/html/cgi-bin/zoneconf.cgi
+++ b/html/cgi-bin/zoneconf.cgi
@@ -25,6 +25,7 @@ use Scalar::Util qw(looks_like_number);
require '/var/ipfire/general-functions.pl';
require "${General::swroot}/lang.pl";
require "${General::swroot}/header.pl";
+require "${General::swroot}/network-functions.pl";
###--- HTML HEAD ---###
my $extraHead = <$uc ($red_type)\n";
next; # We're done here
@@ -436,12 +421,9 @@ foreach (@nics) {
my $uc = uc $_;
my $highlight = "";
- # If the zone is not activated, don't show it
- next unless is_zone_activated($_);
-
if ($uc eq "RED") {
# VLANs/Bridging is not possible if the RED interface is set to PPP, PPPoE, VDSL, ...
- unless (is_zonetype_ip($ethsettings{"RED_TYPE"})) {
+ unless (Network::is_red_mode_ip()) {
my $checked = "";
if ($mac eq $ethsettings{"${uc}_MACADDR"}) {
@@ -519,12 +501,9 @@ my @stp_html = (); # form fields buffer (two rows)
foreach (@zones) { # load settings and prepare form elements for each zone
my $uc = uc $_;
- # skip if zone is not activated
- next unless is_zone_activated($_);
-
# STP is not available if the RED interface is set to PPP, PPPoE, VDSL, ...
if ($uc eq "RED") {
- unless (is_zonetype_ip($ethsettings{"RED_TYPE"})) {
+ unless (Network::is_red_mode_ip()) {
push(@stp_html, ["\t\t | \n", "\t\t | \n"]); # print empty cell
next;
}