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

📄 yns_login.asp

📁 该软件是用asp编写的
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="Connections/conn_news.asp" -->
<%
'请尊重作者劳动成果不要删除以上信息
'业一新闻系统3.0正式版
'主页:http://yeyi.net
'论坛:http://bbs.yeyi.net
'业一网络 承接各种网站制作
'程序开发 软件开发业务
'业务联系
'电话: 13007310512
'联系人:郝亚平
'QQ:24344842 (只谈业务,技术问题请访问论坛)
'请尊重作者劳动成果不要删除以上信息
%>
<!--#include file="md5.asp" -->
<%
' *** Validate request to log in to this site.
MM_LoginAction = Request.ServerVariables("URL")
If Request.QueryString<>"" Then MM_LoginAction = MM_LoginAction + "?" + Request.QueryString
MM_valUsername=CStr(Request.Form("u_name"))
If MM_valUsername <> "" Then
  MM_fldUserAuthorization="u_level"
  MM_redirectLoginSuccess="frame.asp"
  MM_redirectLoginFailed="yns_login.asp"
  MM_flag="ADODB.Recordset"
  set MM_rsUser = Server.CreateObject(MM_flag)
  MM_rsUser.ActiveConnection = MM_conn_news_STRING
  MM_rsUser.Source = "SELECT u_name, u_password"
  If MM_fldUserAuthorization <> "" Then MM_rsUser.Source = MM_rsUser.Source & "," & MM_fldUserAuthorization
  MM_rsUser.Source = MM_rsUser.Source & " FROM t_user WHERE u_name='" & Replace(MM_valUsername,"'","''") &"' AND u_password='" & md5(trim(Replace(Request.Form("u_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
    MM_rsUser.Close
    Response.Redirect(MM_redirectLoginSuccess)
  End If
  MM_rsUser.Close
  Response.Redirect(MM_redirectLoginFailed)
End If
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>业一新闻系统3.0正式版-------业一网络Yeyi.net制作</title>
<link href="config/beauty.css" rel="stylesheet" type="text/css">
</head>

<body>

<p>&nbsp;</p>
<p>&nbsp;</p>
<form name="form1" method="POST" action="<%=MM_LoginAction%>">
  
  <TABLE WIDTH=400 BORDER=0 align="center" CELLPADDING=0 CELLSPACING=0>
    <TR> 
      <TD COLSPAN=3>&nbsp; </TD>
    </TR>
    <TR> 
      <TD ROWSPAN=2>&nbsp; </TD>
      <TD height="106" bgcolor="#CCCCCC"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr> 
            <td width="36%"><div align="right">用户名称:</div></td>
            <td width="64%"> <input name="u_name" type="text" class="input" id="u_name" size="15"></td>
          </tr>
          <tr> 
            <td width="36%"><div align="right">用户密码:</div></td>
            <td> <input name="u_password" type="password" class="input" id="u_password" size="15"></td>
          </tr>
          <tr> 
            <td width="36%" height="33">&nbsp;</td>
            <td valign="bottom"> <div align="center">
                <input name="Submit" type="submit" class="button" value=" 确定 ">
              </div></td>
          </tr>
        </table></TD>
      <TD ROWSPAN=2>&nbsp; </TD>
    </TR>
    <TR> 
      <TD>&nbsp; </TD>
    </TR>
  </TABLE>
  <p>&nbsp;</p>
</form>
<p>&nbsp;</p>
</body>
</html>

⌨️ 快捷键说明

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