.......

 

 







'; } // Function to display an unavailable domain with additional links function dispun($what,$where) { echo ''; } function startborder() { echo '

 

'; if ($reglink) { echo ''.LINK_REGISTER_TEXT.''; } else echo ' '; echo ' '.$what.' 
  '.$what.' '.LINK_TAKEN_DETAILS.' '.LINK_TAKEN_GOTO.'
'; } function endborder() { echo '
'; } function disperror($text) { startborder(); echo '
'.$text.'
'; endborder(); } function main() { global $type, $ddomain, $com_include, $org_include, $uk_include, $pl_include, $info_include, $biz_include, $us_include; echo '
'; startborder(); echo '
'.MAIN_COMMAND.'
  '; if ($com_include) { echo ' .com, .net
'; } if ($org_include) { echo ' .org
'; } if ($uk_include) { echo ' .co.uk, .org.uk, .me.uk
'; } if ($pl_include) { echo ' pl com.pl
'; } if ($info_include) { echo ' .info
'; } if ($biz_include) { echo ' .biz
'; } if ($us_include) { echo ' .us
'; } if ($com_include or $org_include or $uk_include or $pl_include or $info_include or $biz_include or $us_include) { echo ' '.ALL_TEXT.''; } echo '
'; endborder(); } function pageheader() { echo ' '.PAGE_TITLE_META.' '; } function pagefooter() { echo ''; } if ($action == "details") { pageheader(); echo '
';
	$fp = fsockopen($server,43);
	fputs($fp, "$ddomain\r\n");
	while(!feof($fp))
	{
		echo fgets($fp,128);
	}
	fclose($fp);
	echo '
'; echo '

'; pagefooter(); exit; } elseif ($action == "checkdom") { if (WAIT_LAYER_ENABLED) { echo ' '; echo ' '; echo '
'.WAIT_TITLE.'

'.WAIT_MESSAGE.' '; } // Check the name for bad characters if(strlen($ddomain) < 3) { pageheader(); disperror(ERROR_TOO_SHORT); main(); pagefooter(); exit; } if(strlen($ddomain) > 63) { pageheader(); disperror(ERROR_TOO_LONG); main(); pagefooter(); exit; } if(ereg("^-|-$",$ddomain)) { pageheader(); disperror(ERROR_HYPHEN); main(); pagefooter(); exit; } if(!ereg("([a-z]|[A-Z]|[0-9]|-){".strlen($ddomain)."}",$ddomain)) { pageheader(); disperror(ERROR_CHARACTERS); main(); pagefooter(); exit; } pageheader(); startborder(); echo ' '; if ( ($type == "all" or $type == "com") and $com_include ) { $com_array = array($ddomain.".com",$ddomain.".net"); $com_count = count($com_array); $i=0; for ($i=0;$i<$com_count;$i++) { $domname = $com_array[$i]; $ns = fsockopen($com_server,43); fputs($ns,"$domname\r\n"); $result = ''; while(!feof($ns)) $result .= fgets($ns,128); fclose($ns); if (eregi($com_nomatch,$result)) { dispav($domname); } else { dispun($domname,$com_server); } } echo ''; } if ( ($type == "all" or $type == "org") and $org_include ) { $org_array = array($ddomain.".org"); $org_count = count($org_array); $i=0; for ($i=0;$i<$org_count;$i++) { $domname = $org_array[$i]; $ns = fsockopen($org_server,43); fputs($ns,"$domname\r\n"); $result = ''; while(!feof($ns)) $result .= fgets($ns,128); fclose($ns); if (eregi($org_nomatch,$result)) { dispav($domname); } else { dispun($domname,$org_server); } } echo ''; } if ( ($type == "all" or $type == "uk") and $uk_include ) { $uk_array = array($ddomain.".co.uk",$ddomain.".org.uk",$ddomain.".me.uk"); $uk_count = count($uk_array); $i=0; for ($i=0;$i<$uk_count;$i++) { $domname = $uk_array[$i]; $ns = fsockopen($uk_server,43); fputs($ns,"$domname\r\n"); $result = ''; while(!feof($ns)) $result .= fgets($ns,128); fclose($ns); if (eregi($uk_nomatch,$result)) { dispav($domname); } else { dispun($domname,$uk_server); } } echo ''; } if ( ($type == "all" or $type == "pl") and $pl_include ) { $pl_array = array($ddomain.".pl",$ddomain.".com.pl"); $pl_count = count($pl_array); $i=0; for ($i=0;$i<$pl_count;$i++) { $domname = $pl_array[$i]; $ns = fsockopen($pl_server,43); fputs($ns,"$domname\r\n"); $result = ''; while(!feof($ns)) $result .= fgets($ns,128); fclose($ns); if (eregi($pl_nomatch,$result)) { dispav($domname); } else { dispun($domname,$pl_server); } } echo ''; } if ( ($type == "all" or $type == "info") and $info_include ) { $info_array = array($ddomain.".info"); $info_count = count($info_array); $i=0; for ($i=0;$i<$info_count;$i++) { $domname = $info_array[$i]; $ns = fsockopen($info_server,43); fputs($ns,"$domname\r\n"); $result = ''; while(!feof($ns)) $result .= fgets($ns,128); fclose($ns); if (eregi($info_nomatch,$result)) { dispav($domname); } else { dispun($domname,$info_server); } } echo ''; } if ( ($type == "all" or $type == "biz") and $biz_include ) { $biz_array = array($ddomain.".biz"); $biz_count = count($biz_array); $i=0; for ($i=0;$i<$biz_count;$i++) { $domname = $biz_array[$i]; $ns = fsockopen($biz_server,43); fputs($ns,"$domname\r\n"); $result = ''; while(!feof($ns)) $result .= fgets($ns,128); fclose($ns); if (eregi($biz_nomatch,$result)) { dispav($domname); } else { dispun($domname,$biz_server); } } echo ''; } if (($type == "all" or $type == "us") and $us_include ) { $us_array = array($ddomain.".us"); $us_count = count($us_array); $i=0; for ($i=0;$i<$us_count;$i++) { $domname = $us_array[$i]; $ns = fsockopen($us_server,43); fputs($ns,"$domname\r\n"); $result = ''; while(!feof($ns)) $result .= fgets($ns,128); fclose($ns); if (eregi($us_nomatch,$result)) { dispav($domname); } else { dispun($domname,$us_server); } } echo ''; } echo '
  '.AVAILABLE_TEXT.' '.NOT_AVAILABLE_TEXT.'    
 
 
 
 
 
 
 
'; endborder(); if (WAIT_LAYER_ENABLED) { echo ''; } // if logging enabled write info to the file if($wantlog) { $remote_addr = $REMOTE_ADDR; $today = date("d-m-y H:i", time()); if (file_exists($logfile) and is_writeable($logfile)) { $fp = fopen($logfile,"a+"); $infolog = "Date: $today | IP: $remote_addr | $ddomain\n"; fputs($fp, $infolog); fclose($fp); } } main(); pagefooter(); } else { pageheader(); main(); pagefooter(); } ?>

 

 

 

 

 

        For AS Clients Only
  ......                               © 2002-2003 Ambient Solutions Ltd.................D.| Partners | Partners | Jobs at AS | Privacy Statement | Terms & Conditions | AS Clients