From 4d7522bfc56cfd18f6d0df9fcea73715516b56d0 Mon Sep 17 00:00:00 2001 From: PiBa-NL Date: Thu, 8 Sep 2016 01:09:44 +0200 Subject: XMLRPC, xmlrpc_client simplify construction parameters where possible + cleanup --- src/etc/inc/voucher.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/etc/inc/voucher.inc') 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'])) { -- cgit v1.1