mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-26 05:42:13 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@202 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
0463fa5b58
commit
9a9f9af0bc
14 changed files with 162 additions and 1 deletions
|
|
@ -279,6 +279,31 @@
|
|||
return $info;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 특정 모듈의 설정 정보 return
|
||||
* 캐시된 설정 정보가 없으면 만들 후 캐시하고 return
|
||||
**/
|
||||
function getModuleConfig($module) {
|
||||
$cache_file = sprintf('./files/cache/module_info/%s.config.php',$module);
|
||||
if(!file_exists($cache_file)) {
|
||||
// DB 객체 생성
|
||||
$oDB = &DB::getInstance();
|
||||
$args->module = $module;
|
||||
$output = $oDB->executeQuery('module.getModuleConfig', $args);
|
||||
|
||||
$config = $output->data;
|
||||
|
||||
$buff = sprintf('<?php if(!__ZB5__) exit(); $config = "%s"; ?>', $config);
|
||||
|
||||
FileHandler::writeFile($cache_file, $buff);
|
||||
}
|
||||
|
||||
if(file_exists($cache_file)) @include($cache_file);
|
||||
|
||||
return unserialize($config);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @brief 모듈의 conf/info.xml 을 읽어서 정보를 구함
|
||||
**/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue