function __construct() { parent::__construct(); $this->userinfo['id'] = $this->input['id']; $this->userinfo['username'] = urldecode($this->input['username']); $this->userinfo['email'] = urldecode($this->input['email']); //获取发邮件配置 require ROOT_PATH . 'lib/class/uset.class.php'; $mUset = new uset(); $arr = array('emailsend', 'emailwrapbracket', 'emailtype', 'usessl', 'smtphost', 'smtpport', 'smtpuser', 'smtppassword', 'email_footer', 'email_title', 'system_name', 'verify_url', 'email_content', 'pwd_title', 'pwd_content', 'pwd_verify_url'); $rt = $mUset->get_desig_uset($arr); unset($rt['result']); $config = array(); foreach ($rt as $k => $v) { $config[$v['identi']] = $v['status']; } $this->settings = $config; $this->from = $this->settings['emailsend']; $this->emailwrapbracket = $this->settings['emailwrapbracket']; if ($this->settings['emailtype'] == 'smtp') { $this->emailtype = 'smtp'; $this->smtpport = empty($this->settings['smtpport']) ? 25 : intval($this->settings['smtpport']); $this->smtphost = empty($this->settings['smtphost']) ? 'localhost' : $this->settings['smtphost']; if ($this->settings['usessl']) { $this->smtphost = 'ssl://' . $this->smtphost; } $this->smtpuser = $this->settings['smtpuser']; $this->smtppassword = $this->settings['smtppassword']; } $this->boundry = "----=_NextPart_000_0022_01C1BD6C.D0C0F9F0"; $this->settings['system_name'] = $this->clean_message($this->settings['system_name']); $this->from_user = $this->settings['system_name']; }