From cc39d76422bc3d114f1d05b3e781c54c8a6adc5d Mon Sep 17 00:00:00 2001 From: Charl Mert <cmert@lbsd.net> Date: Fri, 4 Apr 2014 12:25:50 +0200 Subject: [PATCH] skipping domains that do not exist --- modules/registrars/cozaepp/cozaeppsync.php | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/modules/registrars/cozaepp/cozaeppsync.php b/modules/registrars/cozaepp/cozaeppsync.php index eed951d..26e401a 100644 --- a/modules/registrars/cozaepp/cozaeppsync.php +++ b/modules/registrars/cozaepp/cozaeppsync.php @@ -111,6 +111,12 @@ try { # Domain does not exist $status = "Domain $domain does not exist, setting state to cancelled!"; $statusres = 'cancelled'; + + # Checking that Domain sync option is enabled + if (!empty($row) && !$row['value'] == 'on') { + 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; @@ -179,15 +185,6 @@ try { )); echo "Domain $domain is EXPIRED (Registration: $createdate, Expiry: $nextduedate)\n"; - } elseif ($statusres == "cancelled") { - mysql_query(sprintf($querytemplate,"Cancelled", - mysql_real_escape_string($createdate), - mysql_real_escape_string($nextduedate), - mysql_real_escape_string($nextduedate), - mysql_real_escape_string($domain) - )); - echo "Domain $domain does not exist\n"; - } else { echo "Domain $domain has unknown status '$statusres' (File a bug report here: http://devlabs.linuxassist.net/projects/whmcs-coza-epp/issues/new)\n"; } -- GitLab