?? index.asp
字號(hào):
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%><!--#include file="qwbm_conn.asp"--><!--#include file="qwbm_md5.asp"--><%
if request("action")="login" then
dim xzename,xzpassword,yianzhen,formss
xzename = username(replace(trim(request("passname")),"'","''"))
xzpassword = md5(username(replace(trim(request("password")),"'","''")))
yianzhen = username(trim(request("yianzhen")))
yianzhenma = session("qwbm_code")
call requesturl(xzename,"提交的用戶名中有非法參數(shù),禁止提交","","","")
if yianzhen <> yianzhenma then
call errbox("驗(yàn)證碼不正確,請(qǐng)正確輸入驗(yàn)證碼","","","","")
end if
set man=server.createobject("adodb.recordset")
man.open "select * from qwbmxuser where qwbmuname='"& xzename &"'",conn,1,3
if man.eof and man.bof then
call errbox("用戶不存在","","","","")
else
if xzpassword <> man("qwbmupwds") then
call errbox("密碼不正確","","","","")
else
man("qwbmloginip") = Request.ServerVariables("REMOTE_ADDR")
man("qwbmlogintime") = now()
man("qwbmlogincounts") = man("qwbmlogincounts")+1
man.update
qwbmuname = request.cookies(""& qwbmcms2 &"username")
response.cookies(""& qwbmcms2 &"username") = man("qwbmuname")
response.cookies(""& qwbmcms2 &"username").expires = dateadd("h",100000,now())
end if
end if
man.close
set man = nothing
conn.close
set conn=nothing
session(""& qwbmcms2 &"bb") = ""
call errbox("成功登錄后臺(tái),現(xiàn)在進(jìn)入后臺(tái)","qwbm_index.asp","","","")
end if
%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title><%=qwbmcms1%></title>
<style type="text/css">
html,body,td,th {font-size:12px;color:#979596;font:normal 12px/160% Tahoma,Arial,宋體,sans-serif;}
form{margin:0;padding:0;border:0;}
input {font:normal 12px/160% Tahoma,Arial,宋體,sans-serif;}
.text1,.text2,.text3 {height:23px;border:1px #969696 solid;background:#ffffff;font-weight:bold;font-size:18px;letter-spacing:1px;color:#000;line-height:18px;}
.text1 {width:70px;}
.text2 {width:70px;}
.text3 {width:60px;}
.text4 {width:65px;height:23px;border:1px #969696 solid;background:#969696;font-weight:bold;color:#fff;line-height:18px;}
a:link,a:visited {color:#000;text-decoration:none;}
a:hover {color:#f00;}
.footer {clear:both;text-align:center;font:normal 12px/160% Tahoma,Arial,宋體,sans-serif;font-size:14px;}
.footer a {margin:0 8px 0 0;}
</style>
<script language="javascript" type="text/javascript">
function cheack(){
var form = document.getElementById("form1");
if (form.passname.value.replace(/ /g,"") == ""){
alert("用戶名不能為空");
form.passname.focus();
return false;
}
if (form.password.value.replace(/ /g,"") == ""){
alert("密碼不能為空");
form.password.focus();
return false;
}
if (isNaN(form.yianzhen.value)){
alert("驗(yàn)證碼必須為數(shù)字");
form.yianzhen.focus();
return false;
}
if (form.yianzhen.value.replace(/ /g,"")==""){
alert("驗(yàn)證碼不能為空");
form.yianzhen.focus();
return false;
}
return true;
}
</script>
</head>
<body>
<form id="form1" name="form1" method="post" action="index.asp?action=login" onSubmit="return cheack();">
<table width="475" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-top:10%;">
<tr>
<td colspan="3" align="center"><img src="images/logintop.gif" width="525" height="9" /></td>
</tr>
<tr>
<td width="11" rowspan="3" align="left"><img src="images/loginleft.gif" width="10" height="272" /></td>
<td width="504" style="border:1px solid #979596;line-height:27px;text-align:right;padding-right:10px;">深山行者信息管理系統(tǒng) V2.0</td>
<td width="10" rowspan="3" align="right"><img src="images/loginright.gif" width="10" height="272" /></td>
</tr>
<tr>
<td height="212" align="center"><img src="images/adminlogin.gif" width="505" height="214" /></td>
</tr>
<tr>
<td style="border:1px solid #979596;line-height:25px;"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="font-weight:bold;line-height:23px;">
<tr>
<td width="11%" height="27" align="right">用戶名:</td>
<td width="15%"><input name="passname" type="text" class="text1" size="10" maxlength="25" /></td>
<td width="9%" align="right">密碼:</td>
<td width="15%"><input name="password" type="password" class="text2" size="10" maxlength="25" /></td>
<td width="11%" align="right">驗(yàn)證碼:</td>
<td width="13%"><input name="yianzhen" type="text" class="text3" size="5" maxlength="4" /></td>
<td width="11%" align="right"><img src="qwbm_code.asp" alt="驗(yàn)證碼,看不清楚?請(qǐng)點(diǎn)擊刷新驗(yàn)證碼" style="cursor:pointer; vertical-align:middle;height:18px;" onClick="this.src='qwbm_code.asp?t='+Math.random()" /></td>
<td width="15%" align="center"><input type="submit" class="text4" name="Submit" value="登 陸" /></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="3" align="center"><img src="images/loginbottom.gif" width="525" height="9" /></td>
</tr>
</table>
</form>
<div class="footer">制作:<a title="深山行者" href="tencent://message/?uin=565449214&Site=深山行者&Menu=yes" target="blank">深山行者</a> 網(wǎng)站:<a href="http://www.qwbm.com" target="_blank">http://www.qwbm.com</a></div>
<!--
'----------------------------------------------------------------------
'**********************************************************************
'轉(zhuǎn)發(fā)時(shí)請(qǐng)保留此聲明信息,這段聲明不并會(huì)影響你的速度!
'******************* 深山行者文章管理系統(tǒng) *******************************
'作者:深山行者
'網(wǎng)站:http://www.qwbm.com
'電子郵件:sosufolj@163.com
'聯(lián)系QQ:565449214
'版權(quán)聲明:版權(quán)所有,源代碼公開,各種用途均可免費(fèi)使用,但是修改后必須把修改后的文件
'發(fā)送一份給作者.并且保留作者此版權(quán)信息
'**********************************************************************
'----------------------------------------------------------------------
-->
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -