'--------------补充说明------------ '本人将陆续提供新版本的补丁。 '---------------fun.asp '找到sysdsinfo(sysnl) '如果你不用本人提供的仿chinaren风格,请不要修改sysdsinfo(sysnl)。请另取名。 '比如sysdsinfo2(sysnl) '然后替换本人提供的以下ledt1.asp中的Call SysdsInfo为你修改的相应的,比如Call SysdsInfo2 '-----------------本人写的比较详细,高手就别见怪了,为了方便刚刚使用bbsgood的用户。 'images/close_2.gif图片你可以去[www.cdcg.cn]下载 '----------------交流QQ群:19407405(验证:bbsgood)---------------------------- Function SysdsInfo(sysnl) Response.Write "" Response.Write "" Response.Write "
" Response.Write "" Response.Write "
" Response.Write "" Response.Write "" Response.Write "" Response.Write "
" Response.Write "
提示
" Response.Write "
 " Response.Write "" Response.Write "
" Response.Write "
" Response.Write "
" Response.Write "
"&sysnl&"
" Response.Write "
" End Function '---------------------fun.asp-----sysdsinfo(sysnl)----修改结束------------ '------left1.asp '直接搜索closedata,然后替换第一个closedata到第二个closedata之间的即可。支持最新版本。 <% end if closedata Response.End Else UserName=RequestCStringSafe(trim(Request.Form("UserName"))) PassWord=RequestCStringSafe(trim(Request.Form("PassWord"))) If username="" or password="" then Call SysdsInfo("登陆失败:用户名或密码输入有误!") Call SaveMatter("用户登陆失败","用户登陆发生失败,没有找到"&UserName&"这个帐号",0) Response.End Else if not IsObject(conn) then LinkData end if sql="select ID,admin,Lock,UserName,PassWord,LastLogin,LoginNum,LastIP from LxTel_User where UserName='"&UserName&"' " Set rs = Server.CreateObject("ADODB.Recordset") rs.open sql,conn,1,3 if rs.BOF and rs.EOF then Call SysdsInfo("登陆失败:用户名错误!") Call SaveMatter("用户登陆失败","用户登陆发生失败,用户名错误",0) else if rs("password")=md5(password) and rs("username")=UserName and rs("Lock")=0 and trim(Request.Form("yzm"))=trim(Request.Cookies(bbsinfo&"yzm")) then if Request.ServerVariables("HTTP_X_FORWARDED_FOR")="" then ipdress=Request.ServerVariables("REMOTE_ADDR") else ipdress=Request.ServerVariables("HTTP_X_FORWARDED_FOR") end if If Instr(1,Application(BBSInfo&"sysinfo")(46,0),ipdress)>0 then Call SysdsInfo("登陆失败:你的IP被锁定!") Call SaveMatter("用户登陆失败","对方的IP地址被系统锁定,帐号为:"&UserName&"",0) closedata Response.End end if conn.Execute ("delete from LxTel_Online where username='"&username&"'") rs("LastLogin")=now() rs("LoginNum")=rs("LoginNum")+1 rs("LastIP")=ipdress rs.Update admin=cstr(rs("admin")) Application(BBSInfo&"loginuser")=Application(BBSInfo&"loginuser")+username+"|"+md5(password)+"|"+admin+"|#" If Cint(Request.Form("passsave"))=1 then Response.Cookies(BBSInfo&"username").Expires=date+365 Response.Cookies(BBSInfo&"password").Expires=date+365 Response.Cookies(BBSInfo&"admin").Expires=date+365 end if Response.Cookies(BBSInfo&"username")=username Response.Cookies(BBSInfo&"password")=md5(password) Response.Cookies(BBSInfo&"admin")=admin Call SysdsInfo("登陆成功,正在转向面版……") Response.Write "" Response.Write "" else if rs("password")<>md5(password) then Error=Error+"密码错误! " end if if rs("lock")=1 then Error=Error+"帐号已经被锁定 " end if if rs("lock")=2 then Error=Error+"帐号还没有被激活 " end if if rs("username")<>username then Error=Error+"帐号输入不正确,注意大小写 " end if if trim(Request.Form("yzm"))<>trim(session("yzm")) then Error=Error+"验证码输入有误! " end if Call SysdsInfo("登陆失败:"&Error&"") Call SaveMatter("用户登陆失败","帐号:"&UserName&" "&Error,0) end if end if rs.Close set rs=nothing End If End If closedata '----------------------left1.asp修改结束----------------