NobuNobu
nobun****@users*****
2006年 2月 5日 (日) 22:12:16 JST
Index: xoops2jp/html/modules/user/class/LostpassMailBuilder.class.php diff -u xoops2jp/html/modules/user/class/LostpassMailBuilder.class.php:1.1.2.3 xoops2jp/html/modules/user/class/LostpassMailBuilder.class.php:removed --- xoops2jp/html/modules/user/class/LostpassMailBuilder.class.php:1.1.2.3 Tue Jan 17 19:36:25 2006 +++ xoops2jp/html/modules/user/class/LostpassMailBuilder.class.php Sun Feb 5 22:12:16 2006 @@ -1,49 +0,0 @@ -<?php - -class LostpassMailBuilder -{ - var $mMailer; - - function LostpassMailBuilder() - { - $this->mMailer=&getMailer(); - $this->mMailer->useMail(); - } - - function setToUsers($user,$xoopsConfig) - { - $this->mMailer->setToUsers($user); - } - - function setFromEmail($user,$xoopsConfig) - { - $this->mMailer->setFromEmail($xoopsConfig['adminmail']); - $this->mMailer->setFromName($xoopsConfig['sitename']); - } - - function setSubject($user,$xoopsConfig) - { - $this->mMailer->setSubject(sprintf(_US_NEWPWDREQ,$xoopsConfig['sitename'])); - } - - function setTemplate() - { - $this->mMailer->setTemplate("lostpass1.tpl"); - } - - function doAssign($user,$xoopsConfig) - { - $this->mMailer->assign("SITENAME", $xoopsConfig['sitename']); - $this->mMailer->assign("ADMINMAIL", $xoopsConfig['adminmail']); - $this->mMailer->assign("SITEURL", XOOPS_URL."/"); - $this->mMailer->assign("IP", $_SERVER['REMOTE_ADDR']); - $this->mMailer->assign("NEWPWD_LINK", XOOPS_URL."/lostactv.php?email=".$user->get('email')."&code=".substr($user->get("pass"), 0, 5)); - } - - function &getResult() - { - return $this->mMailer; - } -} - -?> \ No newline at end of file Index: xoops2jp/html/modules/user/class/LostpassMailDirector.class.php diff -u xoops2jp/html/modules/user/class/LostpassMailDirector.class.php:1.1.2.3 xoops2jp/html/modules/user/class/LostpassMailDirector.class.php:removed --- xoops2jp/html/modules/user/class/LostpassMailDirector.class.php:1.1.2.3 Tue Jan 17 19:36:25 2006 +++ xoops2jp/html/modules/user/class/LostpassMailDirector.class.php Sun Feb 5 22:12:16 2006 @@ -1,27 +0,0 @@ -<?php - -class LostpassMailDirector -{ - var $mBuilder; - var $mXoopsUser; - var $mXoopsConfig; - - function LostpassMailDirector(&$builder,&$user,&$xoopsConfig) - { - $this->mBuilder=&$builder; - $this->mXoopsUser=&$user; - $this->mXoopsConfig=&$xoopsConfig; - } - - function contruct() - { - $this->mBuilder->setToUsers($this->mXoopsUser,$this->mXoopsConfig); - $this->mBuilder->setFromEmail($this->mXoopsUser,$this->mXoopsConfig); - $this->mBuilder->setSubject($this->mXoopsUser,$this->mXoopsConfig); - $this->mBuilder->setTemplate(); - $this->mBuilder->doAssign($this->mXoopsUser,$this->mXoopsConfig); - } -} - - -?> \ No newline at end of file