<%
On Error Resume Next
Server.ScriptTimeOut=9999999
Function getHTTPPage(Path)
t = GetBody(Path)
getHTTPPage=BytesToBstr(t,"GB2312")
End function
Function GetBody(url)
on error resume next
Set RetrIEval = CreateObject("Microsoft.XMLHTTP")
With RetrIEval
.Open "Get", url, False, "", ""
.Send
GetBody = .ResponseBody
End With
Set RetrIEval = Nothing
End Function
Function BytesToBstr(body,Cset)
dim obJStream
set obJStream = Server.CreateObject("adodb.stream")
obJStream.Type = 1
obJStream.Mode =3
obJStream.Open
obJStream.Write body
obJStream.Position = 0
obJStream.Type = 2
obJStream.Charset = Cset
BytesToBstr = obJStream.ReadText
obJStream.Close
set obJStream = nothing
End Function
%>
<%
if request("domain")<>"" then
'url="http://panda.www.net.cn/cgi-bin/Whois.CGI?domain="&request("domain")&"&"&request("root")&"=yes&work=whois&referer=http://panda.www.Net.cn/cgi-bin/Check.CGI?domain="&request("domain")
url="http://panda.www.Net.cn/cgi-bin/Check.CGI?domain="&request("domain")&"&ext="&request("root")
wstr=getHTTPPage(url)
'www.knowsky.com
'response.write Instr (wstr,"可以注冊")
if instr(lcase(wstr),"已被注冊的域名")>0 then
body="域名已經被注冊"
elseif instr(lcase(wstr),"未被注冊的域名")>0 then
body="域名未被注冊"
else
body="網絡延遲,請重新查找"
end if
end if
%>
<table width="40%" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#999999">
<tr>
<td height="26" bgcolor="efefef">域名查詢系統:<% if request("domain")>"" then response.Write(request("domain")&"."&request("root")&body) end if%></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><form name="form1" method="post" action=""><table width="100%" border="0" cellspacing="1" cellpadding="1">
<tr>
<td height="36"> <div align="center">www.
<input type="text" name="domain">
<select name="root" id="select">
<option value="cn" selected>.cn</option>
<option value="com">.com</option>
<option value="net">.Net</option>
<option value="org">.org</option>
<option value="com.cn">.com.cn</option>
<option value="net.cn">.Net.cn</option>
<option value="gov.cn">.gov.cn</option>
</select>
</div></td>
</tr>
<tr>
<td height="35">
<div align="center">
<input type="submit" name="Submit" value=" 查 詢 ">
</div>
<div align="center"></div></td>
</tr>
</table></form></td>
</tr>
</table>
<p align="center"> </p>
<table width="40%" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#999999">
<tr>
<td height="42" bgcolor="#FFFFFF">
<FORM name=search_form action='http://search.sohu.com/web' method=get target=_blank>
<div align="center">
<input type="hidden" name="pid" value="hljec">
<input name="query" type="text" style="font-size:14px;width:150" value="好域名">
<input type="submit" name="ss" value="查看" onclick=document.search_form.action='http://search.sohu.com/web' style="font-size:14px;width=40;height=20">
</div>
</FORM></td>
</tr>
</table>