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

Back to archive index

Minahito minah****@users*****
2006年 1月 17日 (火) 19:31:34 JST


Index: xoops2jp/html/modules/user/index.php
diff -u xoops2jp/html/modules/user/index.php:1.1.2.1 xoops2jp/html/modules/user/index.php:1.1.2.2
--- xoops2jp/html/modules/user/index.php:1.1.2.1	Tue Oct 25 20:00:42 2005
+++ xoops2jp/html/modules/user/index.php	Tue Jan 17 19:31:34 2006
@@ -1,50 +1,20 @@
 <?php
-// $Id: index.php,v 1.1.2.1 2005/10/25 11:00:42 minahito Exp $
-//  ------------------------------------------------------------------------ //
-//                XOOPS - PHP Content Management System                      //
-//                    Copyright (c) 2000 XOOPS.org                           //
-//                       <http://www.xoops.org/>                             //
-//  ------------------------------------------------------------------------ //
-//  This program is free software; you can redistribute it and/or modify     //
-//  it under the terms of the GNU General Public License as published by     //
-//  the Free Software Foundation; either version 2 of the License, or        //
-//  (at your option) any later version.                                      //
-//                                                                           //
-//  You may not change or alter any portion of this comment or credits       //
-//  of supporting developers from this source code or any supporting         //
-//  source code which is considered copyrighted (c) material of the          //
-//  original comment or credit authors.                                      //
-//                                                                           //
-//  This program is distributed in the hope that it will be useful,          //
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of           //
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            //
-//  GNU General Public License for more details.                             //
-//                                                                           //
-//  You should have received a copy of the GNU General Public License        //
-//  along with this program; if not, write to the Free Software              //
-//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA //
-//  ------------------------------------------------------------------------ //
 
 require_once "../../mainfile.php";
-require_once XOOPS_ROOT_PATH.'/header.php';
+require_once XOOPS_ROOT_PATH . "/header.php";
+require_once XOOPS_MODULE_PATH . "/user/class/ActionFrame.class.php";
 
-// If user is registered user, kick him to own page.
-if($xoopsUser) {
-	header('Location: '.XOOPS_MODULE_URL.'/user/userinfo.php?uid='.$xoopsUser->getVar('uid'));
-	exit();
-}
-
-$xoopsOption['template_main'] = 'user_userform.html';
-
-// ? start @todo I must check what this process.
-if (isset($_COOKIE[$xoopsConfig['usercookie']])) {
-    $xoopsTpl->assign('usercookie', $_COOKIE[$xoopsConfig['usercookie']]);
-}
-if (isset($_GET['xoops_redirect'])) {
-    $xoopsTpl->assign('redirect_page', htmlspecialchars(trim($_GET['xoops_redirect']), ENT_QUOTES));
-}
-// ? end
+$root =& XCube_Root::getSingleton();
 
-require_once XOOPS_ROOT_PATH."/footer.php";
+$actionName = isset($_GET['action']) ? trim($_GET['action']) : "default";
 
-?>
\ No newline at end of file
+$moduleRunner = new User_ActionFrame(false);
+$moduleRunner->setActionName($actionName);
+
+$root->mController->setActionStrategy($moduleRunner);
+
+$root->mController->executeAction();
+
+require_once XOOPS_ROOT_PATH . "/footer.php";
+
+?>


xoops-cvslog メーリングリストの案内
Back to archive index