mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Another roll at fixing the voucher sync problems.
This commit is contained in:
parent
8103bd1ed3
commit
460082ce60
@ -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'];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user