mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-18 18:02:15 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@203 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
9a9f9af0bc
commit
2332c8d246
5 changed files with 9 additions and 7 deletions
|
|
@ -285,22 +285,23 @@
|
|||
**/
|
||||
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;
|
||||
$config = base64_encode($output->data->config);
|
||||
|
||||
$buff = sprintf('<?php if(!__ZB5__) exit(); $config = "%s"; ?>', $config);
|
||||
|
||||
FileHandler::writeFile($cache_file, $buff);
|
||||
//FileHandler::writeFile($cache_file, $buff);
|
||||
}
|
||||
|
||||
if(file_exists($cache_file)) @include($cache_file);
|
||||
if(!$config && file_exists($cache_file)) @include($cache_file);
|
||||
|
||||
return unserialize($config);
|
||||
return unserialize(base64_decode($config));
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue