📄 admin_login.asp
字号:
<!--#include file="Include/gaobei_Setup.asp" -->
<!--#include file="Conn.asp"-->
<!--#include file=Include/check.asp-->
<!--#include file="other/gaobei_Md5.asp" -->
<%
response.expires = -1
if request("Action")="gaobeiSys_LoginCheck" then
username=Checkin(trim(Request.form("username")))
password=Checkin(replace(trim(Request.Form("password")),"'","''"))
Md5_Pass=md5(password)
gaobeiSys_CheckCode=replace(trim(Request("gaobeiSys_CheckCode")),"'","")
if username="" or password="" then
Response.write"<script>alert(""用户名和密码不能为空! "&Copyright&" "");location.href=""Admin_Login.asp"";</script>"
Response.end
end if
if gaobeiSys_CheckCode<>CStr(session("CheckCode")) then
Response.write"<script>alert(""验证码不正确,请刷新后重新登陆 "&Copyright&" "");location.href=""Admin_Login.asp"";</script>"
Response.end
end if
set rs=server.createobject("adodb.recordset")
sql="select * from admin where username='"&username&"'and password='"&Md5_Pass&"'"
rs.open sql,conn,1,3
if not rs.EOF then
rs("LoginTimes")=rs("LoginTimes")+1
rs("LoginTime")=now()
rs("LoginIP")=Request.ServerVariables("REMOTE_ADDR")
rs.Update
Session(gaobeiManageAdminID)=Rs("id")
Session(gaobeiManageUser)=Rs("username")
Session(gaobeiManageSession)=true
Session(gaobeiManageKey)=Rs("Oskey")
'Session("Admin") = "Login"
Response.Redirect ("Admin.asp")
else
errmsg="请输入正确的管理员名字和密码!"
call error()
Response.End
end if
rs.close
set rs=nothing
conn.close
set conn=nothing
end if
if request("Action")="LoginOut" then
IsAdmin=session(gaobeiManageSession)
If IsAdmin=true Then
set rs=server.createobject("adodb.recordset")
AdminID=session(gaobeiManageAdminID)
sql="select * from admin where id="&AdminID
rs.open sql,conn,1,3
if not rs.EOF then
rs("LogoutTime")=now()
rs.Update
Session(gaobeiManageAdminID)=""
Session(gaobeiManageUser)=""
Session(gaobeiManageSession)=""
Session(gaobeiManageKey)=""
'Session("Admin")=""
rs.Close
set rs=nothing
else
response.write"数据出错!"
Response.end
end if
end if
conn.close
set conn=nothing
Response.Write "<script>location.href=""javascript:window.close()"";</script>"
'response.redirect ("Index.asp")
'Response.Write "<script>alert(""退出成功!"");location.href=""javascript:window.close()"";</script>"
end if
%>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>心情驿站--后台管理</title>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<link href="other/gaobei_style.css" rel="stylesheet" type="text/css">
<STYLE type=text/css>.style2 {
FONT-WEIGHT: bold; COLOR: #ffffff
}
.style3 {
FONT-SIZE: 12px
}
.style4 {
FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: #ffffff
}
BODY {
MARGIN: 0px
}
</STYLE>
<BODY>
<TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%" bgColor=#00309c border=0>
<TBODY>
<TR>
<TD vAlign=center height="26%"> </TD></TR>
<TR>
<TD height=2>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD
style="FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=1, StartColorStr='#5A7EDC', EndColorStr='#C7DDFF')"
width="31%" height=2></TD>
<TD
style="FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=1, StartColorStr='#C7DDFF', EndColorStr='#5A7EDC')"
width="69%" height=2></TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD bgColor=#5a7edc height="48%">
<TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD style="PADDING-RIGHT: 12px" align=right width="57%">
<DIV style="PADDING-RIGHT: 40px"></DIV>
<DIV style="FONT-WEIGHT: bold; FONT-SIZE: 14pt"><BR>
<TABLE cellSpacing=3 cellPadding=5 width="505" border=0>
<TBODY>
<TR>
<TD width="489" colspan="2"><font color="#FFFFFF"><b>===后台管理系统===</b></font></TD></TR>
<TR>
<TD width="214">
<DIV align=left>
<script language="JavaScript">
<!--
// Randomizer
rnd.today=new Date();
rnd.seed=rnd.today.getTime();
function rnd() {
rnd.seed = (rnd.seed*9301+49297) % 233280;
return rnd.seed/(233280.0);
};
function rand(number) {
return Math.ceil(rnd()*number);
};
// end randomizer. -->
</script>
<script language="JavaScript">
<!--
document.write('<IMG SRC="images/logo/gaobei_logo' + rand(6) + '.jpg">');
//-->
</script>
</DIV></TD>
<TD width="262" valign="bottom">
<p align="center">
<IMG height=56 alt=高贝系统 src="images/logo/xplog.gif" width=164 align="right"></TD></TR>
<TR>
<TD width="489" colspan="2">
<DIV align=right><font color="#FFFFFF">购买空间、域名,就找西部商务</font></DIV></TD></TR>
<TR>
<TD width="489" colspan="2">
<p align="right"><font color="#FFFFFF">我们一直在努力,所以每天在进步</font></TD></TR>
<TR>
<TD width="489" colspan="2"> </TD></TR></TBODY></TABLE><SPAN
class=style4><BR><BR></SPAN></DIV></TD>
<TD width=1>
<TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%"
border=0>
<TBODY>
<TR>
<TD
style="FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr='#5A7EDC', EndColorStr='#C7DDFF')"
height="50%"></TD></TR>
<TR>
<TD
style="FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr='#C7DDFF', EndColorStr='#5A7EDC')"
height="50%"><IMG height=1
src=""
width=1> </TD></TR></TBODY></TABLE></TD>
<TD id=td0 width="43%">
<form name="login" method="post" action="Admin_login.asp?Action=gaobeiSys_LoginCheck" target="_top">
<IMG height=15 alt=高贝系统 src="images/logo/footc.jpg" width=1>
<TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD vAlign=center align=middle>
<div align="center">
<TABLE id=table1 style="MARGIN: 20px" cellSpacing=3
cellPadding=5 width="93%" border=0
valign="middle">
<TBODY>
<TR>
<TD align=middle colSpan=3></TD></TR>
<TR>
<TD noWrap align=right>
<DIV class=style4 align=right>管理帐号:</DIV></TD>
<TD colSpan=2>
<input name="username" type="text" id="UserName5" style="BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid; BORDER-LEFT: 1px solid; WIDTH: 110px; BORDER-BOTTOM: 1px solid"
maxlength="20" class="login"></TD></TR>
<TR>
<TD align=right>
<DIV class=style4 align=right>管理密码:</DIV></TD>
<TD colSpan=2><input name="password" type="password" id="Password3" maxlength="20" class="login" style="BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid; BORDER-LEFT: 1px solid; WIDTH: 110px; BORDER-BOTTOM: 1px solid">
</TD></TR>
<TR>
<TD align=right>
<DIV class=style4 align=right>验 证 码:</DIV></TD>
<TD width=83>
<input name="gaobeiSys_CheckCode" type="text" class="login" id="gaobeiSys_CheckCode" size=12 maxlength="20" style="BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid; BORDER-LEFT: 1px solid; WIDTH: 70px; BORDER-BOTTOM: 1px solid"></TD>
<TD width=214><img src="other/gaobei_GetCode.asp"></TD></TR>
<TR vAlign=center align=left>
<TD colSpan=3 height=40> <STRONG>
<input type="submit" name="Submit3" value=" 登陆 " style="BORDER-RIGHT: #5a7edc 1px; BORDER-TOP: #5a7edc 1px; BORDER-LEFT: #5a7edc 1px; WIDTH: 40px; COLOR: white; BORDER-BOTTOM: #5a7edc 1px; BACKGROUND-COLOR: #5a7edc">
<input type="reset" name="Submit2" value=" 重置 " style="BORDER-RIGHT: #5a7edc 1px; BORDER-TOP: #5a7edc 1px; BORDER-LEFT: #5a7edc 1px; WIDTH: 70px; COLOR: white; BORDER-BOTTOM: #5a7edc 1px; BACKGROUND-COLOR: #5a7edc">
</STRONG>
<DIV align=center></DIV></TD></TR></TBODY></TABLE></div>
</TD></TR></TBODY></TABLE></FORM></TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD
style="FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=1, StartColorStr='#0C3CA1', EndColorStr='#F49538')"
width="31%" height=2></TD>
<TD
style="FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=1, StartColorStr='#F49538', EndColorStr='#0C3CA1')"
width="69%" height=2></TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD vAlign=bottom align=right height="26%">
<DIV align=right>
</DIV></TD></TR></TBODY></TABLE></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -