?? userpass.asp
字號(hào):
</tr>
</table> </form>
<%else%>
<p align=center><font color=red size=5><br><br>您還沒有通過審核!<br><br>如果您非本系統(tǒng)人員,<br><br>您的賬號(hào)將被刪除!</font></p>
<% end if
end if
if request("action")="get" then
%><center>
<form action="userpass.asp?action=get2" method=post>
<table border=1 bgcolor=#E4F7FE bordercolor=#3399ff><br>
<tr align="center" >
<td height="23" colspan="4" background="images/NavBG.gif"> <img src="images/User.gif" width="20" height="20"><font color=ffaa00>取回我的密碼--第一步</font></td>
</tr>
<tr >
<td height="5" colspan="4" align="center" bordercolor="#FF9900" background="images/loginLine.gif" > </td>
</tr>
<tr>
<td colspan="2" bgcolor="#aaccff" >輸入你的賬號(hào) </td>
<td colspan="2" bgcolor="#aaccff"> <input name=pusername type=text value="" > </td>
</tr>
<tr >
<td height="5" colspan="4" align="center" bordercolor="#FF9900" background="images/bj.gif"> <input type=submit value="提交" class=ibox> <input type=reset value="重置" class=ibox> </td>
</tr>
</table>
</form>
<%
end if
if request("action")="get2" then
puname=request.form("pusername")
sql="select * from ct_sql where username='"&puname&"'"
rs.open sql,cn,1,1
if rs.eof and rs.bof then
response.write "<script>alert('沒有此用戶');history.back()</script>"
else
shenhe=rs("noshenhe")
askaa=trim(rs("passwordask"))
if (askaa<>empty or askaa<>"未設(shè)定") then
if shenhe=0 then
response.write "<script>alert('這個(gè)帳號(hào)還沒有通過審核');history.back()</script>"
else
passask=rs("passwordask")
%>
<form action="userpass.asp?action=get3" method=post>
<table border=1 bgcolor=#E4F7FE bordercolor=#3399ff align=center>
<tr align="center" >
<td height="23" colspan="4" background="images/NavBG.gif"> <img src="images/User.gif" width="20" height="20"><font color=ffaa00>取回我的密碼--第二步</font></td>
</tr>
<tr>
<td colspan="2" bgcolor="#aaccff" >您的密碼問題 </td>
<td colspan="2" bgcolor="#aaccff"> <%=passask%> </td>
</tr>
<tr>
<td colspan="2">輸入密碼答案 </td>
<td colspan="2"> <input name=passanwser type=text value="" > </td>
<input name="puser" type=hidden value=<%=puname%> >
</tr>
<tr >
<td height="5" colspan="4" align="center" bordercolor="#FF9900" background="images/bj.gif"> <input type=submit value="提交" class=ibox> <input type=reset value="重置" class=ibox> </td>
</tr>
<tr >
<td height="5" colspan="4" align="center" bordercolor="#FF9900" background="images/loginLine.gif" > </td>
</tr>
</table> </form>
<%end if
else
response.write "<script>alert('你沒有設(shè)置密碼保護(hù)\n\n請(qǐng)找管理員給與密碼還原');history.back();</script>"
end if
end if
end if
if request("action")="get3" then
user=request.form("puser")
anwsernew=trim(request.form("passanwser"))
if anwsernew=empty then
response.write "<script>alert('沒有輸入答案');history.back();</script>"
else
anwsernew=MD5(anwsernew)
sql="select * from ct_sql where username='"&user&"'"
rs.open sql,cn,3,3
anwser=rs("passwordanwser")
id=rs("id")
if anwser=anwsernew then
%>
<form action="?action=get4" method=post>
<table border=1 bgcolor=#E4F7FE bordercolor=#3399ff align=center>
<tr align="center" >
<td height="23" colspan="4" background="images/NavBG.gif"> <img src="images/User.gif" width="20" height="20"><font color=ffaa00>取回我的密碼--第三步</font></td>
</tr>
<tr>
<td colspan="2">輸入新密碼
</td>
<td colspan="2"> <input name=passnew type=password value="" >
</td>
<input name=aid type=hidden value=<%=id%> >
</tr>
<tr >
<td height="5" colspan="4" align="center" bordercolor="#FF9900" background="images/bj.gif">
<input type=submit value="提交" class=ibox>
<input type=reset value="重置" class=ibox>
</td>
</tr>
<tr >
<td height="5" colspan="4" align="center" bordercolor="#FF9900" background="images/loginLine.gif" > </td>
</tr>
</table>
</form>
<%
elseif anwser<>anwsernew then
response.write "<script>alert('密碼保護(hù)答案不正確');history.back();</script>"
end if
rs.close
end if
end if
if request("action")="get4" then
aid=request.form("aid")
pass=trim(request.form("passnew"))
if pass=empty then
response.write "<script>alert('沒有輸入任何字符');history.back();</script>"
else
pass=md5(pass)
sql="select * from ct_sql where id="&aid
rs.open sql,cn,3,3
rs("password")=pass
rs.update
end if
rs.close
response.write "<script>alert('密碼重設(shè)成功!請(qǐng)牢記!');location.href='index.asp';</script>"
end if
%>
</center>
</center></td>
</tr>
</table>
<p> </p>
</td>
</tr>
<tr >
<td height="46" colspan="2" VALIGN=TOP background="images/bottom_bg.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="15" ALIGN=RIGHT> </td>
</tr>
<tr>
<td height="30" align="center" valign="middle"> <font color="#FF9900">推薦<font color="#FF0000">1024*768</font>分辨率</font>
<font color="green">Copyright © 2005 <font color="#FF0000">野馬</font>
All Rights Reserved</font> </td>
</tr>
</table></td>
</tr>
<tr >
<td height="34" colspan="2" > <!--#include file="foot.asp"--></td>
</tr>
</table>
</div>
</body>
<%
if request("action")="xiugaiask" then
session("xiugaiask")=1
response.write "<script>location.href='userpass.asp?action=xiugai'</script>"
end if
%>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -