summaryrefslogtreecommitdiffstats
path: root/etc/inc/voucher.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-08-15 19:20:56 +0000
committerErmal <eri@pfsense.org>2011-08-15 19:21:12 +0000
commit460082ce6035bfa4e9afadb974b27de3768bf45b (patch)
tree09b88283827a8047749dfd3140b9a2b5b0a1dbd9 /etc/inc/voucher.inc
parent8103bd1ed36db50a14796e71181ac23fd59e3268 (diff)
downloadpfsense-460082ce6035bfa4e9afadb974b27de3768bf45b.zip
pfsense-460082ce6035bfa4e9afadb974b27de3768bf45b.tar.gz
Another roll at fixing the voucher sync problems.
Diffstat (limited to 'etc/inc/voucher.inc')
-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 586743f..7f4ff08 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