⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 resetpass.php

📁 一个通用的php网站的会员系统和通行证系统
💻 PHP
字号:
<?php

import("com.member.admin.biz.UserProperty");

class com_member_admin_action_ResetPass extends Action
{
	function &execute(&$ActionMapping, &$ActionForm, &$IN, &$TPL)
	{	
		$User = & get_singleton("com.member.biz.User");
		
		$Auth = &$IN['Auth']; 

		$UserInfo = $User->getUserInfo($IN['UserID']);
		switch($IN['o']) {
			case 'submit':
				$User->addData("Email", $IN['Email']);
				$User->update($IN['UserID']);

				$mailTpl = ROOT_PATH.$ActionMapping->strutsConfig['template-resources']."/mail/reset_password.txt";
				if($User->sendMail($Addresses, $Title, $Content)) {
					$ActionMapping->doForwardAction( ActionMapping_Referer, 'user.resetPass.ok',1, array($UserInfo['UserID']));					
				} else {
					$ActionMapping->doForwardAction( ActionMapping_Referer, 'user.resetPass.fail');		
				}
				break;
			default:
				$TPL->assign_by_ref('UserInfo', $UserInfo);
				$ActionMapping->findForward("user.resetPass");
				break;
		}




	}

}

?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -