📄 pop_pword.asp
字号:
<%
'#############################################################
'# 中国在线--极酷论坛 ver.2001 3.0
'#
'# 版权所有: 中国在线 (ChinaXP.Net)
'#
'# 制作人 : 周周 (SeeYa!)
'#
'#
'# 主页地址: http://www.ChinaXP.net/ 中国在线
'# http://www.ChinaXP.Net/bbs/ 中国在线--极酷论坛
'#
'#############################################################
%>
<!--#INCLUDE FILE="config.asp" -->
<!--#INCLUDE FILE="inc_functions.asp" -->
<!--#INCLUDE FILE="inc_top_short.asp" -->
<%
if Request.QueryString("mode") = "DoIt" then
Err_Msg = ""
if (Request.Form("Name") = "") then
Err_Msg = Err_Msg & "<li>你必须输入你的用户名</li>"
end if
if (Request.Form("Email") = "") then
Err_Msg = Err_Msg & "<li>你必须输入你的电子邮件地址!</li>"
end if
if (EmailField(Request.Form("Email")) = 0) then
Err_Msg = Err_Msg & "<li>必须填写正确的电子邮件地址</li>"
end if
'## Emails Password to Requestor if Authenticated Properly.
'## This needs to be Edited to use your own email component
'## if you don't have one, try the w3Jmail component from www.dimac.net it's free!
if lcase(strEmail) = "1" then
if (Err_Msg = "") then
'## Forum_SQL
strSql = "SELECT M_NAME, M_PASSWORD, M_EMAIL "
strSql = strSql & " FROM " & strMemberTablePrefix & "MEMBERS "
strSql = strSql & " WHERE M_NAME = '" & Request.Form("Name") & "' AND "
strSql = strSql & " M_EMAIL = '" & Request.Form("Email") & "'"
set rs = my_Conn.Execute (strSql)
strRecipientsName = Request.Form("Name")
strRecipients = Request.Form("Email")
strSubject = strForumTitle & " " & "密码寻回"
strMessage = vbCrLf & "由于你在 " & strForumTitle & " 的注册密码丢失,现在我们通过 Email 重新发送密码给你,请妥善保管好..." & vbCrLf & "我们的网站地址: " & strForumURL & vbCrLf & vbCrLf
if rs.EOF or rs.BOF then
strMessage = strMessage & "对不起,你的电子邮件信箱与您的个人资料里的不相同!请核对您注册时的电子信箱地址!" & vbCrLf & vbCrLf
strMessage = strMessage & "请您到 " & strForumURL & " 重新进行注册,多谢合作!" & vbCrLf
Else
strMessage = strMessage & " 你的密码是: " & rs("M_PASSWORD") & vbCrLf
end if
strMessage = strMessage & "欢迎光临 " & strForumTitle
%>
<!--#INCLUDE FILE="inc_mail.asp" -->
<%
rs.close
set rs = nothing
' Response.Write vbCrLf & "<br>发件人: " & strSender & vbCrLf & "<br>Recipients: " & strRecipients & vbCrLf & "<br>主题: " & strSubject & vbCrLf & "<br>Message: " & strMessage & vbCrLf & "<br>"
Response.Write "<p><font face=" & strDefaultFontFace & " size=" & strHeaderFontSize & ">密码已经发送回你的信箱!</font></p>" & vbCrLf
Response.Write "<p><font face=" & strDefaultFontFace & " size=" & strDefaultFontSize & ">请检查你的电子邮箱.</font></p>" & vbCrLf
else
%>
<p><font face="<% =strDefaultFontFace %>" size="<% =strHeaderFontSize %>">这封电子邮件有问题,可能有输入错误或没有填写完整。</font></p>
<table>
<tr>
<td>
<ul>
<% =Err_Msg %>
</ul>
</td>
</tr>
</table>
<p><font size="<% =strDefaultFontSize %>"><a href="JavaScript:history.go(-1)">请返回重新输入</a></font></p>
<p><font size="<% =strDefaultFontSize %>"><a href="JavaScript:onClick= window.close()">关闭窗口</A></font></p>
<%
Response.End
end if
end if
Else
%>
<p><font face="<% =strDefaultFontFace %>" size="<% =strHeaderFontSize %>">密码寻回</font></p>
<form action="pop_pword.asp?mode=DoIt" method="post">
<table border="0" width="75%" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="<% =strPopUpBorderColor %>">
<table border="0" width="100%" cellspacing="1" cellpadding="1">
<TBODY>
<TR>
<TD bgColor=<% =strPopUpTableColor %> align=right nowrap><b><FONT face="<% =strDefaultFontFace %>" size=<% =strDefaultFontSize %>>用户名称:</font></b></TD>
<TD bgColor=<% =strPopUpTableColor %>><INPUT name=Name size=25></TD>
<TR>
<TD bgColor=<% =strPopUpTableColor %> align=right nowrap><b><FONT face="<% =strDefaultFontFace %>" size=<% =strDefaultFontSize %>>邮件地址:</font></b></TD>
<TD bgColor=<% =strPopUpTableColor %>><INPUT name=email size=25 value=""></TD>
</TR>
<TD bgColor=<% =strPopUpTableColor %> align=middle colSpan=2><INPUT name=submit1 type=submit value=提交></TD>
</TR>
</TBODY>
</TABLE>
</td>
</tr>
</table>
</form>
<% end if %><!--#INCLUDE FILE="inc_footer_short.asp" -->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -