
<!--#include file="webconfig.asp"-->
<!--#include file="MD5.asp"-->
<%

VIP_ID=trim(request.form("21it_ID"))
VIP_ps=trim(request.form("21it_ps"))
if trim(request.form("21it_ID"))="" then
	session.Abandon
	response.write "<script language=javascript> alert('用户名不正确，请重新输入。');this.location.href='adminlogin.asp';</script>"
else
	VIP_ID=trim(replace(replace(request.form("21it_ID"),"'",""),"[",""))
end if
if trim(request.form("21it_ps"))="" then
	session.Abandon
	response.write "<script language=javascript> alert('密码不正确，请重新输入。');this.location.href='adminlogin.asp';</script>"
else
	VIP_ps=trim(replace(replace(request.form("21it_ps"),"'",""),"[",""))
end if

VIP_ID2=username
VIP_ps2=pass

if VIP_ID2<>VIP_ID then
   response.write "<script language=javascript> alert('用户名不正确，请重新输入。');this.location.href='adminlogin.asp';</script>"
elseif md5(VIP_ps)<>VIP_ps2 then
   response.write "<script language=javascript> alert('密码不正确，请重新输入。');this.location.href='adminlogin.asp';</script>"
end if

if VIP_ID2=VIP_ID then
  if VIP_ps2=md5(VIP_ps) then
     session("checklogin")="denok"
     response.Redirect "member_add.asp"
  end if
end if
%>
