Ver Mensaje Individual
  #2 (permalink)  
Antiguo 22/08/2005, 14:34
Avatar de yuguilley
yuguilley
 
Fecha de Ingreso: febrero-2004
Ubicación: Montenegro Quindío
Mensajes: 108
Antigüedad: 20 años, 2 meses
Puntos: 0
Ensaya este


<form name="DomainForm" method="get" action="index.php">
<div align="left">
www.
<input name="domain" type="text" class="search-buttom" value="<?php print($domain);?>" maxlength="63">
<select name="domext" size="1">
<?php
for ($index=0;$index<count($dtd);$index++)
{
$dt=strtok($dtd[$index],",");
print("<option ");
if ($dt==$domext)
{
print("selected ");
}
print("value=\"$dt\">$dt</option>");
}
?>
<?php
if (($domain!="") && ($DoWhois==""))
{
$Reg="*"; // Putting a * in $Reg flags to whoisphp not too bother getting full whois data just availablity.
// With some registry databases this can speed up the request. (optional)
$i=whoisphp($domain,$domext,$Reg);
if ($i==4)
{
print("<font face=\"Arial\">Sorry but you are not allowed access to this page</font>");
}
if ($i==5)
{
print("<font face=\"Arial\">Could not contact registry for $domext domains</font>");
}
if ($i==0)
{
print("<font face=\"Arial\">$domain$domext <strong>is available</strong> for registration</font>");
}
if ($i==6)
{
print("<font face=\"Arial\">$domain$domext is available for registration at a premium cost of $".$Reg[count($Reg)-1]."</font>");
}
if ($i==1)
{
print("<font face=\"Arial\">$domain$domext is already <strong>registered</strong>");
}
if ($i==2)
{
print("<font face=\"Arial\">Domain extension $domext not recognised</font>");
}
if ($i==3)
{
print("<font face=\"Arial\">$domain$domext is not a valid domain name</font>");
}
}

if (($domain!="") && ($DoWhois=="1"))
{
$i=whoisphp($domain,$domext,$Reg);
if ($i==4)
{
print("<font face=\"Arial\">Sorry but you are not allowed access to this page</font>");
}
if ($i==5)
{
print("<font face=\"Arial\">Could not contact registry for $domext domains</font>");
}
if (($i==0) || ($i==1))
{
print("<font face=\"Arial\">Registration details for $domain$domext<BR><BR></font>");
print("-----------------------------------------------------------------<BR>");
for ($k=0;$k<count($Reg);$k++)
{
print ("$Reg[$k]<BR>");
}
print("-----------------------------------------------------------------<BR>");
}
if ($i==2)
{
print("<font face=\"Arial\">Domain extension $domext not recognised</font>");
}
if ($i==3)
{
print("<font face=\"Arial\">$domain$domext is not a valid domain name</font>");
}
}
?>