AUTHOR
This script is written by and copyright
Andrew Colins Kissa
www: www.topdog-software.com
email: webmaster@topdog-software.com

LICENCE
THIS CODE HAS NO WARRANTY AND IS DISTRIBUTED UNDER THE GNU LICENCE I CANNOT BE
HELD LIABLE FOR ANY LOSSES THAT YOU MAY INCURE BY EITHER DIRECTLY OR OTHERWISE
BY USING THIS SCRIPT.

REQUIREMENTS
1.PHP with socket functions enabled

VERSION 2
THIS IS THE TOTALLY REWRITTEN VERSION WHICH HAS BEEN UPGRADED TO INCLUDE
1.SUPPORT FOR THE NEW REFERAL WHOIS SYSTEM.
2.ACCESS CONTROL TO AVOID BANDWIDTH THEFT
3.CHECKS FOR EXISTENCE OF TEMPLATE
4.RETURN OF FULL WHOIS DETAILS
5.REMOVAL OF ALL INTERPRETAIONS OF MATTS WHOIS
6.RENAMED TO TOPDOG DOMAIN CHECK AND WHOIS SCRIPT FROM UGANDA DOMAIN CHECK AND WHOIS
THIS TO REFLECT OVERWHELMING INTREST FROM USERS OF INTERNATIONAL TLD's

WEBSITE ADDRESS
VISIT US @ WWW.TOPDOG-SOFTWARE.COM FOR MORE FREE SCRIPTS AND CUSTOM CODING IN PHP
AND PERL WHILE THERE VISIT OUR FORUM AND TELL US OF HOW WHE CAN MAKE THIS SCRIPT
BETTER OR GIVE IDEAS OF NEW SCRIPTS YOU WOULD LIKE TO SEE ON OUR SITE (feedback)

SUPPORT
SHOULD YOU REQUIRE SUPPORT FOR THIS SCRIPT PLEASE TRY CHECKING OR POSTING YOUR
QUERIES ON THE OUR SUPPORT FORUM @ www.topdog-software.com BEFORE EMAILING
ME BECAUSE I RECIEVE MANY EMAILS FROM DIFFERENT USERS ASKING SIMILAR QUESTIONS
SO IF YOU POST IT ON THE BOARD AND I ANSWER IT OTHER USERS CAN USE THAT TO SOLVE
THEIR QUERIES IN THE FUTURE. By the way if you dont know anything about scripts
dont dispair we can setup custom scripts for you at a minimal fee.

INSTALLATION
Instalation is fairlys simple. just follow the following steps

1. Create a webpage template where you want the results of the whois query to appear

2. Place the following tag <!--DOMAIN RESULTS--> where you want the results to be place in the      above webpage template you created.
3. Open the script topdog_whois.php in your text editor and edit the following variables

   $template 		set this to the name of the template file you created in step 1
   $registerlink 	set this to the page a user is taken to if the wish to purchase the 			domain please note the domain name will be passed to this page as a
			variable $domain using the get method
   $restrict		set this to 1 if you want the script to be called only from your domain
			set this to 0 if you dont
   $REFERERS 		set this to the domain from which the script can be called for example
			topdog-software.com,www.topdog-software.com DONOT include the http:// 			part
4. Place the following form in the page from which you want users to check the script you can
   customise it by removing the options you dont like but dont take out the hidden,domain and ext    field with out these the script will not work
    
    <form method="post" action="topdog_whois.php">
    <input type="text" name="domain">
    <select size="1" name="ext">
    <option selected value="com">.com</option>
    <option value="net">.net</option>
    <option value="org">.org</option>
    <option value="co.ug">.co.ug</option>
    <option value="ac.ug">.ac.ug</option>
    <option value="or.ug">.or.ug</option>
    <option value="sc.ug">.sc.ug</option>
    <option value="ne.ug">.ne.ug</option>
    <option value="co.za">.co.za</option>
    <option value="co.uk">.co.uk</option>
    <option value="info">.info</option>
    <option value="biz">.biz</option>
    </select>
    <input type="hidden" name="option" value="check">
    <input type="submit" value="check it">
    </form>
5. Upload all the pages to your site then point to the page in step 4 and you are ready to go
   If you want to call the script using the get method that is using a URL the use the following

	a. topdog_whois.php?domain=name_u_are_checking&ext=theextention&option=check 
	   - to check availabilty
 	b. topdog_whois.php?domain=name_u_are_checking&ext=theextention&option=whois
	   - to get the whois details of who has registered the name

6. Good luck for support post your queries on our forum www.topdog-software.com/

   