mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-18 23:12:59 +02:00
captive: Remember selected coupon expiry time
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -135,6 +135,12 @@ if ($cgiparams{'ACTION'} eq "$Lang::tr{'Captive generate coupon'}") {
|
||||
}
|
||||
|
||||
if (!$errormessage) {
|
||||
# Remember selected values
|
||||
foreach my $val (("UNLIMITED", "EXP_HOUR", "EXP_DAY", "EXP_WEEK", "EXP_MONTH")) {
|
||||
$settings{$val} = $cgiparams{$val};
|
||||
}
|
||||
&General::writehash($settingsfile, \%settings);
|
||||
|
||||
&General::readhasharray($coupons, \%couponhash) if (-e $coupons);
|
||||
my $now = time();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user