summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-08-15 19:20:56 +0000
committerErmal <eri@pfsense.org>2011-08-15 19:20:56 +0000
commit6dd45e0ddf0c792612740262fd98625ddfa24fdc (patch)
tree1baf48d2c780bc1e3aa80f132239837a46d8066d
parent6a4ec785e82f1cbd37207318175f7c1a03a06904 (diff)
downloadpfsense-6dd45e0ddf0c792612740262fd98625ddfa24fdc.zip
pfsense-6dd45e0ddf0c792612740262fd98625ddfa24fdc.tar.gz
Another roll at fixing the voucher sync problems.
-rw-r--r--etc/inc/voucher.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/voucher.inc b/etc/inc/voucher.inc
index 5c60f2c..092e384 100644
--- a/etc/inc/voucher.inc
+++ b/etc/inc/voucher.inc
@@ -50,7 +50,7 @@ function xmlrpc_sync_voucher_expire($vouchers, $syncip, $port, $password, $usern
$execcmd = <<<EOF
require_once('/etc/inc/captiveportal.inc');
require_once('/etc/inc/voucher.inc');
- voucher_expire(\$vouchers);
+ voucher_expire('$vouchers');
EOF;
@@ -144,7 +144,7 @@ function xmlrpc_sync_used_voucher($voucher_received, $syncip, $port, $password,
$method = 'pfsense.exec_php';
$execcmd = <<<EOF
require_once('/etc/inc/voucher.inc');
- \$timeleft = voucher_auth(\$voucher_received);
+ \$timeleft = voucher_auth('$voucher_received');
\$toreturn = array();
\$toreturn['timeleft'] = \$timeleft;
\$toreturn['voucher']['roll'] = \$config['voucher']['roll'];
OpenPOWER on IntegriCloud