NobuNobu
nobun****@users*****
2006年 11月 4日 (土) 14:20:46 JST
Index: xoops2jp/html/include/common.php diff -u xoops2jp/html/include/common.php:1.4.8.15.2.3 xoops2jp/html/include/common.php:1.4.8.15.2.4 --- xoops2jp/html/include/common.php:1.4.8.15.2.3 Sat Oct 7 15:50:06 2006 +++ xoops2jp/html/include/common.php Sat Nov 4 14:20:46 2006 @@ -1,41 +1,13 @@ <?php /** * @package Legacy - * @version $Id: common.php,v 1.4.8.15.2.3 2006/10/07 06:50:06 minahito Exp $ + * @version $Id: common.php,v 1.4.8.15.2.4 2006/11/04 05:20:46 nobunobu Exp $ */ -// -// Prohibition of a direct kick -// -if (!defined("XOOPS_MAINFILE_INCLUDED")) { - die(); -} +if (!defined('XOOPS_ROOT_PATH')) exit(); +require_once XOOPS_ROOT_PATH . '/include/cubecore_init.php'; -/** - * This constant is the sign which this system is XOOPS Cube, for module - * developers. - */ -define('XOOPS_CUBE_LEGACY', true); - -require_once XOOPS_ROOT_PATH . "/core/XCube_Root.class.php"; -require_once XOOPS_ROOT_PATH . "/core/XCube_Controller.class.php"; - -// -// TODO We have to move the following lines to an appropriate place. -// (We may not need the following constants) -// -define("XCUBE_SITE_SETTING_FILE", XOOPS_ROOT_PATH . "/settings/site_default.ini.php"); -define("XCUBE_SITE_CUSTOM_FILE", XOOPS_ROOT_PATH . "/settings/site_custom.ini.php"); - -// -//@todo How does the system decide the main controller? -// $root=&XCube_Root::getSingleton(); -$root->loadSiteConfig(XCUBE_SITE_SETTING_FILE, XCUBE_SITE_CUSTOM_FILE); -$root->setupController(); - $xoopsController=&$root->getController(); $xoopsController->executeCommon(); - - ?> \ No newline at end of file Index: xoops2jp/html/include/cubecore_init.php diff -u /dev/null xoops2jp/html/include/cubecore_init.php:1.1.2.1 --- /dev/null Sat Nov 4 14:20:46 2006 +++ xoops2jp/html/include/cubecore_init.php Sat Nov 4 14:20:46 2006 @@ -0,0 +1,36 @@ +<?php +/** + * @package Legacy + * @version $Id: cubecore_init.php,v 1.1.2.1 2006/11/04 05:20:46 nobunobu Exp $ + */ + +// +// Prohibition of a direct kick +// +if (!defined("XOOPS_MAINFILE_INCLUDED")) { + die(); +} + +/** + * This constant is the sign which this system is XOOPS Cube, for module + * developers. + */ +define('XOOPS_CUBE_LEGACY', true); + +require_once XOOPS_ROOT_PATH . "/core/XCube_Root.class.php"; +require_once XOOPS_ROOT_PATH . "/core/XCube_Controller.class.php"; + +// +// TODO We have to move the following lines to an appropriate place. +// (We may not need the following constants) +// +define("XCUBE_SITE_SETTING_FILE", XOOPS_ROOT_PATH . "/settings/site_default.ini.php"); +define("XCUBE_SITE_CUSTOM_FILE", XOOPS_ROOT_PATH . "/settings/site_custom.ini.php"); + +// +//@todo How does the system decide the main controller? +// +$root=&XCube_Root::getSingleton(); +$root->loadSiteConfig(XCUBE_SITE_SETTING_FILE, XCUBE_SITE_CUSTOM_FILE); +$root->setupController(); +?> \ No newline at end of file