Please select the domain name that you wish to search for from the above form, (don't include www!) then click the search buttonClick Here For Registration Or Domain Information... \n");
}
/* If they are searching, decide which whois server to use, and remove the crap from the reply... */
else {
PRINT (" Click Here For Registration Or Domain Information... \n");
if ($tld == "co.uk") {
$whois = "whois.nic.uk";
}
elseif ($tld == "org.uk") {
$whois = "whois.nic.uk";
}
elseif ($tld == "net.uk") {
$whois = "whois.nic.uk'";
}
elseif ($tld == "ltd.uk") {
$whois = "whois.nic.uk";
}
elseif ($tld == "plc.uk") {
$whois = "whois.nic.uk";
}
elseif ($tld == "com") {
$whois = "whois.networksolutions.com";
}
elseif ($tld == "org") {
$whois = "whois.networksolutions.com";
}
elseif ($tld == "net") {
$whois = "whois.networksolutions.com";
}
elseif ($tld == "info") {
$whois = "whois.networksolutions.com";
}
elseif ($tld == "biz") {
$whois = "whois.biz";
}
else {
$whois = "rs.internic.net";
}
PRINT (" ");
/* Do the whois */
system ("whois $domain.$tld@$whois");
$today = date("d/m/Y");
$now = date("H:i");
PRINT (" \n");
}
?>
|