<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../../include/md5code.asp" -->
<!--#include file="../../include/connect.asp" -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
</head>
<body>
<%
oldpsw=request.form("oldpsw")
newpsw=request.form("newpsw")
set rs = server.CreateObject("adodb.recordset")
sql="select * from Show5_ALLUser where Username='"&session("Username")&"'"
rs.open sql,cn,1,3
if rs("Password") <> md5(oldpsw) then
Response.write("<script>alert('原密码不符，请返回确认！');window.location.replace('modifyupsw.asp');</script>")
else
rs("Password")=md5(newpsw)
rs.update
rs.close
set rs=nothing
end if
Response.write("<script>alert('密码修改成功，请用新密码登录！');window.location.replace('modifyupsw.asp');</script>")
%>
</body>
</html>