求助大家帮帮忙看以下出错问题!!!谢谢!!
需大家帮帮忙以下出错问题!!!谢谢!!
错误类型:
Microsoft VBScript 编译器错误 (0x800A0400)
缺少语句
/job/login.asp, line 48
end if
浏览器类型:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
网页:
POST 54 ??? /job/login.asp
POST Data:
name=xgla&pwd=5005019&code=7925&user=2&dl.x=53&dl.y=10
源代码如下:
<!--#include file="info.asp"-->
<!--#include file="conn.asp"-->
<!--#include file="md5.asp"-->
<%
if instr(request("name"),"'")<>0 then
response.write "<script language=JavaScript>" & chr(13) & "alert('非法数据提交!');" & "history.back()" & "</script>"
Response.End
else
call CodeIsTrue("index.asp")
pwd=md5(request("pwd"))
if request("user")="1" then
ktime=rs("ktime")
dtime=rs("dtime")
hyrq=DateDiff("d",dtime,ktime)
if hyrq=<5 then
response.write "<script language=JavaScript>" & chr(13) & "alert('您的VIP有效期低于5天!');" & "</script>"
end if
if hyrq=0 then
sql="update in_user set vip=false where ac='"&request("name")&"'"
else
sql="update in_user set vip=true where ac='"&request("name")&"'"
end if
rs.close
set rs=createobject("adodb.recordset")
rs.open sql,conn,1,1
end if
sql="select id,name,ac,pwd,lock,vip from in_user where ac='"&request("name")&"'"
sql1="update in_user set ltime='"&now()&"',ip='"&request.servervariables("remote_host")&"' where ac='"&request("name")&"'"
end if
if request("user")="2" then
ktime=rs("ktime")
dtime=rs("dtime")
hyrq=DateDiff("d",dtime,ktime)
if hyrq=<5 then
response.write "<script language=JavaScript>" & chr(13) & "alert('您的VIP有效期低于5天!');" & "</script>"
end if
if hyrq=0 then
sql="update en_user set vip=false where ac='"&request("name")&"'"
else
sql="update en_user set vip=true where ac='"&request("name")&"'"
end if
rs.close
set rs=createobject("adodb.recordset")
rs.open sql,conn,1,1
end if
sql="select id,name,ac,pwd,lock,vip from en_user where ac='"&request("name")&"'"
sql1="update en_user set ltime='"&now()&"',ip='"&request.servervariables("remote_host")&"' where ac='"&request("name")&"'"
end if
set rs=createobject("adodb.recordset")
rs.open sql,conn,1,1
if rs.eof and rs.bof then
response.write "<script language=JavaScript>" & chr(13) & "alert('用户名错误!');" & "history.back()" & "</script>"
rs.close
set rs=nothing
set conn=nothing
response.end
else
if pwd<>rs("pwd") then
response.write "<script language=JavaScript>" & chr(13) & "alert('密码错误!');" & "history.back()" & "</script>"
rs.close
set rs=nothing
set conn=nothing
response.end
else
if rs("lock")=true then
rs.close
set rs=nothing
set conn=nothing
response.write "<script language=JavaScript>" & chr(13) & "alert('此帐号已被锁定,请与管理员联系!');"&"window.location.href = 'index.asp'"&" </script>"
response.end
end if
set rs1=server.createobject("adodb.recordset")
rs1.open sql1,conn,1,1
set rs1=nothing
if rs("name")<>"" then session("name")=rs("name")
session("vip")=rs("vip")
session("id")=rs("id")
session("ac")=rs("ac")
session("user")=request("user")
rs.close
set rs=nothing
set conn=nothing
response.redirect "index.asp"
end if
end if
rs.close
set rs=nothing
set conn=nothing
end if
%>