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

📄 user_manager.asp

📁 网址使用源码
💻 ASP
字号:
<!--#include file="conn.asp"-->
<!--#include file="Md5.asp"-->
<%
if Session("isAdmin")<>true Then
Response.Write "非法闯入!"
Response.End
End if
currentadmin=Session("Admin")
pw1=md5(request("pw1"))
pw2=md5(request("pw2"))
action=request("action")
if action="doit" then
if pw1="" or pw2="" or currentadmin="" then
	Response.Write "无法完成请求!"
	Response.End
end if
if pw1<>pw2 then
	Response.Write "两次输入的密码不一样!"
	Response.End
end if
set r=server.createobject("adodb.recordset")
r.open "select * from admin",conn,1,3
if not r.eof then
	r("password")=pw1
	r.update
	Response.Write "管理员密码已成功更改!"
	Response.End
else
	Response.Write "无法完成请求!"
	Response.End
end if
end if
%>
<html>
<head>
<title>修改管理密码</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"> 
<LINK REL="stylesheet" HREF="css.css" TYPE="text/css">
</head>
<body>
<div align="center">
  <center>
  <p> </p>
    <table width="55%" border="0" cellspacing="1" cellpadding="8" align="center" bgcolor="#999999">
      <tr> 
        <td bgcolor="#cccccc" align="center">修改管理密码</td>
      </tr>
      <tr> 
        <td bgcolor="#eeeeee"><br> <form action="user_manager.asp" method="post">
            <big><big>更改当前管理员密码:</big></big><br>
            请输入新密码:
            <input type="password" name="pw1">
            <br>
            请确认新密码:
            <input type="password" name="pw2">
            <br>
            <input type="hidden" value="doit" name="action">
            <input type="submit">
          </form>
          <br> <br></td>
      </tr>
    </table>
  </center>
</div>
</body>
</html>

⌨️ 快捷键说明

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