Minahito
minah****@users*****
2006年 10月 14日 (土) 23:55:28 JST
Index: xoops2jp/html/modules/legacy/admin/menu.php diff -u /dev/null xoops2jp/html/modules/legacy/admin/menu.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:28 2006 +++ xoops2jp/html/modules/legacy/admin/menu.php Sat Oct 14 23:55:28 2006 @@ -0,0 +1,46 @@ +<?php +/** + * @version $Id$ + */ + +$adminmenu[1]['title']=_MI_BASE_MENU_ACTIONSEARCH; +$adminmenu[1]['link']="admin/index.php?action=ActSearch"; + +$adminmenu[2]['title']=_MI_BASE_MENU_PREFERENCE; +$adminmenu[2]['link']="admin/index.php?action=PreferenceList"; + +$adminmenu[3]['title']=_MI_BASE_MENU_MODULELIST; +$adminmenu[3]['keywords']=_MI_BASE_KEYWORD_MODULELIST; +$adminmenu[3]['link']="admin/index.php?action=ModuleList"; + +$adminmenu[4]['title']=_MI_BASE_MENU_MODULEINSTALL; +$adminmenu[4]['keywords']=_MI_BASE_KEYWORD_MODULEINSTALL; +$adminmenu[4]['link']="admin/index.php?action=InstallList"; + +$adminmenu[5]['title']=_MI_BASE_MENU_BLOCKLIST; +$adminmenu[5]['keywords']=_MI_BASE_KEYWORD_BLOCKLIST; +$adminmenu[5]['link']="admin/index.php?action=BlockList"; + +$adminmenu[6]['title']=_MI_BASE_MENU_BLOCKINSTALL; +$adminmenu[6]['keywords']=_MI_BASE_KEYWORD_BLOCKINSTALL; +$adminmenu[6]['link']="admin/index.php?action=BlockInstallList"; + +$adminmenu[7]['title']=_MI_BASE_MENU_CREATE_SMILES; +$adminmenu[7]['link']="admin/index.php?action=SmilesEdit"; +$adminmenu[7]['keywords']=_MI_BASE_KEYWORD_CREATE_SMILES; +$adminmenu[7]['show']=false; + +$adminmenu[8]['title']=_MI_BASE_MENU_SMILES_MANAGE; +$adminmenu[8]['keywords']=_MI_BASE_KEYWORD_SMILES_MANAGE; +$adminmenu[8]['link']="admin/index.php?action=SmilesList"; + +$adminmenu[9]['title']=_MI_BASE_MENU_COMMENT_MANAGE; +$adminmenu[9]['link']="admin/index.php?action=CommentList"; + +$adminmenu[10]['title']=_MI_BASE_MENU_IMAGE_MANAGE; +$adminmenu[10]['link']="admin/index.php?action=ImagecategoryList"; + +$adminmenu[11]['title']=_MI_BASE_MENU_THEME_MANAGE; +$adminmenu[11]['link']="admin/index.php?action=ThemeList"; + +?> Index: xoops2jp/html/modules/legacy/admin/css.php diff -u /dev/null xoops2jp/html/modules/legacy/admin/css.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:28 2006 +++ xoops2jp/html/modules/legacy/admin/css.php Sat Oct 14 23:55:28 2006 @@ -0,0 +1,64 @@ +<?php + +require_once "../../../mainfile.php"; + +// +// @todo Why does this file know Legacy_RenderSystem? +// +require_once XOOPS_ROOT_PATH . "/header.php"; + +function Legacy_modifier_css_theme($string) +{ + $infoArr = Legacy_get_ovveride_file($string, null, true); + + if ($infoArr['theme'] != null && $infoArr['dirname'] != null) { + return XOOPS_THEME_URL . "/" . $infoArr['theme'] . "/modules/" . $infoArr['dirname'] . "/" . $string; + } + elseif ($infoArr['theme'] != null) { + return XOOPS_THEME_URL . "/" . $infoArr['theme'] . "/" . $string; + } + elseif ($infoArr['dirname'] != null) { + 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(); +} + +$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=$smarty->fetch("file:" . $file); + +header('Content-Type:text/css;'); +print $result; + +?> \ No newline at end of file Index: xoops2jp/html/modules/legacy/admin/index.php diff -u /dev/null xoops2jp/html/modules/legacy/admin/index.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:28 2006 +++ xoops2jp/html/modules/legacy/admin/index.php Sat Oct 14 23:55:28 2006 @@ -0,0 +1,20 @@ +<?php + +require_once "../../../mainfile.php"; +require_once XOOPS_ROOT_PATH . "/header.php"; +require_once XOOPS_MODULE_PATH . "/base/class/ActionFrame.class.php"; + +$root =& XCube_Root::getSingleton(); + +$actionName = isset($_GET['action']) ? trim($_GET['action']) : "ModuleList"; + +$moduleRunner =& new Legacy_ActionFrame(true); +$moduleRunner->setActionName($actionName); + +$root->mController->mExecute->add(array(&$moduleRunner, 'execute')); + +$root->mController->execute(); + +require_once XOOPS_ROOT_PATH . "/footer.php"; + +?>