From 8c3165b4bfb9547d51c93302679e8d9e088d397c Mon Sep 17 00:00:00 2001 From: Ganesh Date: Tue, 30 Apr 2019 05:43:38 -0400 Subject: [PATCH 1/3] 1.99 websitecheck minor fix --- src/Plugin.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Plugin.php b/src/Plugin.php index 5226a5d..6d3cf40 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -228,8 +228,12 @@ function_requirements('class.OpenSRS'); myadmin_log('opensrs', 'info', "Customer trying to register domain for $1.99 without webhosting order", __LINE__, __FILE__, self::$module, $serviceClass->getId()); return false; } - $db->next_record(); - if ($db->Record['website_status'] != 'active') { + $website_active = false; + while ($db->next_record(MYSQL_ASSOC)) { + if ($db->Record['website_status'] == 'active') + $website_active = true; + } + if ($website_active === true) { dialog('Failed', 'Kindly make payment of website '.$db->Record['website_id'].' you ordered along with this domain.'); myadmin_log('opensrs', 'info', "Customer trying to register domain without paying webhosting order {$db->Record['website_id']}", __LINE__, __FILE__, self::$module, $serviceClass->getId()); return false; From 322444e1fcd6401a3eaf2ad7aea62a4e4b0c8f73 Mon Sep 17 00:00:00 2001 From: Ganesh Date: Thu, 19 Sep 2019 11:12:57 -0400 Subject: [PATCH 2/3] Added registrant info for .com.au tld --- src/Plugin.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/Plugin.php b/src/Plugin.php index 6d3cf40..5e436e3 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -385,7 +385,7 @@ function_requirements('class.OpenSRS'); if (trim($serviceClass->getFax()) != '') { $callArray['fax'] = $serviceClass->getFax(); } - if (in_array($serviceTld, ['.abogado', '.aero', '.asia', '.cl', '.co.hu', '.com.ar', '.com.br', '.com.lv', '.com.mx', '.com.pt', '.com.ro', '.coop', '.co.za', '.de', '.dk', '.es', '.fr', '.hk', '.hu', '.it', '.jobs', '.law', '.lv', '.mx', '.my', '.no', '.nu', '.nyc', '.pm', '.pro', '.pt', '.re', '.ro', '.ru', '.se', '.sg', '.tf', '.travel', '.uk', '.us', '.wf', '.xxx', '.yt'])) { + if (in_array($serviceTld, ['.abogado', '.aero', '.asia', '.cl', '.co.hu', '.com.au', '.com.ar', '.com.br', '.com.lv', '.com.mx', '.com.pt', '.com.ro', '.coop', '.co.za', '.de', '.dk', '.es', '.fr', '.hk', '.hu', '.it', '.jobs', '.law', '.lv', '.mx', '.my', '.no', '.nu', '.nyc', '.pm', '.pro', '.pt', '.re', '.ro', '.ru', '.se', '.sg', '.tf', '.travel', '.uk', '.us', '.wf', '.xxx', '.yt'])) { $callArray['data']['tld_data'] = []; if (in_array($serviceTld, ['.abogado', '.aero', '.cl', '.co.hu', '.com.ar', '.com.lv', '.com.mx', '.com.pt', '.com.ro', '.coop', '.co.za', '.de', '.dk', '.es', '.fi.', '.fr', '.hk', '.hu', '.jobs', '.law', '.lv', '.mx', '.my', '.no', '.nu', '.nyc', '.pm', '.pt', '.re', '.ro', '.ru', '.se', '.sg', '.tf', '.travel', '.wf', '.yt'])) { $callArray['data']['tld_data']['registrant_extra_info'] = []; @@ -446,6 +446,19 @@ function_requirements('class.OpenSRS'); $callArray['data']['tld_data']['registrant_extra_info'] = $extraInfo; } } else { + if ($serviceTld == '.com.au') { + $au_registrant_info = [ + 'policy_reason' => $extra['policy_reason'], + 'registrant_id_type' => $extra['registrant_id_type'], + 'registrant_id' => $extra['registrant_id'], + 'registrant_name' => $extra['registrant_name'], + 'eligibility_id_type' => $extra['eligibility_id_type'], + 'eligibility_id' => $extra['eligibility_id'], + 'eligibility_name' => $extra['eligibility_name'], + 'eligibility_type' => $extra['eligibility_type'] + ]; + $callArray['data']['tld_data']['au_registrant_info'] = $au_registrant_info; + } // .asia Domains if ($serviceTld == '.asia') { $callArray['data']['tld_data']['cedinfo'] = [ From 7f5d1041074312b880d7cb4b36f6ab361f7cb6fa Mon Sep 17 00:00:00 2001 From: Ganesh Date: Thu, 19 Sep 2019 11:30:56 -0400 Subject: [PATCH 3/3] Correcting 1.99 webhosting check --- src/Plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Plugin.php b/src/Plugin.php index 5e436e3..05cba93 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -233,7 +233,7 @@ function_requirements('class.OpenSRS'); if ($db->Record['website_status'] == 'active') $website_active = true; } - if ($website_active === true) { + if ($website_active == false) { dialog('Failed', 'Kindly make payment of website '.$db->Record['website_id'].' you ordered along with this domain.'); myadmin_log('opensrs', 'info', "Customer trying to register domain without paying webhosting order {$db->Record['website_id']}", __LINE__, __FILE__, self::$module, $serviceClass->getId()); return false;