%settings = ();
%ethsettings = ();
%pppsettings = ();
-@URI = ();
+my @URI = split('\?', $ENV{'REQUEST_URI'});
### Make sure this is an SSL request
if ($ENV{'SERVER_ADDR'} && $ENV{'HTTPS'} ne 'on') {
# No manual page configured, return nothing
return;
}
+
+1; # End of package "Header"
$substatus->{'54.networkovpnsrv'} = {
'caption' => "$Lang::tr{'vpn statistic n2n'}",
'uri' => '/cgi-bin/netovpnsrv.cgi',
- 'title' => "$Lang::tr{'vpn statistics n2n'}",
+ 'title' => "$Lang::tr{'vpn statistic n2n'}",
'enabled' => 1,
};
$substatus->{'60.hardwaregraphs'} = {
$substatus->{'75.atm-status'} = {'caption' => 'Atm-status',
'uri' => '/cgi-bin/atm-status.cgi',
'title' => 'Atm-status',
- 'enabled' => `find /sys/class/atm/*/device 2>/dev/null`,
+ 'enabled' => (`find /sys/class/atm/*/device 2>/dev/null` ? 1 : 0),
};
$substatus->{'76.mdstat'} = {'caption' => 'Mdstat',
'uri' => '/cgi-bin/mdstat.cgi',
'caption' => $Lang::tr{'aliases'},
'uri' => '/cgi-bin/aliases.cgi',
'title' => "$Lang::tr{'aliases'}",
- 'enabled' => `grep "RED_TYPE=STATIC" /var/ipfire/ethernet/settings`,
+ 'enabled' => (`grep "RED_TYPE=STATIC" /var/ipfire/ethernet/settings` ? 1 : 0),
};
$subnetwork->{'80.macadressmenu'} = {
'caption' => $Lang::tr{'mac address menu'},
# IPFire default theme. #
###############################################################################
-require "${General::swroot}/lang.pl";
-
###############################################################################
#
# print menu html elements for submenu entries
my $title = shift;
my $boh = shift;
my $extrahead = shift;
- my $suppressMenu = shift;
+ my $suppressMenu = shift // 0;
my @tmp = split(/\./, basename($0));
my $scriptName = @tmp[0];
- @URI=split ('\?', $ENV{'REQUEST_URI'} );
- &General::readhash("${swroot}/main/settings", \%settings);
- &genmenu();
-
my $headline = "IPFire";
if (($settings{'WINDOWWITHHOSTNAME'} eq 'on') || ($settings{'WINDOWWITHHOSTNAME'} eq '')) {
$headline = "$settings{'HOSTNAME'}.$settings{'DOMAINNAME'}";
}
-
print <<END;
<!DOCTYPE html>
<html>
END
;
-&showmenu() if ($suppressMenu != 1);
+unless($suppressMenu) {
+ &genmenu();
+ &showmenu();
+}
print <<END
<div class="bigbox fixed">
sub closebox {
print "</div>";
}
-
-1;
'vpn start action start' => 'Immer An',
'vpn statistic n2n' => 'OpenVPN: Netz-zu-Netz-Statistik',
'vpn statistic rw' => 'OpenVPN: Roadwarrior-Statistik',
-'vpn statistics n2n' => 'OpenVPN: Netz-zu-Netz-Statistiken',
'vpn subjectaltname' => 'SubjectAlternativeName',
'vpn subjectaltname missing' => 'SubjectAlternativeName darf nicht leer bleiben.',
'vpn wait' => 'WARTE',
'vpn start action start' => 'Toujours démarré',
'vpn statistic n2n' => 'OpenVPN (site-à-site)',
'vpn statistic rw' => 'OpenVPN (client nomade)',
-'vpn statistics n2n' => 'OpenVPN (site-à-site)',
'vpn subjectaltname' => 'Nom de l\'objet',
'vpn subjectaltname missing' => 'Le nom de l\'objet ne peut être vide.',
'vpn wait' => 'ATTENTE',