From fe5b25acb05d70a8b876abcbd6573851ac983975 Mon Sep 17 00:00:00 2001 From: marda Date: Wed, 30 Sep 2020 10:09:31 +0700 Subject: [PATCH] Update srsx.php - progress about srsx --- src/bb-library/Registrar/Adapter/srsx.php | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/src/bb-library/Registrar/Adapter/srsx.php b/src/bb-library/Registrar/Adapter/srsx.php index ab574b3bc..da2b586e2 100644 --- a/src/bb-library/Registrar/Adapter/srsx.php +++ b/src/bb-library/Registrar/Adapter/srsx.php @@ -1,6 +1,6 @@ getDomainId(); - # Register domain + # Register domain + #$this->client_data wut by timothy? $postfields = array( "domain" => $this->options["sld"].".".$this->options["tld"], "api_id" => $domainid, @@ -258,7 +261,7 @@ class Registrar_Adapter_srsx extends Registrar_Adapter_Resellerclub } } - + #still not fixed public function modifyNs(Registrar_Domain $domain) { $ns = array(); @@ -279,7 +282,8 @@ class Registrar_Adapter_srsx extends Registrar_Adapter_Resellerclub $result = $this->_callApi('domain/updatens', $params, 'POST'); return ($result['status'] == 'Success'); } - + + #still not fixed public function modifyContact(Registrar_Domain $domain) { $customer = $this->_getCustomerDetails($domain); @@ -555,6 +559,7 @@ class Registrar_Adapter_srsx extends Registrar_Adapter_Resellerclub protected function _callApi($query=true,$postfields=true) { + if ($query && is_array($postfields)) { # Get URL $apiUrl = "https://srb{$this->config["resellerId"]}.srs-x.com"; @@ -593,5 +598,4 @@ class Registrar_Adapter_srsx extends Registrar_Adapter_Resellerclub return $randomResult; } -} - +} \ No newline at end of file