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

📄 index.asp

📁 三鸟个人网站源码。
💻 ASP
字号:
<%@ LANGUAGE = VBScript.Encode %>
<html>
<head>
<title>文章更新1.0</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../STYLE.CSS">
</head>

<body background="../IMAGES/bbsbg.gif">
<%if Request.QueryString("job")="login" then
name=trim(request.form("name"))
name=server.HTMLEncode(name)
pass=trim(request.form("pass"))
if instr(name,"&")>0 or instr(name,"=")>0 then
	response.write "姓名包含非法字符!"
	response.end
end if
if instr(pass,"&")>0 or instr(pass,"=")>0 then
	response.write "密码包含非法字符!"
	response.end
end if
if name="" or pass=""  then
	response.write "名称和密码不能为空"
	response.end
end if
%> <!--#include file="conn.asp"--> <%
SQL="SELECT * FROM admin WHERE name='" & name & "'"
Set Rs=conn.Execute(SQL)
If (Rs.Bof OR Rs.Eof)  then
		conn.close
		Response.Redirect "admin.asp"
		response.end
elseif pass<>rs("pass") then
       conn.close
		Response.Redirect "admin.asp"
		
		response.end
		else
		session("jaxe")="ok"
		    conn.close
		%> <!--#include file="link.asp"--> <%
end if
        else
%> 
<div align="center"><font color="#FF0033"><b>文 章 管 理 系 统 v1.0 版</b></font> <font color="#FF0033"><br>
  </font><br>
</div>
<table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td>
      <form name="form1" method="post" action="index.asp?job=login" >
        <div align="center">
          <table width="50%" border="0">
            <tr>
              <td>
                <div align="center">管理员: 
                  <input type="text" name="name" size="20" maxlength="20">
                </div>
              </td>
            </tr>
            <tr>
              <td>
                <div align="center">密 码: 
                  <input type="password" name="pass" size="20" maxlength="20">
                </div>
              </td>
            </tr>
            <tr>
              <td height="29"> 
                <div align="center">
                  <input type="submit" name="Submit" value="进入">
                  <input type="reset" name="Submit2" value="重写">
                </div>
              </td>
            </tr>
          </table>
          <br>
          <br>
             </div>
      </form>
    </td>
  </tr>
</table>

<div align="center"> 
  
   <% end if%>
  <p><br>
  </p>
</div>
<p>&nbsp;</p>
</body>
</html>

⌨️ 快捷键说明

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