<!--#include virtual="/inc/conn.asp"-->

<%
response.End()

u=SafeRequest("u")
if trim(u)="" then 
call PopErr2("您的请求验证失败，请联系管理员！err1","/")
response.End() 
end if

sql="select * from ayzizhu where ayzizhusum='"&trim(u)&"' and zyzizhuisok=0" 
rs.open sql,conn,1,3
if not(rs.bof and rs.eof) then


	if DateDiff("d",rs("ayzizhudate"),now())>3 then
	call PopErr2("您的请求已过时效，请联系管理员重新申请！","/")
	response.End()
	end if
rs("zyzizhuisok")=1
rs.update
	response.Cookies("aynameid")=""   
	response.Cookies("ayusername")="" 
	response.Cookies("aytrueuser")=""
	response.Cookies("ayjibie")=""   
	response.Cookies("aylastdata")="" 
	response.Cookies("aylastip")=""   
	response.Cookies("ayusersuo")="" 
	response.Cookies("ayjifen")=""   
	response.Cookies("yanzheng")=""
	response.Cookies("fuwuqq")=""
	response.Cookies("fuwutel")=""
	response.Cookies("adminpass")=""
	response.Cookies("adminpasscode")=""
	response.Cookies("ayadminnameid")=""
	response.Cookies("ayadminjibie")=""
	response.Cookies("aymasterid")=""
	response.Cookies("kamiku")=""
	response.Cookies("useripd")=""
	response.Cookies("aymd5")=""
	response.Cookies("flku")=""
	response.Cookies("spku")=""
	response.Cookies("ddku")=""
	response.Cookies("cwku")=""
	response.Cookies("rzku")=""
	response.Cookies("aysignmd5")=""
	response.Cookies("gaojiyzm")=""
	response.Cookies("logdate")=""
call PopErr2("您的请求已验证成功，请登录后进行相关操作！","/index/log")


else


	call PopErr2("请登录后进行相关操作，如未操作成功请联系管理员！err2","/index/log")
	
	
end if
rs.close



%>