我的网站后台登陆出现错误,请高手看一下这段代码有什么问题?
<linkhref="css/style.css"rel="stylesheet"type="text/css"/><%ifRequest.ServerVariables...
<link href="css/style.css" rel="stylesheet" type="text/css" />
<%
if Request.ServerVariables("Request_method") = "POST" then
if SiteConfig("EnableAntiSpamTextGenerateForLogin")=1 then
if Request.Form("VerifyCode")<>Session("VerifyCode") or Session("VerifyCode")="" then call Wodig.MsgBox2("验证码错误!",1,"javascript:history.back();")
end if
if EnableSiteManageCode = True then
if Request.Form("SiteManageCode")<>SiteManageCode then call Wodig.MsgBox2("认证码错误!",1,"javascript:history.back();")
end if
if Request("pass")="" then call Wodig.MsgBox2("请输入管理员密码!",1,"javascript:history.back();")
session("pass")=md5(""&Request("pass")&"")
if Conn.Execute("Select UserPass From [Wo_Users] where UserName='"&CookieUserName&"'")(0)<>session("pass") then
call Wodig.MsgBox2("管理员密码错误,请返回重新登录!",1,"javascript:history.back();")
else
Response.Redirect("admin.html")
end if
end if 展开
<%
if Request.ServerVariables("Request_method") = "POST" then
if SiteConfig("EnableAntiSpamTextGenerateForLogin")=1 then
if Request.Form("VerifyCode")<>Session("VerifyCode") or Session("VerifyCode")="" then call Wodig.MsgBox2("验证码错误!",1,"javascript:history.back();")
end if
if EnableSiteManageCode = True then
if Request.Form("SiteManageCode")<>SiteManageCode then call Wodig.MsgBox2("认证码错误!",1,"javascript:history.back();")
end if
if Request("pass")="" then call Wodig.MsgBox2("请输入管理员密码!",1,"javascript:history.back();")
session("pass")=md5(""&Request("pass")&"")
if Conn.Execute("Select UserPass From [Wo_Users] where UserName='"&CookieUserName&"'")(0)<>session("pass") then
call Wodig.MsgBox2("管理员密码错误,请返回重新登录!",1,"javascript:history.back();")
else
Response.Redirect("admin.html")
end if
end if 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询