Minahito
minah****@users*****
2006年 7月 19日 (水) 19:28:35 JST
Index: xoops2jp/html/modules/user/kernel/LegacypageFunctions.class.php diff -u xoops2jp/html/modules/user/kernel/LegacypageFunctions.class.php:1.1.2.1 xoops2jp/html/modules/user/kernel/LegacypageFunctions.class.php:1.1.2.2 --- xoops2jp/html/modules/user/kernel/LegacypageFunctions.class.php:1.1.2.1 Wed Jul 19 19:22:25 2006 +++ xoops2jp/html/modules/user/kernel/LegacypageFunctions.class.php Wed Jul 19 19:28:35 2006 @@ -1,7 +1,7 @@ <?php /** * @package user - * @version $Id: LegacypageFunctions.class.php,v 1.1.2.1 2006/07/19 10:22:25 minahito Exp $ + * @version $Id: LegacypageFunctions.class.php,v 1.1.2.2 2006/07/19 10:28:35 minahito Exp $ */ if (!defined('XOOPS_ROOT_PATH')) exit(); @@ -155,6 +155,16 @@ $_SESSION['xoopsUserId'] = $xoopsUser->get('uid'); $_SESSION['xoopsUserGroups'] = $xoopsUser->getGroups(); } + + function checkLoginSuccess(&$xoopsUser) + { + if (is_object($xoopsUser)) { + $handler =& xoops_gethandler('user'); + $xoopsUser->set('last_login', time()); + + $handler->insert($xoopsUser); + } + } function logout(&$successFlag, $xoopsUser) {