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

Merge branch 'serverholdtoactive' into 'master'

Serverholdtoactive
parents 536a74fb a68fe778
No related branches found
No related tags found
No related merge requests found
...@@ -102,7 +102,6 @@ try { ...@@ -102,7 +102,6 @@ try {
continue; continue;
} }
# This is the template we going to use below for our updates # 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'"; $querytemplate = "UPDATE tbldomains SET status = '%s', registrationdate = '%s', expirydate = '%s', nextduedate = '%s' WHERE domain = '%s'";
...@@ -117,6 +116,13 @@ try { ...@@ -117,6 +116,13 @@ try {
echo "Updated $domain expiry to $nextduedate\n"; echo "Updated $domain expiry to $nextduedate\n";
} elseif ($statusres == "serverHold") { } 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") { } elseif ($statusres == "expired" || $statusres == "pendingDelete" || $statusres == "inactive") {
mysql_query(sprintf($querytemplate,"Expired", mysql_query(sprintf($querytemplate,"Expired",
......
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