mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-10 02:55:55 +02:00
ovpnmain.cgi: Fix downloading of client packages.
It was only possible to download the client packages if the OpenVPN server is running - which is very confusing. Fixes #10300.
This commit is contained in:
committed by
Stefan Schantl
parent
30086585ed
commit
96096995ed
@@ -4969,19 +4969,13 @@ END
|
||||
}
|
||||
|
||||
|
||||
my $disable_clientdl = "disabled='disabled'";
|
||||
if (( $cgiparams{'ENABLED'} eq 'on') ||
|
||||
( $cgiparams{'ENABLED_BLUE'} eq 'on') ||
|
||||
( $cgiparams{'ENABLED_ORANGE'} eq 'on')){
|
||||
$disable_clientdl = "";
|
||||
}
|
||||
print <<END
|
||||
<td align='center'>$active</td>
|
||||
|
||||
<form method='post' name='frm${key}a'><td align='center'>
|
||||
<input type='image' name='$Lang::tr{'dl client arch'}' $disable_clientdl src='/images/openvpn.png' alt='$Lang::tr{'dl client arch'}' title='$Lang::tr{'dl client arch'}' border='0' />
|
||||
<input type='hidden' name='ACTION' value='$Lang::tr{'dl client arch'}' $disable_clientdl />
|
||||
<input type='hidden' name='KEY' value='$key' $disable_clientdl />
|
||||
<input type='image' name='$Lang::tr{'dl client arch'}' src='/images/openvpn.png' alt='$Lang::tr{'dl client arch'}' title='$Lang::tr{'dl client arch'}' border='0' />
|
||||
<input type='hidden' name='ACTION' value='$Lang::tr{'dl client arch'}' />
|
||||
<input type='hidden' name='KEY' value='$key' />
|
||||
</td></form>
|
||||
END
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user