<% if session("postboard_admin")<>true then response.write("") response.end() end if IF request.form("behave")<>"change" THEN %>
 修改管理员密码

  用户名:  

  旧密码:  

  旧密码确认:

  新密码:  

  新密码确认:

    

<% ELSE if request.form("oldpassword")<>request.form("rewriteoldpassword") then response.write("

旧密码两次输入不相同,请返回

") response.write("") response.end() elseif request.form("newpassword")<>request.form("rewritenewpassword") then response.write("

新密码两次输入不相同,请返回

") response.write("") response.end() else %> <% rs.open "select name,password from athority where name='"&request.form("username")&"' and password='"&md5(request.form("oldpassword"))&"'",conn,2,2 if rs.eof=true and rs.bof=true then response.write("

用户名或密码错误,请返回

") response.write("") set conn=nothing response.end() else ' rs.close 'set rs=nothing 'set rs2=server.CreateObject("adodb.recordset") 'rs2.open "update athority set password='"&request.form("newpassword")&"' where name='"&request.form("username")&"'",conn,2,3 ' rs2.open "update athority set password='"&request.form("newpassword")&"' where name='"&request.form("username")&"' ",conn,2,3 rs("password")=md5(request.form("newpassword")) rs.update 'rs2.close set conn=nothing response.write("

修改成功!如没有提示弹出,请点击此处以返回

") response.write("") end if end if END IF %>