[xoops-cvslog 3344] CVS update: xoops2jp/html/modules/user/kernel

Zurück zum Archiv-Index

Minahito minah****@users*****
2006年 6月 22日 (木) 14:38:46 JST


Index: xoops2jp/html/modules/user/kernel/UserEventProxyRegister.class.php
diff -u xoops2jp/html/modules/user/kernel/UserEventProxyRegister.class.php:1.1.2.7 xoops2jp/html/modules/user/kernel/UserEventProxyRegister.class.php:1.1.2.8
--- xoops2jp/html/modules/user/kernel/UserEventProxyRegister.class.php:1.1.2.7	Tue Mar 28 22:32:19 2006
+++ xoops2jp/html/modules/user/kernel/UserEventProxyRegister.class.php	Thu Jun 22 14:38:46 2006
@@ -93,6 +93,31 @@
 
 		return $loginEventArgs;
 	}
+	
+	/**
+	 * [Notice]
+	 * New function for new delegate. Of course, we'll change the name before
+	 * released.
+	 */
+	function NewLogin(&$xoopsUser)
+	{
+		if (is_object($xoopsUser)) {
+			return;
+		}
+
+		if (!empty($_SESSION['xoopsUserId'])) {
+			$memberHandler=xoops_gethandler('member');
+			$user =& $memberHandler->getUser($_SESSION['xoopsUserId']);
+			$xoopsUser = $user;
+			if(!is_object($xoopsUser)) {
+				$xoopsUser = null;
+				$_SESSION = array();
+			}
+			else {
+				$xoopsUser->setGroups($_SESSION['xoopsUserGroups']);
+			}
+		}
+	}
 }
 
 ?>
\ No newline at end of file


xoops-cvslog メーリングリストの案内
Zurück zum Archiv-Index