📄 dolostpassword.pl
字号:
################################################################################ DoLostPassword.pl ################################################################################# UltraBoard Ver. 1.61 by UltraScripts.com ## Scripts written by Jacky W.W. Yung, WebMaster@UltraScripts.com ## Available from http://www.UltraScripts.com/UltraBoard/ ## --------------------------------------------------------------------------- ## PROGRAM NAME : UltraBoard ## VERSION : 1.61 ## LAST MODIFIED : 30/06/1999 ## =========================================================================== ## COPYRIGHT NOTICE : ## ## Copyright (c) 1999 Jacky Yung. All Rights Reserved. ## ## This program is free software; you can change or modify it as you see fit. ## However, modified versions cannot be sold or distributed. You cannot alter ## the copyright and "powered by" notices throughout the scripts. These ## notices must be clearly visible to the end users. ## ## WARRANTY DISCLAIMER: ## ## THIS PROGRAM IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, BUT WITHOUT ## ANY WARRANTY; WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR ## FITNESS FOR A PARTICULAR PURPOSE. ################################################################################################################################################################ DoLostPassword ################################################################################sub DoLostPassword { &ShowError("输入错误","您必须输入用户名。") if (!$in{'LUserName'}); &ShowError("输入错误","您必须输入电子邮件地址。") if (!$in{'Email'}); $in{'LUserName'}=lc($in{'LUserName'});############################################################################### @MemberInfo=&GetMemberData($in{'LUserName'}); &ShowError("INPUT PROBLEM","Your $UserName account have been disactivated.<br>Please contact the webmaster (".&Link("mailto:$EmailAddress","","").$EmailAddress."</a>".") for more information.") if ($MemberInfo[6] ne "Activate"); $NewPassword=&RandomPassword(); $MemberInfo[2]=Crypt::crypt($NewPassword,substr($in{'LUserName'}, 0, 2)); &SaveMemberData($in{'LUserName'},@MemberInfo); if ($MemberInfo[4] ne $in{'Email'}) { &ShowError("输入错误","对不起您输入的电子邮件地址不是此用户注册时使用的电子邮件。") } $Subject = "您在 $UBName ($URLSite) 的注册信息"; $Message = "您好, $MemberInfo[1]\n\n"; $Message .= "下面是您的注册信息:\n"; $Message .= "------------------------------------\n"; $Message .= "用户名: $in{'LUserName'}\n"; $Message .= "新的密码: $NewPassword\n"; $Message .= "------------------------------------\n"; $Message .= "WebMaster, $UBName\n"; $Message .= "$EmailAddress\n"; $Message .= "$URLSite\n"; $Message .= "------------------------------------\n"; $Message .= "$UBName Administrator Center\n"; &SendMail($UBName."<".$EmailAddress.">",$Subject,$Message,$in{'Email'});############################################################################### &ShowThank( "密码已经发出", "您的密码已经发到下面的电子邮件地址。 to $in{'Email'}.", "3", "UltraBoard.$Ext?Action=SignIn&Type=$in{'Type'}&Category=$in{'Category'}&Board=$in{'Board'}&Post=$in{'Post'}&ID=$in{'ID'}&Idle=$in{'Idle'}&Sort=$in{'Sort'}&Order=$in{'Order'}&Page=$in{'Page'}" ); exit;}###############################################################################1;# End of DoLostPassword Function###############################################################################
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -