|
发表于 2006-6-26 00:00:53
|
显示全部楼层
||</font> 分") Dim ArrayPr ArrayPr=Split(getContent,",")
Response.Write("<UL>") Response.Write("<li><a href=""http://"&domainName&""" target=""new""><font color=" ... t;&domainName&"</strong></font></a> 的Google PageRank值:<font color=""#FF0000""><strong>"&ArrayPr(0)&"</strong></font></li>")
Response.Write("<li><a href=""http://www."&domainName&""" target=""new""><font color=" ... uot;&domainName&"</font></strong></a> 的Google PageRank值:<font color=""#FF0000""><strong>"&ArrayPr(1)&"</strong></font>") Response.Write("</UL>") END IF %> </div> </fieldset>
<fieldset> <legend><strong>地区<->区号查询</strong></legend> <div> <div style="padding-left:23px;margin-bottom:8px;"> <% Dim zoneName zoneName = Trim(Request.Form("zoneName")) %> <form name="Zone2NumberForm" method="post" action="searcher.asp?sType=zone2number" onsubmit="return checkZone2NumberForm()"> 地 区 <strong>→</strong> 区 号:<input type="text" name="zoneName" value="<%=zoneName%>" onfocus="select()" /> <input type="submit" value="提 交" /> </form> </div> <% IF(sType = "zone2number" AND zoneName <> "")THEN Dim getNumber,ArrayNumber PostStr = "area=" & escape(zoneName) & "&action=area2zone" getContent=GetURL("http://www.ip138.com/post/search.asp",PostStr) getNumber = RegExpText(getContent,"<TR><TD class=tdc2>◎((.|\n)*?)</TD>") Response.Write("<UL>") IF(getNumber="")THEN Response.Write("<li><strong><font color=""#FF0000"">没有搜索到记录</font></strong></li>") ELSE ArrayNumber = split(getNumber,",") IF(isArray(ArrayNumber))THEN For i=0 TO UBOUND(ArrayNumber)-1 Response.Write("<li><strong><font color=""#008000"">"&Replace(ArrayNumber(i),",","")&"</font></strong></li>") Next ELSE Response.Write("<li><strong><font color=""#008000"">"&Replace(getNumber,",","")&"</font></strong></li>") END IF END IF Response.Write("</UL>") END IF
Dim zoneNumber zoneNumber = Trim(Request.Form("zoneNumber")) %> <div style="padding-left:23px;margin-bottom:8px;"> <form name="Number2ZoneForm" method="post" action="searcher.asp?sType=number2zone" onsubmit="return checkNumber2ZoneForm()"> 区 号 <strong>→</strong> 地 区:<input type="text" name="zoneNumber" value="<%=zoneNumber%>" onfocus="select()" /> <input type="submit" value="提 交" /> </form> </div> <% IF(sType = "number2zone" AND zoneNumber <> "")THEN Dim getZone,ArrayZone PostStr = "action=zone2area&zone="&zoneNumber getContent=GetURL("http://www.ip138.com/post/search.asp",PostStr) getZone = RegExpText(getContent,"<TR><TD class=tdc2>◎((.|\n)*?)</TD>") Response.Write("<UL>") IF(getZone="")THEN Response.Write("<li><strong><font color=""#FF0000"">没有搜索到记录</font></strong></li>") ELSE ArrayZone = split(getZone,",") IF(isArray(ArrayZone))THEN For i=0 TO UBOUND(ArrayZone)-1 Response.Write("<li><strong><font color=""#008000"">"&Replace(ArrayZone(i),",","")&"</font></strong></li>") Next ELSE Response.Write("<li><strong><font color=""#008000"">"&Replace(getZone,",","")&"</font></strong></li>") END IF END IF Response.Write("</UL>") END IF %> </div> </fieldset>
<fieldset> <legend><strong>IP地理位置查询</strong></legend> <div> <div style="padding-left:23px;margin-bottom:8px;"> <form name="ipForm" method="post" action="searcher.asp?sType=ip" onsubmit="return checkIPForm()"> 待查询的IP地址:<input type="text" name="ipAddress" value="<%=ipAddress%>" /> <input type="submit" value="提 交" /> </form> </div>
</div> </fieldset>
<fieldset> <legend><strong>身份证号码查询</strong></legend> <div> <% Dim identityNumber identityNumber = Trim(Request.Form("identityNumber")) %> <div style="padding-left:23px;margin-bottom:8px;"> <form name="identityForm" method="post" action="searcher.asp?sType=identity" onsubmit="return checkIdentityForm()"> 15或18位身份证号:<input type="text" name="identityNumber" value="<%=identityNumber%>" /> <input type="submit" value="提 交" /> </form> </div> <% IF(sType = "identity" AND identityNumber<>"")THEN Dim ArrayIDCardInfo PostStr = "action=idcard&userid="&identityNumber getContent=GetURL("http://www.oicq88.com/idsearch/index.asp",PostStr) getContent=RegExpText(getContent,":</font>((.|\n)*?)<BR>") Response.Write("<UL>") IF(getContent="")THEN Response.Write("<li>身份证号码错误或没有查询到相关数据</li>") ELSE ArrayIDCardInfo = split(getContent,",") Response.Write("<li><strong>性 别:</strong><font color=""#008000""><strong>"&Replace(ArrayIDCardInfo(0),",","")&"</strong></font></li>") Response.Write("<li><strong>出生日期:</strong><font color=""#008000""><strong>"&Replace(ArrayIDCardInfo(1),",","")&"</strong></font></li>") Response.Write("<li><strong>发证地区:</strong><font color=""#008000""><strong>"&Replace(ArrayIDCardInfo(2),",","")&"</strong></font></li>") END IF Response.Write("</UL>") END IF %> <div style="padding-left:23px;margin-bottom:8px;"> <form name="identityUpForm" method="post" action="searcher.asp?sType=upIdentity" onsubmit="return checkIdentityUpForm()"> 15位号码升至18位:<input type="text" name="identityNumber" value="<%=identityNumber%>" /> <input type="submit" value="提 交" /> </form> </div> <% IF(sType = "upIdentity" AND identityNumber<>"")THEN PostStr = "action=upto18&userid="&identityNumber getContent=GetURL("http://www.oicq88.com/idsearch/index.asp",PostStr) getContent=RegExpText(getContent,"升位后号码:((.|\n)*?)</TD>") Response.Write("<UL>") IF(getContent="")THEN Response.Write("<li>身份证号码错误或没有查询到相关数据</li>") ELSE Response.Write("<li><strong>升位(18位)后号码是:</strong><font color=""#008000""><strong>"&Replace(getContent,",","")&"</strong></font></li>") END IF Response.Write("</UL>") END IF %> </div> </fieldset>
<div style="padding:15px;text-align:center;"> DESIGNED BY <a href="http://www.goalercn.com" target=" ... R</a><BR /> </div>
</body> </html> <% Function ByteToStr(vIn) Dim strReturn,i,ThisCharCode,innerCode,Hight8,Low8,NextCharCode strReturn = "" For i = 1 To LenB(vIn) ThisCharCode = AscB(MidB(vIn,i,1)) If ThisCharCode < &H80 Then strReturn = strReturn & Chr(ThisCharCode) Else NextCharCode = AscB(MidB(vIn,i+1,1)) strReturn = strReturn & Chr(CLng(ThisCharCode) * &H100 + CInt(NextCharCode)) i = i + 1 End If Next ByteToStr = strReturn End Function
Function GetURL(url,PostStr) Set Retrieval = Server.CreateObject("Microsoft.XMLHTTP") With Retrieval .Open "POST", url, false ,"" ,"" .setRequestHeader "Content-Type","application/x-www-form-urlencoded" .Send(PostStr) GetURL = .ResponseBody End With Set Retrieval = Nothing GetURL=ByteToStr(GetURL) End Function
Function RegExpText(strng,regStr) Dim regEx,Match,Matches,RetStr Set regEx = New RegExp regEx.Pattern = regStr regEx.IgnoreCase = True regEx.Global = True Set Matches = regEx.Execute(strng) For Each Match in Matches RetStr = RetStr & regEx.Replace(Match.Value,"$1") & "," Next RegExpText = RetStr set regEx=nothing End Function %>
|
|