<%dbdns="../../"%>
<!--#include file="../../inc/conn.asp"-->
<!--#include file="../cook.asp"-->
<%if fla1<>1 then
response.write "<script>alert('操作权限出错，您没有权限操作些功能');history.go(-1);</Script>"
Response.End 
end if

	nick=replace(trim(request("user")),"'","")
	password=replace(trim(Request("pass")),"'","")

	set rs=server.createobject("adodb.recordset")
	sql="select * from dlxf_yp where dlxf_pass='"&password&"' and dlxf_user='"&nick&"'"
	rs.open sql,conn,1,1
 	if not(rs.bof and rs.eof) then
		session("useradmin")=rs("dlxf_user")
		session("id")=rs("dlxf_id") 
        session("coname")=""
        response.write "<script>window.open('"&application("cityurl")&"user/admin.asp','_blank');history.go(-1)</script>"
	else
	response.write "<script>alert('用户登录出错，下面是产生错误的可能原因：\n\n·用户名或密码错误,请重新输入');history.go(-1);</Script>"
	Response.End 
	end if
	
	rs.close
	conn.close
	set rs=nothing
	set conn=nothing
%>

