fucklook.asp
上传用户:qyswxdl
上传日期:2013-06-01
资源大小:1373k
文件大小:7k
源码类别:

家庭/个人应用

开发平台:

ASP/ASPX

  1. <!--#include file="articleconn.asp"-->
  2. <!--#include file="security.asp"-->
  3. <!--#include file="../checkpost.asp"-->
  4. <!--#include file="inc/function.asp"-->
  5. <%if session("flag")>1 then
  6.     response.write "<script>alert('您的操作权限不够!');history.back();</script>"
  7.     response.end
  8. end if
  9. %>
  10. <html>
  11. <head>
  12. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  13. <title>日志管理</title>
  14. <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
  15. <link rel="stylesheet" type="text/css" href="inc/Admin_STYLE.CSS">
  16. <style type="text/css">
  17. <!--
  18. .样式6 {color: #FFFFFF; font-weight: bold; }
  19. .样式7 {
  20. font-size: 9pt;
  21. font-weight: bold;
  22. }
  23. body,td,th {
  24. font-size: 9pt;
  25. }
  26. -->
  27. </style>
  28. </head>
  29. <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
  30. <!--#include file="top1.asp"-->
  31. <%
  32.    MaxPerPage=20
  33.    dim totalPut   
  34.    dim CurrentPage
  35.    dim TotalPages
  36.    dim i,j
  37.    dim typename
  38.    
  39.    typename=""
  40.    if not isempty(request("page")) then
  41.       currentPage=cint(request("page"))
  42.    else
  43.       currentPage=1
  44.    end if
  45.    dim sql
  46.    dim rs
  47.    dim rstype
  48.    if request("page")="" then
  49.    page=0
  50.    end if
  51. %>
  52. <center>
  53. <form method="POST" action="fucklook.asp" align="center">
  54.   <p align="center"><span class="样式7">IP:</span>
  55.     <input type="text" name="userip123" size="20">
  56.   <input type="submit" value="查询"></p>
  57. </form>
  58. <p align="center"><a href="fuckdel.asp" class="样式1">删除全部记录</a>
  59. <%set rs=server.createobject("adodb.recordset")
  60. if request("userip123")="" then  
  61.  sql="select * from fuck order by id desc"
  62. else  
  63.  sql="select * from fuck where userip='"&request("userip123")&"' order by id desc"
  64. end if
  65. rs.open sql,conn,1,1
  66.   if rs.eof and rs.bof then
  67.        response.write "<p align='center'> <font size=2>暂无记录</font></p>"
  68.    else
  69.   totalPut=rs.recordcount
  70.       totalPut=rs.recordcount
  71.       if currentpage<1 then
  72.           currentpage=1
  73.       end if
  74.       if (currentpage-1)*MaxPerPage>totalput then
  75.    if (totalPut mod MaxPerPage)=0 then
  76.      currentpage= totalPut  MaxPerPage
  77.    else
  78.       currentpage= totalPut  MaxPerPage + 1
  79.    end if
  80.       end if
  81.        if currentPage=1 then
  82.            showpage totalput,MaxPerPage,"fucklook.asp"
  83.             showContent
  84.             showpage totalput,MaxPerPage,"fucklook.asp"
  85.        else
  86.           if (currentPage-1)*MaxPerPage<totalPut then
  87.             rs.move  (currentPage-1)*MaxPerPage
  88.             dim bookmark
  89.             bookmark=rs.bookmark
  90.            showpage totalput,MaxPerPage,"fucklook.asp"
  91.             showContent
  92.              showpage totalput,MaxPerPage,"fucklook.asp"
  93.         else
  94.         currentPage=1
  95.            showpage totalput,MaxPerPage,"fucklook.asp"
  96.            showContent
  97.            showpage totalput,MaxPerPage,"fucklook.asp"
  98.       end if
  99.    end if
  100.    end if
  101.         
  102.   
  103.    sub showContent
  104.        dim i
  105.    i=0
  106.   %>
  107. <td width="100%">&nbsp;</td>
  108.     <tr><td width="100%" align="center">   
  109.         <table border="0" cellspacing="1" width="100%" bordercolorlight="#000000" bordercolordark="#FFFFFF" cellpadding="2" class="border">
  110.           <tr bgcolor="#429AEF"> 
  111.             <td width="74" height="20" align="center" bgcolor="#429AEF"><STRONG><span class="样式6">会员帐号</span></STRONG></td>
  112.       
  113.             <td width="72" align="center"><span class="样式6">攻击者IP</span></td>
  114.             <td width="93" align="center"><span class="样式6">记录原因</span></td>
  115.             <td width="108" align="center"><span class="样式6">提交参数</span></td>
  116.             <td width="97" align="center"><span class="样式6">提交方式</span></td>
  117.             <td width="99" align="center"><span class="样式6">提交文件</span></td>
  118.             <td width="105" align="center"><strong><span class="样式6">攻击参数</span></strong></td> 
  119.             <td width="106" align="center" widht=46><span class="样式6">动作</span></td>
  120.             <td width="124" align="center" widht=46><span class="样式6">发生时间</span></td>
  121.             <td width="62" align="left"><div align="center" class="样式6">操作 </div></td> 
  122.       </tr> 
  123.     
  124.            <%do while not rs.eof%>
  125.           <tr>
  126.             <td height="11" class="tdbg"><div align="center"><a href="useredit.asp?userid=<%=rs("userid")%>" target="_blank"><u><%=rs("userid")%></u></a></div></td>
  127.             <td class="tdbg"><div align="center"><%=rs("userip")%></div></td>
  128.             <td class="tdbg"><div align="center"><%=rs("lookordown")%></div></td>
  129.             <td class="tdbg"><div align="center"><%=rs("SqlIn_CS")%></div></td>
  130.             <td class="tdbg"><div align="center"><%=rs("SqlIn_FS")%></div></td>
  131.             <td class="tdbg"><div align="center"><%=rs("SqlIn_WEB")%></div></td>
  132.             <td class="tdbg"><div align="center"><%=rs("SqlIn_SJ")%></div></td>
  133.             <td class="tdbg"><div align="center">已屏蔽IP</div></td>
  134.             <td class="tdbg"><div align="center"><%=rs("looktime")%></div></td>
  135.             <td class="tdbg"><div align="center"><a href="fuckdel.asp?id=<%=rs("id")%>">删除</a></div></td>
  136.           </tr>
  137.           <tr> 
  138.              
  139.       </tr> 
  140.     <% i=i+1
  141.       if i>=MaxPerPage then exit do
  142.       rs.movenext
  143.    loop
  144.   %>
  145.       </table> 
  146.       </form></td> 
  147. </tr> 
  148. </table> 
  149. </body> 
  150. <%
  151.    end sub 
  152. function showpage(totalnumber,maxperpage,filename)
  153.   dim n
  154.   if totalnumber mod maxperpage=0 then
  155.      n= totalnumber  maxperpage
  156.   else
  157.      n= totalnumber  maxperpage+1
  158.   end if
  159.   response.write "<form method=Post action="&filename&"?typeid="&typeid&">"
  160.     if CurrentPage<2 then
  161.     response.write "<font size=2>首页 上一页</font>&nbsp;"
  162.   else
  163.     response.write "<a href="&filename&"?page=1&typeid="&typeid&"><font size=2>首页</font></a>&nbsp;"
  164.     response.write "<a href="&filename&"?page="&CurrentPage-1&"&typeid="&typeid&"><font size=2>上一页</font></a>&nbsp;"
  165.   end if
  166.   if n-currentpage<1 then
  167.     response.write "<font size=2>下一页 尾页</font></font>"
  168.   else
  169.     response.write "<a href="&filename&"?page="&(CurrentPage+1)&"&typeid="&typeid&">"
  170.     response.write "<font size=2>下一页</font></a> <a href="&filename&"?page="&n&"&typeid="&typeid&"><font size=2>尾页</font></a>"
  171.   end if
  172.    response.write "&nbsp;<font size=2>页次:</font><strong><font color=red>"&CurrentPage&"</font>/"&n&"</strong><font size=2>页</font> "
  173.     response.write "&nbsp;<font size=2>共<font size=2><b>"&totalnumber&"</b><font size=2>个</font> <b>"&maxperpage&"</b><font size=2>个/页</font> "
  174.    response.write "<font size=2>转到:</font><input type='text' name='page' size=4 maxlength=10 class=smallInput value="&currentpage&">"
  175.    response.write " <input class=buttonface type='submit'  value='Goto'  name='cndok'></span></p></form>"
  176.        
  177. end function
  178.     
  179.     rs.close
  180.     set rs=nothing  
  181.    conn.close
  182.    set conn=nothing
  183.   %> 
  184. </html>