[xoops-cvslog 5773] CVS update: xoops2jp/html

Back to archive index

NobuNobu nobun****@users*****
2006年 11月 11日 (土) 10:17:09 JST


Index: xoops2jp/html/mainfile.dist.php
diff -u xoops2jp/html/mainfile.dist.php:1.2.8.2.2.3 xoops2jp/html/mainfile.dist.php:1.2.8.2.2.4
--- xoops2jp/html/mainfile.dist.php:1.2.8.2.2.3	Sat Nov  4 14:20:46 2006
+++ xoops2jp/html/mainfile.dist.php	Sat Nov 11 10:17:09 2006
@@ -1,5 +1,5 @@
 <?php
-// $Id: mainfile.dist.php,v 1.2.8.2.2.3 2006/11/04 05:20:46 nobunobu Exp $
+// $Id: mainfile.dist.php,v 1.2.8.2.2.4 2006/11/11 01:17:09 nobunobu Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -74,9 +74,28 @@
     define("XOOPS_GROUP_USERS", "2");
     define("XOOPS_GROUP_ANONYMOUS", "3");
 
-    @include_once XOOPS_ROOT_PATH.'/include/cubecore_init.php';
-    if (!isset($xoopsOption['nocommon']) && XOOPS_ROOT_PATH != '') {
-        include XOOPS_ROOT_PATH.'/include/common.php';
+    // You can select two special module process excuting mode with defining following constants
+    //
+    //  define('_LEGACY_PREVENT_LOAD_CORE_', 1);
+    //    Module process will not load any XOOPS Cube classes.
+    //    You cannot use any XOOPS Cube functions and classes.
+    //    (eg. It'll be used for reffering only MySQL Database definition.)
+    //
+    //  define('_LEGACY_PREVENT_EXEC_COMMON_', 1);
+    //    Module process will load XOOPS Cube Root class and initialize Controller class.
+    //    You can use some XOOPS Cube functions in this mode.
+    //    You can use more XOOPS Cube functions (eg. xoops_gethandler), if you write
+    //       $root=&XCube_Root::getSingleton();
+    //       $root->mController->executeCommonSubset(false);
+    //    after including mainfile.php.
+    //    It is synonym of $xoopsOption['nocommon']=1; 
+    //    But $xoopsOption['nocommon'] is deprecated.
+    //
+    if (!defined('_LEGACY_PREVENT_LOAD_CORE_') && XOOPS_ROOT_PATH != '') {
+        @include_once XOOPS_ROOT_PATH.'/include/cubecore_init.php';
+        if (!isset($xoopsOption['nocommon']) && !defined('_LEGACY_PREVENT_EXEC_COMMON_')) {
+            include XOOPS_ROOT_PATH.'/include/common.php';
+        }
     }
 }
 ?>
\ No newline at end of file


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