⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 deep_login.asp

📁 深度学习整站系统 v1.10 1、将整个目录上传到虚拟空间
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="DT_inc/SQL_injection.asp"-->
<!--#include file="Connections/connDB.asp" -->
<!--#include file="DT_inc/deep_md5.asp" -->
<%
' *** Validate request to log in to this site.
MM_LoginAction = Request.ServerVariables("URL")
If Request.QueryString<>"" Then MM_LoginAction = MM_LoginAction + "?" + Server.HTMLEncode(Request.QueryString)
MM_valUsername=CStr(Request.Form("username"))
If MM_valUsername <> "" Then
  MM_fldUserAuthorization="fPurview"
  MM_redirectLoginSuccess="admin_index_.asp"
  MM_redirectLoginFailed="index.asp"
  MM_flag="ADODB.Recordset"
  set MM_rsUser = Server.CreateObject(MM_flag)
  MM_rsUser.ActiveConnection = MM_connDB_STRING
  MM_rsUser.Source = "SELECT fUserName, fPassword"
  If MM_fldUserAuthorization <> "" Then MM_rsUser.Source = MM_rsUser.Source & "," & MM_fldUserAuthorization
  MM_rsUser.Source = MM_rsUser.Source & " FROM tAdmin WHERE fUserName='" & Replace(MM_valUsername,"'","''") &"' AND fPassword='" & md5(Replace(Request.Form("password"),"'","''")) & "'"
  MM_rsUser.CursorType = 0
  MM_rsUser.CursorLocation = 2
  MM_rsUser.LockType = 3
  MM_rsUser.Open
  If Not MM_rsUser.EOF Or Not MM_rsUser.BOF Then 
    ' username and password match - this is a valid user
    Session("MM_Username") = MM_valUsername
    If (MM_fldUserAuthorization <> "") Then
      Session("MM_UserAuthorization") = CStr(MM_rsUser.Fields.Item(MM_fldUserAuthorization).Value)
    Else
      Session("MM_UserAuthorization") = ""
    End If
    if CStr(Request.QueryString("accessdenied")) <> "" And false Then
      MM_redirectLoginSuccess = Request.QueryString("accessdenied")
    End If
	
'校验码开始
If Session("ValidCode")<>Request.Form("ValidCode") Then
		Response.Redirect "index.asp"    ' 错误要执行的函数
	Else
		Session("ValidCode") = Empty
End If		
'校验码结束		

    MM_rsUser.Close
    Response.Redirect(MM_redirectLoginSuccess)
  End If
  MM_rsUser.Close
  Response.Redirect(MM_redirectLoginFailed)
End If
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
	background-color: #fffbe7;
}
-->
</style></head>

<body>
<p>&nbsp;</p>
<p>&nbsp;</p>
<table width="300" align="center" cellspacing="1">
  <tr>
    <td height="33" colspan="2"><div align="center">管 理 登 陆</div></td>
  </tr>
  <tr>
    <td height="149" colspan="2">      <form name="form1" method="POST" action="<%=MM_LoginAction%>">
        <table border="0" align="center" cellspacing="5">
          <tr>
            <td width="65">用户名:</td>
            <td colspan="2"><input name="username" type="text" id="username" size="25" maxlength="16"></td>
          </tr>
          <tr>
            <td>密码:</td>
            <td colspan="2"><input name="password" type="password" id="password" size="27" maxlength="16"></td>
          </tr>
          <tr>
            <td>验证码:</td>
            <td><input name="ValidCode" type="text" id="ValidCode" size="10" maxlength="4"></td>
            <td><img src="DT_inc/ValidCode.asp"></td>
          </tr>
          <tr>
            <td height="40">&nbsp;</td>
            <td colspan="2"><input type="submit" name="Submit" value="登  陆">
            <input type="reset" name="Submit2" value="重  置"></td>
          </tr>
        </table>
      </form>
    </td>
  </tr>
</table>
<p>&nbsp;</p>
<p align="center">验证码区分大小写</p>
<p align="center">后台管理页面需要屏幕分辨率为 <span class="redtext">1024*768</span> 或以上才能达到最佳浏览效果!</p>
<p align="center">需要浏览器为 IE5.5 或以上版本才能正常运行!!!
</p>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -