Minahito
minah****@users*****
2006年 7月 4日 (火) 18:49:00 JST
Index: xoops2jp/html/modules/pm/pmlite.php diff -u xoops2jp/html/modules/pm/pmlite.php:1.1.2.3 xoops2jp/html/modules/pm/pmlite.php:1.1.2.4 --- xoops2jp/html/modules/pm/pmlite.php:1.1.2.3 Mon Dec 26 21:25:51 2005 +++ xoops2jp/html/modules/pm/pmlite.php Tue Jul 4 18:49:00 2006 @@ -1,54 +1,24 @@ <?php -// $Id: pmlite.php,v 1.1.2.3 2005/12/26 12:25:51 minahito Exp $ -// ------------------------------------------------------------------------ // -// XOOPS - PHP Content Management System // -// Copyright (c) 2000 XOOPSCube.org // -// <http://www.xoopscube.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 // -// ------------------------------------------------------------------------ // +/** + * @package Pm + * @version $Id: pmlite.php,v 1.1.2.4 2006/07/04 09:49:00 minahito Exp $ + */ require_once "../../mainfile.php"; require_once XOOPS_ROOT_PATH . "/header.php"; +require_once XOOPS_MODULE_PATH . "/pm/class/ActionFrame.class.php"; $root =& XCube_Root::getSingleton(); -$renderSystem =& $root->mController->getRenderSystem(); -require_once "./class/PmActionFrame.class.php"; - -$moduleRunner =& new PmActionFrame(); +$moduleRunner =& new Pm_ActionFrame(false); $moduleRunner->setActionName("pmlite"); $root->mController->setDialogMode(true); -// -// Regist the module level easy framework to virtual controller. -// $root->mController->setActionStrategy($moduleRunner); -// -// Execute framework. -// $root->mController->executeAction(); +require_once XOOPS_ROOT_PATH . "/footer.php"; -require_once XOOPS_ROOT_PATH."/footer.php"; - -?> \ No newline at end of file +?> Index: xoops2jp/html/modules/pm/index.php diff -u xoops2jp/html/modules/pm/index.php:1.1.2.2 xoops2jp/html/modules/pm/index.php:1.1.2.3 --- xoops2jp/html/modules/pm/index.php:1.1.2.2 Sun Nov 13 13:34:12 2005 +++ xoops2jp/html/modules/pm/index.php Tue Jul 4 18:49:00 2006 @@ -1,56 +1,24 @@ <?php -// $Id: index.php,v 1.1.2.2 2005/11/13 04:34:12 minahito Exp $ -// ------------------------------------------------------------------------ // -// XOOPS - PHP Content Management System // -// Copyright (c) 2000 XOOPSCube.org // -// <http://www.xoopscube.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 // -// ------------------------------------------------------------------------ // +/** + * @package Pm + * @version $Id: index.php,v 1.1.2.3 2006/07/04 09:49:00 minahito Exp $ + */ require_once "../../mainfile.php"; -require_once XOOPS_ROOT_PATH."/header.php"; +require_once XOOPS_ROOT_PATH . "/header.php"; +require_once XOOPS_MODULE_PATH . "/pm/class/ActionFrame.class.php"; -$root=&XCube_Root::getSingleton(); -$renderSystem=&$root->mController->getRenderSystem(); +$root =& XCube_Root::getSingleton(); -require_once "./class/PmActionFrame.class.php"; +$actionName = isset($_GET['action']) ? trim($_GET['action']) : "default"; -$actionName=strtolower(isset($_GET['action']) ? trim($_GET['action']) : "default"); -if($actionName=="pmlite") - $actionName="default"; - -$moduleRunner=new PmActionFrame(); +$moduleRunner =& new Pm_ActionFrame(false); $moduleRunner->setActionName($actionName); -// -// Regist the module level easy framework to virtual controller. -// $root->mController->setActionStrategy($moduleRunner); -// -// Execute framework. -// $root->mController->executeAction(); +require_once XOOPS_ROOT_PATH . "/footer.php"; -require_once XOOPS_ROOT_PATH."/footer.php"; - -?> \ No newline at end of file +?>