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

Add the ability to sync transfers

Fixed the code to allow transfes to be sync'd properly.
-Thanks Jeremy Green

Change-Id: I82db7a2f2d61380c9998d71441bfffe7d857eaba
parent 310a5a7b
No related branches found
No related tags found
No related merge requests found
......@@ -66,7 +66,7 @@ if (PEAR::isError($client = _cozaepp_Client())) {
# Pull list of domains which are registered using this module
$queryresult = mysql_query("SELECT domain FROM tbldomains WHERE registrar = 'cozaepp' AND status <> 'Pending Transfer'");
$queryresult = mysql_query("SELECT domain FROM tbldomains WHERE registrar = 'cozaepp'");
while($data = mysql_fetch_array($queryresult)) {
$domains[] = trim(strtolower($data['domain']));
}
......@@ -110,7 +110,7 @@ foreach($domains as $domain) {
# This is the template we going to use below for our updates
$querytempalte = "UPDATE tbldomains SET status = %s, registrationdate = %s, expirydate = %s, nextduedate = %s, WHERE domain = %s";
$querytempalte = "UPDATE tbldomains SET status = %s, registrationdate = %s, expirydate = %s, nextduedate = %s WHERE domain = %s";
# Check status and update
if ($statusres == "ok") {
......
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