<!--#include file="../../connoklin.asp"-->
<!--#include file="../Config.asp"-->
<!--#include file="../../inc/md5.asp"-->
<html>
<head>
<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">
<title>后台管理系统</title>
<link rel="stylesheet" type="text/css" href="../css.css">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="#FFFFFF" >
<% aboutid=request("aboutid")
strtitle2  =trim(request("title2"))
strtitle3  =trim(request("title3"))
strtitle4  =trim(request("title4"))
if  strtitle3<>strtitle4 then
response.write"<script>alert('两次输入密码不一样！');</script>"
response.write"<script>location.href='manage.asp';</script>"
end if
strtitle2 =md5(strtitle2 )
strtitle3 =md5(strtitle3 )
set rs=server.CreateObject("adodb.recordset")
strsql="SELECT * FROM admin where password='"&strtitle2&"' and id="&aboutid&""
rs.open strsql,conn,3,3
if rs.recordcount<1 then 
response.write"<script>alert('原密码输入错误！');</script>"
response.write"<script>location.href='manage.asp';</script>"
end if
rs("password")=strtitle3
rs.update
response.write"<script>alert('修改成功！');</script>"
response.write"<script>location.href='manage.asp';</script>"
%>
      <%
  conn.close
  set conn=nothing
  %>
</body>
</html>
