[xoops-cvslog 5712] CVS update: xoops2jp/html/modules/legacy/admin

Back to archive index

NobuNobu nobun****@users*****
2006年 11月 8日 (水) 21:26:31 JST


Index: xoops2jp/html/modules/legacy/admin/css.php
diff -u xoops2jp/html/modules/legacy/admin/css.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/css.php:1.1.2.2
--- xoops2jp/html/modules/legacy/admin/css.php:1.1.2.1	Sat Oct 14 23:55:28 2006
+++ xoops2jp/html/modules/legacy/admin/css.php	Wed Nov  8 21:26:31 2006
@@ -1,11 +1,16 @@
 <?php
+$xoopsOption['nocommon']=1;
 
 require_once "../../../mainfile.php";
 
+$root=&XCube_Root::getSingleton();
+$xoopsController=&$root->getController();
+// @todo using private method. 
+$xoopsController->_setupEnvironment();
+
 //
 // @todo Why does this file know Legacy_RenderSystem?
 //
-require_once XOOPS_ROOT_PATH . "/header.php";
 
 function Legacy_modifier_css_theme($string)
 {
@@ -31,7 +36,7 @@
 if (strstr($theme, "..") !== false || strstr($dirname, "..") !== false || strstr($file, "..") !== false) {
 	exit();
 }
-
+require_once XOOPS_ROOT_PATH.'/modules/legacyRender/kernel/Legacy_AdminRenderSystem.class.php';
 $smarty =& new Legacy_AdminSmarty();
 $smarty->register_modifier("theme", "Legacy_modifier_css_theme");
 $smarty->register_function("stylesheet", "Legacy_function_stylesheet");


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