]> git.ipfire.org Git - people/mfischer/ipfire-2.x.git/commitdiff
index.cgi: Remove all the boxes
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 6 Aug 2024 15:36:20 +0000 (17:36 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 6 Aug 2024 15:36:20 +0000 (17:36 +0200)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/index.cgi

index cec1f5a94aea341f9e5a03a2b2402fdf51020ef8..ed186cd1f0fa10fcfa754e8db469e90c668021d2 100644 (file)
@@ -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 = <IPADDR>;
@@ -372,7 +372,7 @@ print <<END;
 END
        }
 print"</table>";
-&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"</table>";
        }
-&Header::closebox();
+
+       &Header::closesection();
 }
 
 my @warnings = ();