summaryrefslogtreecommitdiffstats
path: root/etc/inc/voucher.inc
diff options
context:
space:
mode:
authorbcyrill <cyrill@bannwart.info>2013-01-19 05:24:43 +0100
committerbcyrill <cyrill@bannwart.info>2013-01-19 05:24:43 +0100
commitbbe29bb1870000eb81eaedb8cab502ad8f81b250 (patch)
treef9180d8f928836ed5ce2d043687fc0393e853320 /etc/inc/voucher.inc
parenta18eeb5173d5936604ee808ca62a18d7445d88d8 (diff)
downloadpfsense-bbe29bb1870000eb81eaedb8cab502ad8f81b250.zip
pfsense-bbe29bb1870000eb81eaedb8cab502ad8f81b250.tar.gz
Update /etc/inc/voucher.inc
Diffstat (limited to 'etc/inc/voucher.inc')
-rw-r--r--etc/inc/voucher.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/voucher.inc b/etc/inc/voucher.inc
index 92ac804..32602af 100644
--- a/etc/inc/voucher.inc
+++ b/etc/inc/voucher.inc
@@ -95,7 +95,7 @@ function xmlrpc_sync_voucher_disconnect($dbent, $syncip, $port, $password, $user
/* Construct code that is run on remote machine */
$dbent_str = serialize($dbent);
- $stop_time_str = (isset($stop_time)) ? $stop_time : "null";
+ $tmp_stop_time = (isset($stop_time)) ? $stop_time : "null";
$method = 'pfsense.exec_php';
$execcmd = <<<EOF
require_once('/etc/inc/captiveportal.inc');
@@ -103,7 +103,7 @@ function xmlrpc_sync_voucher_disconnect($dbent, $syncip, $port, $password, $user
\$cpzone = "$cpzone";
\$radiusservers = captiveportal_get_radius_servers();
\$dbent = unserialize("$dbent_str");
- captiveportal_disconnect(\$dbent, \$radiusservers, $term_cause, $stop_time_str);
+ captiveportal_disconnect(\$dbent, \$radiusservers, $term_cause, $tmp_stop_time);
EOF;
@@ -153,7 +153,7 @@ function xmlrpc_sync_used_voucher($voucher_received, $syncip, $port, $password,
\$timeleft = voucher_auth("$voucher_received");
\$toreturn = array();
\$toreturn['timeleft'] = \$timeleft;
- \$toreturn['voucher']['roll'] = \$config['voucher']["$cpzone"]['roll'];
+ \$toreturn['voucher']['roll'] = \$config['voucher'][\$cpzone]['roll'];
EOF;
OpenPOWER on IntegriCloud