diff options
author | PiBa-NL <pba_2k3@yahoo.com> | 2016-09-13 19:42:04 +0200 |
---|---|---|
committer | PiBa-NL <pba_2k3@yahoo.com> | 2016-09-13 19:42:04 +0200 |
commit | e3b0eeb23a2ae570037f91606b160f8faac42890 (patch) | |
tree | 074d28a35a28428f148ffd8d9fcc2cfa435e5717 /src/etc/inc/voucher.inc | |
parent | 3cd1b96948ef48017bb8f7e71413db10136fe68d (diff) | |
download | pfsense-e3b0eeb23a2ae570037f91606b160f8faac42890.zip pfsense-e3b0eeb23a2ae570037f91606b160f8faac42890.tar.gz |
XMLRPC, xmlrpc_client remove extended class and define setConnectionData(.) function instead.
Diffstat (limited to 'src/etc/inc/voucher.inc')
-rw-r--r-- | src/etc/inc/voucher.inc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/etc/inc/voucher.inc b/src/etc/inc/voucher.inc index 94fcd66..f49fe52 100644 --- a/src/etc/inc/voucher.inc +++ b/src/etc/inc/voucher.inc @@ -42,7 +42,8 @@ function xmlrpc_sync_voucher_expire($vouchers, $syncip, $port, $password, $usern voucher_expire("$vouchers"); EOF; - $rpc_client = new pfsense_xmlrpc_client_extended($syncip, $port, $username, $password); + $rpc_client = new pfsense_xmlrpc_client(); + $rpc_client->setConnectionData($syncip, $port, $username, $password); $resp = $rpc_client->xmlrpc_exec_php($execcmd); if (empty($resp)) { return false; @@ -66,7 +67,8 @@ 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_extended($syncip, $port, $username, $password); + $rpc_client = new pfsense_xmlrpc_client(); + $rpc_client->setConnectionData($syncip, $port, $username, $password); $resp = $rpc_client->xmlrpc_exec_php($execcmd); if (empty($resp)) { return false; @@ -90,7 +92,8 @@ function xmlrpc_sync_used_voucher($voucher_received, $syncip, $port, $password, \$toreturn['voucher']['roll'] = \$config['voucher'][\$cpzone]['roll']; EOF; - $rpc_client = new pfsense_xmlrpc_client_extended($syncip, $port, $username, $password); + $rpc_client = new pfsense_xmlrpc_client(); + $rpc_client->setConnectionData($syncip, $port, $username, $password); $resp = $rpc_client->xmlrpc_exec_php($execcmd); if (!is_array($config['voucher'])) { |