optize Posted October 17, 2009 Share Posted October 17, 2009 Is it possible to have the eNom sync script (that syncs up dates) also set the domain as Active? When people transfer domains, we don't always go back and set them as 'Active' it would be better if the script could detect it's now with enom and update the status automatically. 0 Quote Link to comment Share on other sites More sharing options...
optize Posted October 17, 2009 Author Share Posted October 17, 2009 Meh, I just decided to make one myself, wonder if it works. dbconnect info goes here $sql = "SELECT * FROM tbldomains WHERE status='Pending Transfer' AND expirydate!='0000-00-00'"; $result = mysql_query($sql) or die(mysql_error()); $num = mysql_num_rows($result); if($num != 0) { while($row = mysql_fetch_array($result)) { print("$row[domain] is now active, setting status accordingly.\n"); mysql_query("UPDATE tbldomains SET status='Active' WHERE id='$row[id]'")or die(mysql_error()); } } Screwed up formatting, but you get the idea. 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted October 17, 2009 Share Posted October 17, 2009 It needs a bit more that that I'm affraid. I have just done an enhanced enom and distributeit domain snyc that is free but it is only available to current clients. If you already have an account, login and feel free to download it from the downloads section. 0 Quote Link to comment Share on other sites More sharing options...
SiteSeal-Developer Posted October 17, 2009 Share Posted October 17, 2009 this is in the wrong thread 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.