diff --git a/html/cgi-bin/captive.cgi b/html/cgi-bin/captive.cgi index 0a16dc12b..841f946b3 100755 --- a/html/cgi-bin/captive.cgi +++ b/html/cgi-bin/captive.cgi @@ -28,7 +28,7 @@ use HTML::Entities(); require '/var/ipfire/general-functions.pl'; require "${General::swroot}/lang.pl"; require "${General::swroot}/header.pl"; -unless (-e "${General::swroot}/captive/settings") { system("touch ${General::swroot}/captive/settings"); } + my %settings=(); my %mainsettings; my %color; @@ -42,6 +42,7 @@ my %voucherhash=(); my %clientshash=(); my $settingsfile="${General::swroot}/captive/settings"; +unless (-e $settingsfile) { system("touch $settingsfile"); } unless (-e $voucherout) { system("touch $voucherout"); } &Header::getcgihash(\%cgiparams); @@ -256,12 +257,9 @@ END END ; - if($settings{'AUTH'} eq 'LICENSE'){ - &agbbox(); - } + &agbbox(); print"
| $Lang::tr{'hours'} | $Lang::tr{'days'} | $Lang::tr{'weeks'} | $Lang::tr{'months'} | "; diff --git a/html/cgi-bin/captive/index.cgi b/html/cgi-bin/captive/index.cgi index dd4593199..975bd61d5 100755 --- a/html/cgi-bin/captive/index.cgi +++ b/html/cgi-bin/captive/index.cgi @@ -168,7 +168,7 @@ print<
|---|