Minahito
minah****@users*****
2006年 2月 2日 (木) 17:50:32 JST
Index: xoops2jp/html/modules/user/forms/RegisterUserEditForm.class.php diff -u xoops2jp/html/modules/user/forms/RegisterUserEditForm.class.php:1.1.2.6 xoops2jp/html/modules/user/forms/RegisterUserEditForm.class.php:1.1.2.7 --- xoops2jp/html/modules/user/forms/RegisterUserEditForm.class.php:1.1.2.6 Wed Nov 16 19:13:38 2005 +++ xoops2jp/html/modules/user/forms/RegisterUserEditForm.class.php Thu Feb 2 17:50:32 2006 @@ -8,6 +8,11 @@ { var $mConfig; + function getTokenName() + { + return "module.user.RegisterUserEditForm.TOKEN"; + } + function RegisterUserEditForm() { } @@ -71,8 +76,8 @@ if(strlen($this->getVar('pass'))>0||strlen($this->getVar('vpass'))>0) if($this->getVar('pass')!=$this->getVar('vpass')) { $this->addErrorMessage(_MD_USER_ERROR_PASSWORD); - $this->setVar('pass',null); // reset - $this->setVar('vpass',null); + $this->set('pass',null); // reset + $this->set('vpass',null); } } @@ -151,18 +156,18 @@ function update(&$user) { - $user->setVar('uname',$this->getVar('uname'),true); - $user->setVar('email',$this->getVar('email'),true); - $user->setVar('user_viewemail',$this->getVar('user_viewemail'),true); - $user->setVar('url',$this->getVar('url'),true); - $user->setVar('user_avatar','blank.gif',true); - $user->setVar('pass', md5($this->getVar('pass')), true); - // $user->setVar('timezone_offset',$this->getVar('timezone_offset'),true); - $user->setVar('user_mailok',$this->getVar('user_mailok'),true); + $user->set('uname',$this->getVar('uname'),true); + $user->set('email',$this->getVar('email'),true); + $user->set('user_viewemail',$this->getVar('user_viewemail'),true); + $user->set('url',$this->getVar('url'),true); + $user->set('user_avatar','blank.gif',true); + $user->set('pass', md5($this->getVar('pass')), true); + // $user->set('timezone_offset',$this->getVar('timezone_offset'),true); + $user->set('user_mailok',$this->getVar('user_mailok'),true); $actkey=substr(md5(uniqid(mt_rand(),1)),0,8); - $user->setVar('actkey',$actkey,true); - $user->setVar('user_regdate',time(),true); + $user->set('actkey',$actkey,true); + $user->set('user_regdate',time(),true); } }