X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=blobdiff_plain;f=html%2Fcgi-bin%2Fovpnmain.cgi;h=761041402065dfd23730083ec32dc71f773aefec;hp=af2f6e353cc2fbc1b01b231fe3e8e69279b3cadf;hb=f2fdd0c1e9a3ccf539cd477a6111281eadc200a7;hpb=4b4aec3a3d388d87c5279e90b299a0af1e68d649 diff --git a/html/cgi-bin/ovpnmain.cgi b/html/cgi-bin/ovpnmain.cgi index af2f6e353c..7610414020 100644 --- a/html/cgi-bin/ovpnmain.cgi +++ b/html/cgi-bin/ovpnmain.cgi @@ -30,7 +30,10 @@ require "${General::swroot}/countries.pl"; my @dummy = ( ${Header::colourgreen} ); undef (@dummy); - +my %color = (); +my %mainsettings = (); +&General::readhash("${General::swroot}/main/settings", \%mainsettings); +&General::readhash("/srv/web/ipfire/html/themes/".$mainsettings{'THEME'}."/include/colors.txt", \%color); ### ### Initialize variables @@ -1460,9 +1463,9 @@ END if ($user2 >= 1){ for (my $idx = 1; $idx <= $user2; $idx++){ if ($idx % 2) { - print "\n"; + print "\n"; } else { - print "\n"; + print "\n"; } print "$users[$idx-1]{'CommonName'}"; print "$users[$idx-1]{'RealAddress'}"; @@ -2875,7 +2878,7 @@ if (-f "${General::swroot}/ovpn/ca/cacert.pem") { $casubject =~ s+/Email+, E+; $casubject =~ s/ ST=/ S=/; print < + $Lang::tr{'root certificate'} $casubject
@@ -2892,7 +2895,7 @@ END } else { # display rootcert generation buttons print < + $Lang::tr{'root certificate'}: $Lang::tr{'not present'}   @@ -2907,7 +2910,7 @@ if (-f "${General::swroot}/ovpn/certs/servercert.pem") { $hostsubject =~ s+/Email+, E+; $hostsubject =~ s/ ST=/ S=/; print < + $Lang::tr{'host certificate'} $hostsubject @@ -2924,7 +2927,7 @@ END } else { # Nothing print < + $Lang::tr{'host certificate'}: $Lang::tr{'not present'}   @@ -2941,9 +2944,9 @@ if (! -f "${General::swroot}/ovpn/ca/cacert.pem") { if (keys %cahash > 0) { foreach my $key (keys %cahash) { if (($key + 1) % 2) { - print "\n"; + print "\n"; } else { - print "\n"; + print "\n"; } print "$cahash{$key}[0]\n"; print "$cahash{$key}[1]\n";