📄 queryip.asp
字号:
<%@ LANGUAGE=VBScript%>
<%Response.Expires=0
if Session("a_c_user_name")="" then
Response.write "<b>[操作失败]</b><p>您尚未登录(或已经超时退出),不能进行此操作!"
Response.end
end if
if Session("a_c_user_level")<9 then
Response.Write "<b>[操作失败]</b><p>您没有查询IP的权限!"
Response.End
end if
input=Application("a_c_ip_address")
ip=Trim(Request.Form("queryip"))
dim dj(3)
k=split(ip,".",-1)
for i=0 to 3
if i<=UBound(k) then
if len(k(i))>3 then
dj(i)=left(k(i),3)
else
dj(i)=left("000",3-len(k(i)))&k(i)
end if
else
dj(i)="000"
end if
next
formatip=dj(0)&"."&dj(1)&"."&dj(2)&"."&dj(3)%><html>
<head>
<title>IP查询</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type='text/css'>
<!--
.p9 {line-height: 150%; font-size: 9pt;}
.p12 {line-height: 150%; font-size: 12pt;}
body {line-height: 150%;font-size : 12pt;}
A {text-decoration: none;}
A:Hover {text-decoration : none;}
a:visited { color: #0000FF}
-->
</style>
</head>
<body bgcolor="FFFFFF">
<h1 align="center"><font color="0099FF">【IP查询】</font></h1>
<div align="center"><a href="javascript:history.go(-1)">[返回]</a> </div>
<hr noshade size="1" color=009900>
<p align="center">欲查询的IP:<b><font color="#FF0000"><%=ip%></font></b> 格式化为:<b><font color="#FF0000"><%=formatip%></font></b><br>
</p>
<table border="1" cellpadding="4" align="center" bgcolor="#E0E0E0" bordercolordark="#FFFFFF" cellspacing="0" bordercolorlight="#999999">
<tr bgcolor="#3399FF"><td><font color="#FFFFFF">IP起始地址</font></td><td><font color="#FFFFFF">IP结束地址</font></td><td><font color="#FFFFFF">大体位置</font></td><td><font color="#FFFFFF">具体位置</font></td></tr>
<%for i=1 to UBound(input) step 4
if formatip>=input(i) and formatip<=input(i+1) then%><tr><td><%=input(i)%></td><td><%=input(i+1)%></td><td><%=input(i+2)%></td><td><%=input(i+3)%></td></tr><%end if
next%>
</table>
<hr noshade size="1" color=009900>
<div align="center" class="p9"><script src="use.asp"></script> <script src="sn.asp"></script><br><script src="copyright.asp"></script></div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -