summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_captiveportal_vouchers.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2013-12-16 15:11:09 -0500
committerjim-p <jimp@pfsense.org>2013-12-16 15:12:17 -0500
commit1848a25e0b55b552e043de9140073f0d35c9eb18 (patch)
treeeb5b4cf5640f941d1f820d1e409bbea724d8347d /usr/local/www/services_captiveportal_vouchers.php
parent00e550886c109f4981d01b093aeaebfff68f7914 (diff)
downloadpfsense-1848a25e0b55b552e043de9140073f0d35c9eb18.zip
pfsense-1848a25e0b55b552e043de9140073f0d35c9eb18.tar.gz
Fix saving of voucher sync settings.
Diffstat (limited to 'usr/local/www/services_captiveportal_vouchers.php')
-rw-r--r--usr/local/www/services_captiveportal_vouchers.php23
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 aa885e0..fb5b844 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);
}
OpenPOWER on IntegriCloud