Revision 139598eb
Added by robjarsen about 7 years ago
src/etc/inc/voucher.inc | ||
---|---|---|
70 | 70 |
function xmlrpc_sync_voucher_expire($vouchers, $syncip, $port, $password, $username) { |
71 | 71 |
global $cpzone; |
72 | 72 |
require_once("xmlrpc_client.inc"); |
73 |
|
|
73 |
|
|
74 | 74 |
/* Construct code that is run on remote machine */ |
75 | 75 |
$execcmd = <<<EOF |
76 | 76 |
global \$cpzone; |
... | ... | |
135 | 135 |
$rpc_client = new pfsense_xmlrpc_client(); |
136 | 136 |
$rpc_client->setConnectionData($syncip, $port, $username, $password); |
137 | 137 |
$resp = $rpc_client->xmlrpc_exec_php($execcmd); |
138 |
|
|
138 |
|
|
139 | 139 |
if (!is_array($config['voucher'])) { |
140 | 140 |
$config['voucher'] = array(); |
141 | 141 |
} |
Also available in: Unified diff
Remove Whitespace
I'm aware this is a very large commit. Let me know if you'd rather have it broken down by file type (ie: PHP/shell scripts) so it would be easier to review.
-RJ
(cherry picked from commit 179377b01cc93b0842e07b3865df9812608c8f2c)