?? wantlogin.asp
字號:
<!--#include file="articleconn.asp"-->
<!--#include file="ip.asp"-->
<!--#include file="MD5/md5.asp" -->
<%
if request("userid1")<>"" then
set rst=server.createobject("adodb.recordset")
sql="select money,online from users where userid='"&request("userid1")&"' and password='"&md5(request("pws"))&"'"
rst.open sql,conn,1,3
'if request.cookies("userid")="" then
' response.write"<script>alert('同一帳號請不要同時多人登錄!');history.back();</Script>"
'else
if rst.eof and rst.bof then
response.write"<script>alert('用戶名或密碼錯誤!');history.back();</Script>"
else
userid=Replace(request.cookies("userid"), "'", "''")
conn.Execute("Delete From online where username='"&request("userid1")&"'")
'application(""&userid&"")=""
response.cookies("userid")=""
response.cookies("password")=""
response.cookies("okerer")=""
response.write"<script>alert('恢復成功你現在可以登陸!');</Script>"
response.write"<script Language=Javascript>location.href = '';</script>"
rst.close
set rst=nothing
conn.close
set conn=nothing
end if
end if
'end if
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>恢復帳號</title>
<SCRIPT>
function formcheck()
{
if (loginform.userid1.value == "")
{
alert('請輸入用戶名。');
loginform.userid1.focus();
return false;
}
if (loginform.pws.value == "")
{
alert('請輸入密碼。');
loginform.pws.focus();
return false;
}
if (loginform.validateCode.value=="")
{
alert('請輸入附加碼,附加碼就在輸入框右邊。');
loginform.validateCode.focus();
return false;
}
return true;
}
</SCRIPT>
<style><!--body, td, p, li, input, select{FONT-SIZE: 9pt; font-family:宋體; COLOR: #ffffff; font-family:Arial}
.fontshadow { width:100%; filter:dropshadow(color=#ffffff,offx=1,offy=1);}
A:link{COLOR: #ffffff; text-decoration: none;}
A:visited{COLOR: #ffffff; text-decoration: none;}
A:Active{color : #ffffff; TEXT-DECORATION: none;}
A:hover{color: #ffffff; TEXT-DECORATION: none;}
A.a1:link{COLOR: #000000; TEXT-DECORATION: none;}
A.a1:visited{COLOR: #000000; TEXT-DECORATION: none;}
A.a1:Active{color : #000000; TEXT-DECORATION: none;}
A.a1:hover{color : #000000; TEXT-DECORATION: none;}
A.a2:link{COLOR: #1B409B; TEXT-DECORATION: none;}
A.a2:visited{COLOR: #1B409B; TEXT-DECORATION: none;}
A.a2:Active{color : #1B409B; TEXT-DECORATION: none;}
A.a2:A:hover{color: #1B409B;T EXT-DECORATION: none;}
.L17{line-height:170%}
.L18{line-height:180%}
.L20{line-height:200%}
--></style>
</head>
<body bgcolor="#0F0DAE" text="0" leftmargin="0">
<div align="center">
<center>
<table border="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="359" id="AutoNumber1" cellpadding="0">
<tr>
<td width="100%">
<img border="0" src="images/login-top.jpg" width="359" height="85"></td>
</tr>
<tr>
<td width="100%">
<img border="0" src="images/login-title.jpg" width="360" height="42"></td>
</tr>
<tr>
<td width="100%" background="images/login-bg.jpg" height="140">
<div align="center">
<center>
<table border="0" cellspacing="1" style="border-collapse: collapse" bordercolor="#111111" width="80%" id="AutoNumber2">
<tr>
<td align="center">
<table align="center" cellSpacing="3" cellPadding="3" width="100%" border="0" style="border-collapse: collapse" bordercolor="#111111">
<form action=wantlogin.asp method=post name=loginform onsubmit="if (!formcheck()) return false;">
<tr>
<td align="center" height="25">
<FONT color=#000000 class="fontshadow">用戶名:<input type="text" onfocus=javascript:this.select(); name="userid1" size="15" style="border: 1px solid #000000; font-size:9pt;color:#000000"></td>
</tr>
<tr>
<td align="center" height="13">
<FONT color=#000000 class="fontshadow">密 碼:<input type="password" onfocus=javascript:this.select(); name="pws" size="15" style="border: 1px solid #000000; font-size:9pt;color:#000000"</td>
</tr>
<tr>
<td align="center" height="13">
<FONT color=#000000 class="fontshadow">驗證碼:<INPUT maxLength=4 onfocus=javascript:this.select(); name=validateCode
onfocus=javascript:this.select(); size=6 style="border: 1px solid #000000; font-size:9pt;color:#000000"> <script src="verify.asp"></script>
</td>
</tr>
<tr>
<td align="center" colSpan="2" height="25">
<input type="image" value=" 登 錄 " name="oker" src="images/index-denglu.gif" width="62" height="18">
<font color="#000000">
<input type=image src="images/register-chongxie.gif" name=B2 value=重新填寫 width="81" height="20"></font>
</td>
</tr>
</form>
</table>
</td>
</tr>
</table>
</center>
</div>
</td>
</tr>
<tr>
<td width="100%">
<img border="0" src="images/login-bottom.gif" width="359" height="28"></td>
</tr>
</table>
</center>
</div>
</body>
</html>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -