diff --git a/modules/registrars/cozaepp/cozaeppsync.php b/modules/registrars/cozaepp/cozaeppsync.php index 42f25f17e5a229e30c1489e51c10b2bf7dfb57c9..20a999dd4f5094e53b84371853f0d608ad225d84 100644 --- a/modules/registrars/cozaepp/cozaeppsync.php +++ b/modules/registrars/cozaepp/cozaeppsync.php @@ -112,43 +112,11 @@ try { continue; } - # Checking for transfer status if transfer in progress - $output = $client->request($xml = ' -<epp:epp xmlns:epp="urn:ietf:params:xml:ns:epp-1.0" xmlns:domain="urn:ietf:params:xml:ns:domain-1.0"> - <epp:command> - <epp:transfer op="query"> - <domain:transfer> - <domain:name>'.$domain.'</domain:name> - </domain:transfer> - </epp:transfer> - </epp:command> -</epp:epp>'); - - $transferstatus = ''; - - # parsing for transfer status - $doc= new DOMDocument(); - $doc->loadXML($output); - $coderes = $doc->getElementsByTagName('result')->item(0)->getAttribute('code'); - if($coderes == '1000') { - if( $doc->getElementsByTagName('trnData')) { - if($doc->getElementsByTagName('trnData')->item(0)->getElementsByTagName('trStatus')->item(0)) { - $transferstatus = $doc->getElementsByTagName('trnData')->item(0)->getElementsByTagName('trStatus')->item(0)->nodeValue; - } else { - $transferstatus = "Domain $domain not being transfered!"; - continue; - } - } - } else { - echo "Domain check on $domain not successful: "._cozaepp_message($coderes)." (File a bug report here: http://devlabs.linuxassist.net/projects/whmcs-coza-epp/issues/new)"; - continue; - } - # This is the template we going to use below for our updates $querytemplate = "UPDATE tbldomains SET status = '%s', registrationdate = '%s', expirydate = '%s', nextduedate = '%s' WHERE domain = '%s'"; # Check status and update - if ($statusres == "ok" || $transferstatus == "clientApproved") { + if ($statusres == "ok") { mysql_query(sprintf($querytemplate,"Active", mysql_real_escape_string($createdate), mysql_real_escape_string($nextduedate), @@ -157,14 +125,14 @@ try { )); echo "Updated $domain expiry to $nextduedate\n"; - } elseif ($statusres == "serverHold" || $transferstatus == "pending") { - mysql_query(sprintf($querytemplate,"Pending", + } elseif ($statusres == "serverHold") { + mysql_query(sprintf($querytemplate,"Active", mysql_real_escape_string($createdate), mysql_real_escape_string($nextduedate), mysql_real_escape_string($nextduedate), mysql_real_escape_string($domain) )); - echo "Domain $domain is PENDING (Registration: $createdate, Expiry: $nextduedate)\n"; + echo "Updated $domain expiry to $nextduedate\n"; } elseif ($statusres == "expired" || $statusres == "pendingDelete" || $statusres == "inactive") { mysql_query(sprintf($querytemplate,"Expired",