Minahito
minah****@users*****
2006年 1月 17日 (火) 19:38:18 JST
Index: xoops2jp/html/modules/user/kernel/UserEventFunction.class.php diff -u xoops2jp/html/modules/user/kernel/UserEventFunction.class.php:1.1.2.5 xoops2jp/html/modules/user/kernel/UserEventFunction.class.php:1.1.2.6 --- xoops2jp/html/modules/user/kernel/UserEventFunction.class.php:1.1.2.5 Fri Dec 30 17:30:51 2005 +++ xoops2jp/html/modules/user/kernel/UserEventFunction.class.php Tue Jan 17 19:38:18 2006 @@ -1,5 +1,8 @@ <?php +/** + * Static methods' collection for delegates. + */ class UserEventFunction { /** @@ -10,12 +13,12 @@ // $controller=(Base_Controller)$sender; $uid=isset($_REQUEST['uid']) ? intval($_REQUEST['uid']) : 0; if($uid>0) { - $url=XOOPS_MODULE_URL."/user/userinfo.php?uid=".$uid; + $url=XOOPS_MODULE_URL."/user/index.php?action=UserInfo&uid=".$uid; } else { $xoopsUser=&$controller->getXoopsUser(); if(is_object($xoopsUser)) - $url=XOOPS_MODULE_URL."/user/userinfo.php?uid=".$xoopsUser->getVar('uid'); + $url=XOOPS_MODULE_URL."/user/index.php?action=UserInfo&uid=".$xoopsUser->getVar('uid'); } $controller->executeForward($url); @@ -31,12 +34,12 @@ $url=XOOPS_URL; if($uid>0) { - $url=XOOPS_MODULE_URL."/user/edituser.php?uid=".$uid; + $url=XOOPS_MODULE_URL."/user/index.php?action=EditUser&uid=".$uid; } else { $xoopsUser=&$controller->getXoopsUser(); if(is_object($xoopsUser)) - $url=XOOPS_MODULE_URL."/user/edituser.php"; + $url=XOOPS_MODULE_URL."/user/index.php?action=EditUser&uid=".$xoopsUser->get('uid'); } $controller->executeForward($url); @@ -53,7 +56,7 @@ switch($op) { case "main": - $url=is_object($xoopsUser) ? XOOPS_MODULE_URL."/user/userinfo.php?uid=".$xoopsUser->getVar('uid') + $url=is_object($xoopsUser) ? XOOPS_MODULE_URL."/user/index.php?action=UserInfo&uid=".$xoopsUser->getVar('uid') : XOOPS_MODULE_URL."/user/index.php"; $controller->executeForward($url); break;