<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<!-- #include file="../inc/conn.asp" -->
<!-- #include file="inc/Config.asp" -->
<!-- #include file="../inc/md5.asp" -->

<%
u_pass=request.Form("u_pass")
u_user=request.Form("u_user")

set rs=server.createobject("adodb.recordset")
sql="select * from web_admin where u_user='"&u_user&"'"
rs.open sql,conn,1,1
if rs.eof or rs.bof then
response.Write"<script language=javascript>alert('亲爱的，用户名或密码错误，仔细想想吧？');history.go(-1);</script>"
Response.End()
else
if rs("u_pass")<>MD5(u_pass) then

response.write "<script language=JavaScript>alert('亲爱的，用户名或密码错误，仔细想想吧？');history.back();</script>" 
else
u_class=rs("u_class")
session("u_class")=""&u_class&""
session("username")=request.Form("u_user")
response.Redirect("index.asp")
end if
end if

%>
<!-- #include file="../inc/close.asp" -->
