summaryrefslogtreecommitdiffstats
path: root/src/etc/inc/voucher.inc
diff options
context:
space:
mode:
authorPiBa-NL <pba_2k3@yahoo.com>2016-09-08 01:09:44 +0200
committerPiBa-NL <pba_2k3@yahoo.com>2016-09-08 01:09:44 +0200
commit4d7522bfc56cfd18f6d0df9fcea73715516b56d0 (patch)
tree2c69055c2d0c6e6602ad8a3334131054bcf8ac60 /src/etc/inc/voucher.inc
parenta8620841be1ad5ecced36091cb8bc716df32789c (diff)
downloadpfsense-4d7522bfc56cfd18f6d0df9fcea73715516b56d0.zip
pfsense-4d7522bfc56cfd18f6d0df9fcea73715516b56d0.tar.gz
XMLRPC, xmlrpc_client simplify construction parameters where possible + cleanup
Diffstat (limited to 'src/etc/inc/voucher.inc')
-rw-r--r--src/etc/inc/voucher.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/etc/inc/voucher.inc b/src/etc/inc/voucher.inc
index 9144daa..94fcd66 100644
--- a/src/etc/inc/voucher.inc
+++ b/src/etc/inc/voucher.inc
@@ -42,7 +42,7 @@ function xmlrpc_sync_voucher_expire($vouchers, $syncip, $port, $password, $usern
voucher_expire("$vouchers");
EOF;
- $rpc_client = new pfsense_xmlrpc_client($syncip, $port, $username, $password);
+ $rpc_client = new pfsense_xmlrpc_client_extended($syncip, $port, $username, $password);
$resp = $rpc_client->xmlrpc_exec_php($execcmd);
if (empty($resp)) {
return false;
@@ -66,7 +66,7 @@ function xmlrpc_sync_voucher_disconnect($dbent, $syncip, $port, $password, $user
captiveportal_disconnect(\$dbent, \$radiusservers, $term_cause, $tmp_stop_time);
EOF;
- $rpc_client = new pfsense_xmlrpc_client($syncip, $port, $username, $password);
+ $rpc_client = new pfsense_xmlrpc_client_extended($syncip, $port, $username, $password);
$resp = $rpc_client->xmlrpc_exec_php($execcmd);
if (empty($resp)) {
return false;
@@ -90,7 +90,7 @@ function xmlrpc_sync_used_voucher($voucher_received, $syncip, $port, $password,
\$toreturn['voucher']['roll'] = \$config['voucher'][\$cpzone]['roll'];
EOF;
- $rpc_client = new pfsense_xmlrpc_client($syncip, $port, $username, $password);
+ $rpc_client = new pfsense_xmlrpc_client_extended($syncip, $port, $username, $password);
$resp = $rpc_client->xmlrpc_exec_php($execcmd);
if (!is_array($config['voucher'])) {
OpenPOWER on IntegriCloud