 |
if(isSet($query)) {
include("main.whois");
$whois = new Whois($query);
$result = $whois->Lookup();
echo "".
"Results for $query:";
if(isSet($whois->Query["errstr"])) {
echo "
ERROR:".
" ".implode($whois->Query["errstr"]," ")."";
}
if ($whois->HACKS["dot_info_workaround"] && $whois->Query["tld"]=="info") {
if (ereg("NOT FOUND", implode("\n",$result["rawdata"]))) {
$available = 1;
}
}
if ($whois->HACKS["dot_biz_workaround"] && $whois->Query["tld"]=="biz") {
if (!ereg("Domain ID", implode("\n",$result["rawdata"]))) {
$available = 1;
}
}
if($output=="object") {
include("utils.whois");
$utils = new utils;
$utils->showObject($result);
} else {
if(empty($result["rawdata"])) {
$available=1;
}
if ($available && !isSet($whois->Query["errstr"])) {
if(!empty($result["rawdata"])) {
if ($whois->HACKS["dot_biz_workaround"]&&$whois->Query["tld"]=="biz"){
$newoutput = implode($result["rawdata"],"\n");
list($junk, $newoutput) =
split("abide by these terms.\n", $newoutput);
echo $newoutput;
} else {
//echo implode($result["rawdata"],"\n");
}
}
echo "";
echo " The domain, $query,".
" is available.".
"\n";
} else if (!isSet($whois->Query["errstr"])) {
echo "";
$domain=$query;
echo "
".
"The domain, $domain,".
" is NOT available. To see full whois output, ".
" please click here.";
echo " ";
?>
OR
Search For An Alternative Below:
}
}
}
?>
|
 |