mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
captive: Don't compare action string
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -53,8 +53,8 @@ unless (-f $clients){ system("touch $clients"); }
|
||||
#Read settings
|
||||
&General::readhash("$settingsfile", \%settings) if(-f $settingsfile);
|
||||
|
||||
#Actions
|
||||
if ($cgiparams{'ACTION'} eq "$Lang::tr{'gpl i accept these terms and conditions'}"){
|
||||
# Actions
|
||||
if ($cgiparams{'ACTION'} eq "SUBMIT") {
|
||||
#Get Clients IP-Address
|
||||
my $ip_address = $ENV{X_FORWARDED_FOR} || $ENV{REMOTE_ADDR} ||"";
|
||||
|
||||
@@ -82,7 +82,7 @@ if ($cgiparams{'ACTION'} eq "$Lang::tr{'gpl i accept these terms and conditions'
|
||||
}
|
||||
}
|
||||
|
||||
if ($cgiparams{'ACTION'} eq "$Lang::tr{'Captive activate'}"){
|
||||
if ($cgiparams{'ACTION'} eq "SUBMIT") {
|
||||
my $ip_address;
|
||||
my $mac_address;
|
||||
my $granted=0;
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
</TMPL_IF>
|
||||
|
||||
<form action="" method="POST">
|
||||
<input type="hidden" name="ACTION" value="SUBMIT">
|
||||
<input type="hidden" name="url" value="<TMPL_VAR NAME="URL">">
|
||||
|
||||
<TMPL_IF NAME="VOUCHER">
|
||||
|
||||
Reference in New Issue
Block a user