Domänsök

include "cwhois.php";
// $allowed should be a list of authorised callers seperated by commas, If you don't care leave it blank
// Be careful if you call this in a new browser window as the referer may be blank.
$allowed="";
?>

// The following line gets the url variables and is used by the demo.
if (!empty($_GET)) while(list($name, $value) = each($_GET)) $$name = $value;
?>


if ($domain!="")
{
$i=cWhois($domain,$domext,$Reg);
if ($i==4)
{
print("Sorry but you are not allowed access to this page”);
}
if ($i==5)
{
print(”Could not contact registry for $domext domains”);
}
if (($i==0) || ($i==1) || ($i==6))
{
print(”Registration details for $domain$domext

”);
print(”—————————————————————–
”);
for ($k=0;$k {
print ("$Reg[$k]
”);
}
print(”—————————————————————–
”);
}
if ($i==2)
{
print(”Domain extension $domext not recognised”);
}
if ($i==3)
{
print(”$domain$domext is not a valid domain name”);
}
}

?>