Jump to content

Setting transfers as 'Active' once they transfer?


optize

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated