Boss Posted September 23, 2007 Share Posted September 23, 2007 ive tried it still teh same sorry but what have you tried? 0 Quote Link to comment Share on other sites More sharing options...
sisgroup Posted September 23, 2007 Share Posted September 23, 2007 putting my own domain name in there the .uk.to prefix is a free sub domain name its part of a public database see http://www.uk.to and like i said ive also tried my own personal domain name and that don't work ether. I have PHP and development knoleage and have been in the field since 1997. This script just don't seam to work, Is their a working demo of this i can see online to see where i am going wrong if any at all. 0 Quote Link to comment Share on other sites More sharing options...
Boss Posted September 23, 2007 Share Posted September 23, 2007 putting my own domain name in there the .uk.to prefix is a free sub domain name its part of a public database see http://www.uk.to and like i said ive also tried my own personal domain name and that don't work ether. I have PHP and development knoleage and have been in the field since 1997. This script just don't seam to work, Is their a working demo of this i can see online to see where i am going wrong if any at all. I don't know about any specific demo sites that you could look that would help you. Your welcome to have a go on my site if you wish however please remember it is a working site/program. Will PM you the details. Could you please PM your 2 files subwhois.php and whoisservers.php So I can see if you have missed something in them. please leave them original. 0 Quote Link to comment Share on other sites More sharing options...
sisgroup Posted September 23, 2007 Share Posted September 23, 2007 Sure what is u site mate? whats the url to it? 0 Quote Link to comment Share on other sites More sharing options...
Boss Posted September 23, 2007 Share Posted September 23, 2007 Sure what is u site mate? whats the url to it? PM'ed 0 Quote Link to comment Share on other sites More sharing options...
sisgroup Posted September 23, 2007 Share Posted September 23, 2007 Im about to PM you back with my files u requested 0 Quote Link to comment Share on other sites More sharing options...
Boss Posted September 23, 2007 Share Posted September 23, 2007 An Update for anyone using this script. I found that the Registration date and Status, where Not displaying anything. Fixed in this code below. (All credit should go to original author.) <?php // reserve your subdomains registered outside whmcs $mysubs = array ("whois.brasiweb.com", "forum.brasiweb.com", "central.brsaiweb.com", "desk.brasiweb.com"); $domain = strtolower($_REQUEST[domain]); include ("configuration.php"); @mysql_connect($db_host,$db_username,$db_password)or die("An error has occured:".mysql_error()); mysql_select_db($db_name)or die("An error has occured:".mysql_error()); $query_domain = mysql_query("SELECT * FROM tbldomains WHERE domain='$domain'")or die(mysql_error()); $query_domain_results = mysql_fetch_assoc($query_domain); ?> <html> <head><title>Search results</title></head> <body> <?php if(mysql_num_rows($query_domain)!='1') { if (in_array($domain, $mysubs)) { print ("Error: $domain is a reserved subdomain"); } else { print('This domain is available'); } } else { $query_data = mysql_query("SELECT * FROM tblclients WHERE id='$query_domain_results[userid]'"); $query_data_results = mysql_fetch_assoc($query_data); print ("Domain: $domain \r\nRegistrant: $query_data_results[firstname] $query_data_results[lastname] \r\nE-mail: "); $email = str_replace("@","[at]",$query_data_results[email]); print $email; $query_data = mysql_query("SELECT * FROM tbldomains WHERE id='$query_domain_results[userid]'"); $query_data_results = mysql_fetch_assoc($query_data); $registrationdate = explode("-", $query_domain_results[registrationdate]); $reg_date = $registrationdate[2]."/".$registrationdate[1]."/".$registrationdate[0]; print(" \r\nRegistered: $reg_date \r\nStatus: $query_data_results[status]"); } ?> 0 Quote Link to comment Share on other sites More sharing options...
sisgroup Posted September 23, 2007 Share Posted September 23, 2007 I dont get why i carnt get this to work 0 Quote Link to comment Share on other sites More sharing options...
sisgroup Posted October 13, 2007 Share Posted October 13, 2007 Ok for this script it says the domain is registered once the sub domain is the the users WHMCS but for .uk.to and .us.to sub domains this is useless as thier DNS is hosted in the public domain and its quite possible that the sub domain is already registered. How would you get it to check that in realtime? 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted October 13, 2007 Share Posted October 13, 2007 Ok for this script it says the domain is registered once the sub domain is the the users WHMCS but for .uk.to and .us.to sub domains this is useless as thier DNS is hosted in the public domain and its quite possible that the sub domain is already registered. How would you get it to check that in realtime? Same as you do for getting it to check .com, .co.uk , .randomotherdomain 0 Quote Link to comment Share on other sites More sharing options...
sisgroup Posted October 13, 2007 Share Posted October 13, 2007 Read the post mate, i said it checks to see if the sub domain is registered to as client in WHMCS it dont actualy check the sub domain in realtime using whois. What im trying to say is this mod is checking the WHMCS DB and not the DNS servers of the sub domain 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted October 14, 2007 Share Posted October 14, 2007 Read the post mate, i said it checks to see if the sub domain is registered to as client in WHMCS it dont actualy check the sub domain in realtime using whois. You *asked* what to for .uk.to and .us.to, and I *answered* with exactly what you do. So Read the post mate 0 Quote Link to comment Share on other sites More sharing options...
sisgroup Posted October 14, 2007 Share Posted October 14, 2007 I havent got time for this, i just need to know if there is a way for this mod to check the sub domain in realtime rarther than it checking for it existance in the WHMCS db 0 Quote Link to comment Share on other sites More sharing options...
Boss Posted October 14, 2007 Share Posted October 14, 2007 Ok for this script it says the domain is registered once the sub domain is the the users WHMCS but for .uk.to and .us.to sub domains this is useless as thier DNS is hosted in the public domain and its quite possible that the sub domain is already registered. How would you get it to check that in realtime? Sisgroup As I stated once before to you. Unless you own the domain you can't do this. (to my knowledge) Unless you can get access to the database that is already dishing out the subdomains, you would then enter a WHOIS entry into the whois.php file. If you do own the domain then you will know what subdomains are already in use. So you could reserve them, or if they are then your clients why would they not be in your database anyway or why would you not set them up in WHMCS and from there on the only way the subdomains can be registered is via WHMCS. Hence recording every subdomain in use. I'm afraid you have confused me somewhat. I also have to wonder if this domain is Not yours why are you bothering with it at all? Just my thoughts 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted October 14, 2007 Share Posted October 14, 2007 i just need to know if there is a way for this mod to check the sub domain in realtime rarther than it checking for it existance in the WHMCS db The "mod" is for checking subdomains *within* WHMCS. For checking external systems just use the standard whois lookup. 0 Quote Link to comment Share on other sites More sharing options...
martinezj Posted July 20, 2010 Share Posted July 20, 2010 works like a charm thank you 0 Quote Link to comment Share on other sites More sharing options...
dimitris Posted February 1, 2012 Share Posted February 1, 2012 Configuration > General Configuration > Order Form [x] Tick this box to prevent orders being placed for domains already in your system Why this option is not working ? How can i achieve that ?? Thanks 0 Quote Link to comment Share on other sites More sharing options...
ThaSniper Posted July 11, 2013 Share Posted July 11, 2013 Hello. I need some little help. This script is just what I need and I got it working, but its somewhat unusable. I add my ".domain.com" TLD but I must set a price to it (can't be zero), otherwise it won't be used on the domain search on the frontend neither it will show on the "order new services" form. This isn't right because I don't wish to charge for a subdomain, I want it to be free of charge. How can I do it? On the other hand, the frontend domain search box shows the phrase "eg. yourdomain.com" and doesn't provide a dropdown list of the available TLDs, and I want it to limit to the TLDs I have configured, because I'll only allow the registration of subdomains on my domains. This misleads the customers. How can I configure this? Thank you! 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.