diff options
Diffstat (limited to 'usr/local/www/services_captiveportal_vouchers.php')
-rw-r--r-- | usr/local/www/services_captiveportal_vouchers.php | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/usr/local/www/services_captiveportal_vouchers.php b/usr/local/www/services_captiveportal_vouchers.php index bd1b2f3..4edc39f 100644 --- a/usr/local/www/services_captiveportal_vouchers.php +++ b/usr/local/www/services_captiveportal_vouchers.php @@ -324,29 +324,30 @@ EOF; } else { // If we received back the voucher roll and other information then store it. if($toreturn['voucher']['roll']) - $config['voucher'][$cpzone]['roll'] = $toreturn['voucher']['roll']; + $newvoucher['roll'] = $toreturn['voucher']['roll']; if($toreturn['voucher']['rollbits']) - $config['voucher'][$cpzone]['rollbits'] = $toreturn['voucher']['rollbits']; + $newvoucher['rollbits'] = $toreturn['voucher']['rollbits']; if($toreturn['voucher']['ticketbits']) - $config['voucher'][$cpzone]['ticketbits'] = $toreturn['voucher']['ticketbits']; + $newvoucher['ticketbits'] = $toreturn['voucher']['ticketbits']; if($toreturn['voucher']['checksumbits']) - $config['voucher'][$cpzone]['checksumbits'] = $toreturn['voucher']['checksumbits']; + $newvoucher['checksumbits'] = $toreturn['voucher']['checksumbits']; if($toreturn['voucher']['magic']) - $config['voucher'][$cpzone]['magic'] = $toreturn['voucher']['magic']; + $newvoucher['magic'] = $toreturn['voucher']['magic']; if($toreturn['voucher']['exponent']) - $config['voucher'][$cpzone]['exponent'] = $toreturn['voucher']['exponent']; + $newvoucher['exponent'] = $toreturn['voucher']['exponent']; if($toreturn['voucher']['publickey']) - $config['voucher'][$cpzone]['publickey'] = $toreturn['voucher']['publickey']; + $newvoucher['publickey'] = $toreturn['voucher']['publickey']; if($toreturn['voucher']['privatekey']) - $config['voucher'][$cpzone]['privatekey'] = $toreturn['voucher']['privatekey']; + $newvoucher['privatekey'] = $toreturn['voucher']['privatekey']; if($toreturn['voucher']['msgnoaccess']) - $config['voucher'][$cpzone]['msgnoaccess'] = $toreturn['voucher']['msgnoaccess']; + $newvoucher['msgnoaccess'] = $toreturn['voucher']['msgnoaccess']; if($toreturn['voucher']['msgexpired']) - $config['voucher'][$cpzone]['msgexpired'] = $toreturn['voucher']['msgexpired']; + $newvoucher['msgexpired'] = $toreturn['voucher']['msgexpired']; if($toreturn['voucher']['msgnoaccess']) - $config['voucher'][$cpzone]['msgnoaccess'] = $toreturn['voucher']['msgnoaccess']; + $newvoucher['msgnoaccess'] = $toreturn['voucher']['msgnoaccess']; $savemsg = gettext("Voucher database has been synchronized from {$url}:{$port}"); + $config['voucher'][$cpzone] = $newvoucher; write_config(); voucher_configure_zone(true); } |