⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 add.asp

📁 86bed md5 密码转换与查询工具(带数据库)
💻 ASP
字号:
<!--#include file="conn.asp"-->
<!--#include file="../md5.asp"-->
<%
if request.Cookies("admin")<>"guoxue" and session("administrator")<>"administrator" then 
Response.Redirect("index.asp")
end if
%>
<html>
<head>
<style type="text/css">
<!-- 
td           { font-size: 12px; line-height: 17px }
body         { font-size: 12px; line-height: 17px }
p            { margin-top: 1; margin-bottom: 1 }
a:link       { text-decoration: none; color: black }
a:visited    { text-decoration: none; color: black }
a:active     { text-decoration: none }
a:hover      { text-decoration: underline; color: red }
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<%
dim text,md5text,ip
if request("action")="add" then
text=request("text")
 md5text=request("md5text")
 ip=request("IP")
 if text<>"" then
Set Rs = Server.CreateObject("Adodb.RecordSet")
sql="select *  from md5 where text='"&text&"'  order by id desc"
Rs.Open sql,conn,1,3
if  rs.EOF And rs.BOF Then
      rs.addnew	
		rs("text")=text
        rs("md5text")=md5text
		 rs("ip")=IP
		 rs("adddate")=date()
		 rs.update
	  end if
	rs.close
	Set rs=Nothing
  response.write "<script language='javascript'>" & chr(13)
    response.write "alert('恭喜,成功!!');" & Chr(13)
    response.write "window.document.location.href='javascript:history.back()';"&Chr(13)
    response.write "</script>" & Chr(13)
    Response.End
else
Response.write "添加失败"
end if
end if
 %>

 	

<table align='center' border="0" width="657" cellspacing="0" cellpadding="5">
  <form action="?action=add" method="post" name="add" >
    <tr> 
      <td colspan="5" align='center'><font size='3'> 添 加 MD5 </font> 
        <input type="submit"  name="add" class="add" value="增加数值"  onClick="location.href='?action=add'" >
        <input type="button" value="返回列表" name="back" onClick="location.href='edit.asp'">
        <hr width='95%'>
      </td>
    </tr>
    <tr> 
      <td width="16%" align="right">原始数据

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -