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

Back to archive index

Minahito minah****@users*****
2007年 4月 17日 (火) 16:42:56 JST


Index: xoops2jp/html/modules/legacy/admin/css.php
diff -u xoops2jp/html/modules/legacy/admin/css.php:1.1.2.4.2.2 xoops2jp/html/modules/legacy/admin/css.php:removed
--- xoops2jp/html/modules/legacy/admin/css.php:1.1.2.4.2.2	Wed Mar 28 18:27:21 2007
+++ xoops2jp/html/modules/legacy/admin/css.php	Tue Apr 17 16:42:56 2007
@@ -1,71 +0,0 @@
-<?php
-$xoopsOption['nocommon']=1;
-
-require_once "../../../mainfile.php";
-
-$root=&XCube_Root::getSingleton();
-$root->mController->executeCommonSubset(false);
-
-//
-// @todo Why does this file know Legacy_RenderSystem?
-//
-
-function Legacy_modifier_css_theme($string)
-{
-	$infoArr = Legacy_get_ovveride_file($string, null, true);
-	
-	if (!empty($infoArr['theme']) && !empty($infoArr['dirname'])) {
-		return XOOPS_THEME_URL . "/" . $infoArr['theme'] . "/modules/" . $infoArr['dirname'] . "/" . $string;
-	}
-	elseif (!empty($infoArr['theme'])) {
-		return XOOPS_THEME_URL . "/" . $infoArr['theme'] . "/" . $string;
-	}
-	elseif (!empty($infoArr['dirname'])) {
-		return XOOPS_MODULE_URL . "/" . $infoArr['dirname'] . "/admin/templates/" . $string;
-	}
-	
-	return LEGACY_ADMIN_RENDER_FALLBACK_URL . "/" . $string;
-}
-
-$theme = isset($_GET['theme']) ? trim($_GET['theme']) : null;
-$dirname = isset($_GET['dirname']) ? trim($_GET['dirname']) : null;
-$file = "stylesheets/" . trim($_GET['file']);
-
-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");
-
-//
-// TODO Emergency WORK AROUND for compile cache problem.
-//
-$smarty->force_compile = true;
-
-if ($theme != null && $dirname != null) {
-	$path = XOOPS_THEME_PATH . "/${theme}/modules/${dirname}";
-}
-elseif ($theme != null) {
-	$path = XOOPS_THEME_PATH . "/" .$theme;
-}
-elseif ($dirname != null) {
-	$path = XOOPS_MODULE_PATH . "/${dirname}/admin/templates";
-}
-else {
-	$path = LEGACY_ADMIN_RENDER_FALLBACK_PATH;
-}
-
-$smarty->template_dir = $path;
-$smarty->setModulePrefix('_css_' . $theme);
-
-$result = "";
-if (is_file($path . "/" . $file))
-	$result = $smarty->fetch("file:" . $file);
-
-header('Content-Type:text/css;');
-print $result;
-
-?>
\ No newline at end of file


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