From a68fe7783bde2c1815c25fb57394e5d145272c45 Mon Sep 17 00:00:00 2001 From: Charl Mert <cmert@lbsd.net> Date: Wed, 26 Mar 2014 15:46:28 +0200 Subject: [PATCH] setting status to "Active" for statusres of "serverHold" closes issue #4 --- modules/registrars/cozaepp/cozaeppsync.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/registrars/cozaepp/cozaeppsync.php b/modules/registrars/cozaepp/cozaeppsync.php index 7a98d01..e02daa1 100644 --- a/modules/registrars/cozaepp/cozaeppsync.php +++ b/modules/registrars/cozaepp/cozaeppsync.php @@ -102,7 +102,6 @@ try { 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'"; @@ -117,6 +116,13 @@ try { echo "Updated $domain expiry to $nextduedate\n"; } 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 "Updated $domain expiry to $nextduedate\n"; } elseif ($statusres == "expired" || $statusres == "pendingDelete" || $statusres == "inactive") { mysql_query(sprintf($querytemplate,"Expired", -- GitLab