📄 admin_index.asp
字号:
<link href=css.css rel=STYLESHEET type=text/css>
<title>BBSFTP Web配置管理</title>
<html>
<body>
<%
if request("action")="login" then
'用户登录
dim username,password
username = request("admin_name")
password = request("admin_pass")
'在这里验证用户登录是否正确
'dim rs
'set rs = server.createobject("adodb.recordset")
'rs.open "select * from admin where username='" & username & "' and password='" & password & "'",LOGconn
'if rs.bof and rs.eof then
' '登录失败;没有找到匹配的帐号;
' response.write "<p align='center'><font color=red>用户名或密码错误!</font></p>"
' call login
'else
' '登录成功;
' session("admin_name")=rs("username")
' response.redirect "admin_bbsftp.asp?manage=1"
'end if
'验证结束
'上面那一段从数据库验证代码注释掉了
'这里只进行简单验证
if username="admin" and password="admin" then '用户名和密码都为admin
session("admin_name")=username
response.redirect "admin_bbsftp.asp?manage=1"
else
'登录失败;没有找到匹配的帐号;
response.write "<p align='center'><font color=red>用户名或密码错误!</font></p>"
call login
end if
'验证结束
else
call login
end if
sub login()
%>
<table border="0" width="30%" cellspacing="1" height="6" align="center">
<tr>
<td width="100%" height="1"> <p align="center" style="margin-top: 0; margin-bottom: 0"><b>
欢迎来到管理中心 </b></p>
</td>
</tr>
<tr>
<td width="100%" height="57">
<form action="?action=login" method="POST" target="_parent">
<table border="0" width="100%" cellspacing="1">
<tr>
<td width="26%"> <div align="right">用户名:</div></td>
<td width="74%" height="30"><input style="FONT-SIZE: 12px; WIDTH: 140px" type="text" name="admin_name" size="40" class=input></td>
</tr>
<tr>
<td width="26%"> <div align="right">密码:</div></td>
<td width="74%" height="30"><input style="FONT-SIZE: 12px; WIDTH: 140px" type="password" name="admin_pass" size="30" class=input></td>
</tr>
<tr>
<td height="30" colspan="2"><div align="center">
<input name=submit type=image id="submit"
src="images/login.gif" alt=进入
align=absMiddle width="93" height="20" cache tppabs="">
</div></td>
</tr>
</table>
</form>
</td>
</tr>
<tr>
<td width="100%" height="1"></td>
</tr>
</table>
<table width="61%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="200"><strong>请注意 <br>
<br>
只有网站的管理员才能登陆网络后台管理中心。<br>
未经过授权的尝试登陆行为将会被记录在案!</strong> <br> <br>
在进入管理中心前,请确定你的浏览器打开了 Cookie 选项。<br>
Cookie 只会存在于当前的浏览器进程中。为了安全起见,当你关闭了浏览器后,Cookie 会失效并被自动删除。</td>
</tr>
</table>
<%end sub%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -