mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-15 01:09:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1420 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
b4ed25f564
commit
473feb1c3f
4 changed files with 33 additions and 28 deletions
|
|
@ -374,22 +374,25 @@
|
|||
* 캐시된 설정 정보가 없으면 만들 후 캐시하고 return
|
||||
**/
|
||||
function getModuleConfig($module) {
|
||||
$cache_file = sprintf('./files/cache/module_info/%s.config.php',$module);
|
||||
if($GLOBALS['__ModuleConfig__'][$module]) {
|
||||
$cache_file = sprintf('./files/cache/module_info/%s.config.php',$module);
|
||||
|
||||
if(!file_exists($cache_file)) {
|
||||
$args->module = $module;
|
||||
$output = executeQuery('module.getModuleConfig', $args);
|
||||
if(!file_exists($cache_file)) {
|
||||
$args->module = $module;
|
||||
$output = executeQuery('module.getModuleConfig', $args);
|
||||
|
||||
$config = base64_encode($output->data->config);
|
||||
$config = base64_encode($output->data->config);
|
||||
|
||||
$buff = sprintf('<?php if(!defined("__ZBXE__")) exit(); $config = "%s"; ?>', $config);
|
||||
$buff = sprintf('<?php if(!defined("__ZBXE__")) exit(); $config = "%s"; ?>', $config);
|
||||
|
||||
FileHandler::writeFile($cache_file, $buff);
|
||||
FileHandler::writeFile($cache_file, $buff);
|
||||
}
|
||||
|
||||
if(!$config && file_exists($cache_file)) @include($cache_file);
|
||||
|
||||
$GLOBALS['__ModuleConfig__'][$module] = unserialize(base64_decode($config));
|
||||
}
|
||||
|
||||
if(!$config && file_exists($cache_file)) @include($cache_file);
|
||||
|
||||
return unserialize(base64_decode($config));
|
||||
return $GLOBALS['__ModuleConfig__'][$module];
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue