From: Michael Tremer Date: Tue, 6 Aug 2024 15:36:20 +0000 (+0200) Subject: index.cgi: Remove all the boxes X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bdfaa8177fb1735e0d6c5b09f5f055c3fd827b9c;p=people%2Fmfischer%2Fipfire-2.x.git index.cgi: Remove all the boxes Signed-off-by: Michael Tremer --- diff --git a/html/cgi-bin/index.cgi b/html/cgi-bin/index.cgi index cec1f5a94..ed186cd1f 100644 --- a/html/cgi-bin/index.cgi +++ b/html/cgi-bin/index.cgi @@ -143,7 +143,7 @@ if (open(IPADDR,"${General::swroot}/red/local-ipaddress")) { chomp ($ipaddr); } -&Header::openbox('100%', 'center', ''); +&Header::opensection(); if ( ( $pppsettings{'VALID'} eq 'yes' && $modemsettings{'VALID'} eq 'yes' ) || ( $netsettings{'CONFIG_TYPE'} =~ /^(1|2|3|4)$/ && $netsettings{'RED_TYPE'} =~ /^(DHCP|STATIC)$/ )) { if (open(IPADDR,"${General::swroot}/ddns/ipcache")) { $ipaddr = ; @@ -372,7 +372,7 @@ print <"; -&Header::closebox(); +&Header::closesection(); #Check if there are any vpns configured (ipsec and openvpn) &General::readhasharray("${General::swroot}/vpn/config", \%vpnconfig); @@ -394,7 +394,7 @@ foreach my $dkey (sort { ncmp($ovpnconfig{$a}[1],$ovpnconfig{$b}[1])} keys %ovpn if ($showbox){ # Start of Box wich contains all vpn connections - &Header::openbox('100%', 'center', $Lang::tr{'vpn'}); + &Header::opensection(); #show ipsec connectiontable if ( $showipsec ) { @@ -525,7 +525,8 @@ END } print""; } -&Header::closebox(); + + &Header::closesection(); } my @warnings = ();