home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
221.214.14.186
/
221.214.14.186.tar
/
221.214.14.186
/
zb
/
Notepad-1
/
login.asp
< prev
next >
Wrap
Text File
|
2004-12-09
|
3KB
|
116 lines
<!--#include file=conn.asp-->
<!--#include file=const.asp -->
<!--#include file=md5.asp -->
<% dim rs , exec %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>╫═▓⌐╩╨╞°╧≤╨┼╧ó╞╜╠¿</title>
<META name="Author" content="─╛─±">
<link rel="stylesheet" href="style/<%=skin%>.css" type="text/css">
</head>
<body>
<!--#include file="head.asp"-->
<br>
<table border="0" width="400" cellspacing="0" cellpadding="10" bordercolorlight="#000000" bordercolordark="#FFFFFF" align="center" class="table004">
<tr>
<td class=table003 align=center>╙├╗º╡╟┬╜
</td>
</tr>
<tr>
<td class="table001" align="center">
<%
main()
connclose()
sub main()
dim backInput, homeInput
backInput= "<br><br><input type=button value=╖╡╗╪╟░╥│ onClick=history.back() class=input2 name=button ><br>"
homeInput="<br><br><input type=button value=╜°╚δ┴⌠╤╘▒╛╩╫╥│ onClick=""location.href='index.asp?' "" class=input2><br>"
if request.form="" then
%>
<form name="form" method="post">
<table width="80%" border="0">
<tr>
<td width="30%">╙├ ╗º ├√ú║</td>
<td width="70%">
<input type="text" name="name" size="20" class="input1" value="" maxlength="20">
</td>
</tr>
<tr>
<td>├▄íííí┬δú║</td>
<td>
<input type="password" name="pass" size="20" class="input1" value="" maxlength="20" >
</td>
</tr>
<tr align="center">
<td colspan="2" height="40">
╡╟┬╜▒ú┴⌠ú║<input type=radio name="expTime" value="" checked>▓╗▒ú┴⌠
<input type=radio name="expTime" value="<%=dateAdd("d",1,now)%>">1╠∞
<input type=radio name="expTime" value="<%=dateAdd("ww",1,now)%>">1╓▄
<input type=radio name="expTime" value="<%=dateAdd("m",1,now)%>">1╘┬
<input type=radio name="expTime" value="<%=dateAdd("yyyy",1,now)%>">1─Ω
<br>
<input type="submit" value=" ╡╟ ┬╜ " class="input2" name="Submit" >
</td>
</tr>
</table>
</form>
<%
else
dim name, pass, expTime
name=Encodestr(request.form("name"))
pass=Encodestr(request.form("pass"))
expTime=request.form("expTime")
'response.write expTime
'response.end
if name="" or pass="" then
response.write "<font color=red>╖ó╔·┤φ╬≤</font><br><br>╟δ╩Σ╚δ╙├╗º├√║═├▄┬δúíúíúí"
response.write backInput
exit sub
end if
pass=MD5(pass)
exec="select * from [user] where username='"&name&"' "
set rs=server.createobject("adodb.recordset")
rs.open exec,conn,1,1
if rs.eof then
rsclose()
response.write "<font color=red>╖ó╔·┤φ╬≤</font><br><br>╙├╗º├√▓╗┤µ╘┌úíúíúí"
response.write backInput
exit sub
elseif (StrComp(name,rs("username"),0) <>0 or StrComp(pass,rs("userpassword"),0)<>0) then
rsclose()
response.write "<font color=red>╖ó╔·┤φ╬≤</font><br><br>├▄┬δ┤φ╬≤úíúíúí"
response.write backInput
exit sub
end if
rsclose()
response.write "<font color=red>╡╟┬╜│╔╣ªúíúíúí</font>"
response.write homeInput
if cookiePath<>"" then
response.cookies("gbook").Path=cookiePath
end if
response.cookies("gbook")("username")=vbescape(name)
response.cookies("gbook")("password")=pass
if expTime<>"" then
expTime=Cdate(expTime)
response.cookies("gbook").expires=expTime
end if
end if
end sub %>
</td>
</tr>
</table>
<!--#include file="foot.asp"-->
</body>
</html>