Project

General

Profile

« Previous | Next » 

Revision 460082ce

Added by Ermal LUÇI about 14 years ago

Another roll at fixing the voucher sync problems.

View differences:

etc/inc/voucher.inc
50 50
	$execcmd  = <<<EOF
51 51
	require_once('/etc/inc/captiveportal.inc');
52 52
	require_once('/etc/inc/voucher.inc');
53
	voucher_expire(\$vouchers);
53
	voucher_expire('$vouchers');
54 54

  
55 55
EOF;
56 56

  
......
144 144
	$method = 'pfsense.exec_php';
145 145
	$execcmd  = <<<EOF
146 146
	require_once('/etc/inc/voucher.inc');
147
	\$timeleft = voucher_auth(\$voucher_received);
147
	\$timeleft = voucher_auth('$voucher_received');
148 148
	\$toreturn = array();
149 149
	\$toreturn['timeleft'] = \$timeleft;
150 150
	\$toreturn['voucher']['roll'] = \$config['voucher']['roll'];

Also available in: Unified diff