Skip to content
Snippets Groups Projects
Commit 7d615d41 authored by Nigel Kukard's avatar Nigel Kukard
Browse files

Reworked the domain status updates

* Do not set Pending on "serverHold"
* Set Expired on "expired", "pendingDelete" and "inactive" statuses

Change-Id: I3c231fc0e1d6c1ffaca343b74da01331adbb3dac
parent f5348055
No related branches found
No related tags found
No related merge requests found
......@@ -1321,7 +1321,7 @@ function cozaepp_Sync($params) {
} elseif ($statusres == "serverHold") {
} elseif ($statusres == "expired") {
} elseif ($statusres == "expired" || $statusres == "pendingDelete" || $statusres == "inactive") {
$values['expired'] = true;
} else {
......
......@@ -117,15 +117,8 @@ try {
echo "Updated $domain expiry to $nextduedate\n";
} elseif ($statusres == "serverHold") {
mysql_query(sprintf($querytemplate,"Pending",
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";
} elseif ($statusres == "expired") {
} elseif ($statusres == "expired" || $statusres == "pendingDelete" || $statusres == "inactive") {
mysql_query(sprintf($querytemplate,"Expired",
mysql_real_escape_string($createdate),
mysql_real_escape_string($nextduedate),
......@@ -133,6 +126,7 @@ try {
mysql_real_escape_string($domain)
));
echo "Domain $domain is EXPIRED (Registration: $createdate, Expiry: $nextduedate)\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";
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment