[xoops-cvslog 4208] CVS update: xoops2jp/html/include

Back to archive index

Minahito minah****@users*****
2006年 8月 18日 (金) 18:12:25 JST


Index: xoops2jp/html/include/cp_header.php
diff -u xoops2jp/html/include/cp_header.php:1.2.8.4 xoops2jp/html/include/cp_header.php:1.2.8.5
--- xoops2jp/html/include/cp_header.php:1.2.8.4	Fri Aug  4 19:32:12 2006
+++ xoops2jp/html/include/cp_header.php	Fri Aug 18 18:12:25 2006
@@ -1,42 +1,29 @@
 <?php 
-// $Id: cp_header.php,v 1.2.8.4 2006/08/04 10:32:12 minahito Exp $
-//  ------------------------------------------------------------------------ //
-//              XOOPSCube - PHP Content Management System                    //
-//                  Copyright (c) 2005 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 //
-//  ------------------------------------------------------------------------ //
- 
-require_once '../../../mainfile.php';
+/**
+ * @package Legacy
+ * @version $Id: cp_header.php,v 1.2.8.5 2006/08/18 09:12:25 minahito Exp $
+ * @deprecated This file was a shortcut for XOOPS2 developers who don't want to load header.php
+ */
 
-if(!defined('XOOPS_CPFUNC_LOADED'))
-	require_once XOOPS_ROOT_PATH."/include/cp_functions.php";
+if (!defined('XOOPS_ROOT_PATH')) {
+	require_once "../../../mainfile.php";
+}
+
+if (!defined('XOOPS_CPFUNC_LOADED')) {
+	require_once XOOPS_ROOT_PATH . "/include/cp_functions.php";
+}
 
 //
 // [Special Mission] Additional CHECK!!
 // Old modules may call this file from other admin directory.
 // In this case, the controller does not have Admin ModuleController and Admin RenderSystem.
 //
-$root=&XCube_Root::getSingleton();
+$root =& XCube_Root::getSingleton();
 $strategy =& new Legacy_AdminControllerStrategy($root->mController);
 $root->mController->setStrategy($strategy);
 
+//
+// TODO
+//
+
 ?>
\ No newline at end of file


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