L
Levis
Misafir
Çalışmıyor neden acaba ?
Kod:
<?php
$serverlist=array("whois.crsnic.net","whois.nic.tr");
$extlist=array( "com",
"net",
"org",
"com.tr" ,
"web.tr" ,
"gen.tr" ,
"org.tr",
"gov.tr",
"bel.tr",
"biz.tr",
"info.tr"
);
reset($extlist);
for($ii=0; $ii<11; $ii++) {
if($extlist[$ii]==$ext) {
$selected="selected";
}
$html_selectcombobox.="<OPTION $selected>$extlist[$ii]</OPTION>\n";
unset($selected);
}
if( strstr($ext,".tr") ) {
$useserver=$serverlist[1];
}else {
$useserver=$serverlist[0];
}
if($dom) {
if(($ns = fsockopen($useserver,43)) == false){
$errormsg = "Cannot connect to <b><i>".$useserver."</i></b>";
echo $errormsg;
return -1;
}
fputs($ns,"$dom.$ext \n");
while(!feof($ns))
$rawoutput .= fgets($ns,128);
fclose($ns);
//$linebyline=explode("\n",$rawoutput);
if(stristr($rawoutput,"No match")) {
if($showwhois) {
$message = "<PRE>$rawoutput</PRE>";
}else {
$message = "Bu alan adi sahipsizdir ve almaya uygundur. <A HREF="nictr.php?showwhois=1&dom=$dom&ext=$ext">whois bilgilerini görmek için tiklayiniz</A>.";
}
}else {
if(!$showwhois) {
$message = "Bu alan adi doludur. <A HREF="nictr.php?showwhois=1&dom=$dom&ext=$ext">Sahibini ve bilgilerini görmek için tiklayiniz</A>.";
}else {
$message = "<PRE>$rawoutput</PRE>";
}
}
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Keywords" CONTENT="nic,nic.tr,domain,alan adi">
<META NAME="Description" CONTENT="com net org com.tr alan adlari">
</HEAD>
<BODY>
<FORM METHOD=POST ACTION="nictr.php">
<INPUT TYPE="text" NAME="dom" size=15 value="<?=$dom?>"> <B>.</B>
<SELECT NAME="ext">
<? echo $html_selectcombobox; ?>
</SELECT>
<INPUT TYPE="submit">
</FORM>
<A HREF="nictr.php">refresh</A>
<P>
<?
echo $message;
?>
</P>
</BODY>
</HTML>