mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-01 00:02:21 +09:00
#64 서버 내 경로를 절대경로로 변경
This commit is contained in:
parent
bf0dd35f0a
commit
932862be1f
42 changed files with 807 additions and 133 deletions
|
|
@ -392,7 +392,7 @@ class moduleAdminController extends module
|
|||
}
|
||||
|
||||
// Get skin information (to check extra_vars)
|
||||
$module_path = './modules/'.$module_info->module;
|
||||
$module_path = _XE_PATH_ . 'modules/'.$module_info->module;
|
||||
|
||||
if($mode === 'M')
|
||||
{
|
||||
|
|
|
|||
|
|
@ -527,7 +527,7 @@ class moduleAdminModel extends module
|
|||
function getModuleAdminMultilingualHtml()
|
||||
{
|
||||
$oTemplate = TemplateHandler::getInstance();
|
||||
$tpl = $oTemplate->compile('./modules/module/tpl', 'multilingual_v17.html');
|
||||
$tpl = $oTemplate->compile(_XE_PATH_ . 'modules/module/tpl', 'multilingual_v17.html');
|
||||
|
||||
$this->add('html', $tpl);
|
||||
}
|
||||
|
|
@ -566,7 +566,7 @@ class moduleAdminModel extends module
|
|||
$oSecurity->encodeHTML('lang_code_list..');
|
||||
|
||||
$oTemplate = TemplateHandler::getInstance();
|
||||
$tpl = $oTemplate->compile('./modules/module/tpl', 'multilingual_v17_list.html');
|
||||
$tpl = $oTemplate->compile(_XE_PATH_ . 'modules/module/tpl', 'multilingual_v17_list.html');
|
||||
|
||||
$this->add('html', $tpl);
|
||||
}
|
||||
|
|
@ -576,9 +576,9 @@ class moduleAdminModel extends module
|
|||
*/
|
||||
function getModuleAdminModuleSearcherHtml()
|
||||
{
|
||||
Context::loadLang('./modules/admin/lang');
|
||||
Context::loadLang(_XE_PATH_ . 'modules/admin/lang');
|
||||
$oTemplate = TemplateHandler::getInstance();
|
||||
$tpl = $oTemplate->compile('./modules/module/tpl', 'module_searcher_v17.html');
|
||||
$tpl = $oTemplate->compile(_XE_PATH_ . 'modules/module/tpl', 'module_searcher_v17.html');
|
||||
|
||||
$this->add('html', $tpl);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -171,7 +171,7 @@ class moduleAdminView extends module
|
|||
$columnList = array('module_srl', 'module');
|
||||
$module_info = $oModuleModel->getModuleInfoByModuleSrl($modules[0], $columnList);
|
||||
// Get a skin list of the module
|
||||
$skin_list = $oModuleModel->getSkins('./modules/'.$module_info->module);
|
||||
$skin_list = $oModuleModel->getSkins(_XE_PATH_ . 'modules/'.$module_info->module);
|
||||
Context::set('skin_list',$skin_list);
|
||||
// Get a layout list
|
||||
$oLayoutMode = &getModel('layout');
|
||||
|
|
|
|||
|
|
@ -82,10 +82,10 @@ class moduleModel extends module
|
|||
function getDefaultMid()
|
||||
{
|
||||
$default_url = Context::getDefaultUrl();
|
||||
if(substr_compare($default_url, '/', -1) === 0) $default_url = substr($default_url, 0, -1);
|
||||
if($default_url && substr_compare($default_url, '/', -1) === 0) $default_url = substr($default_url, 0, -1);
|
||||
|
||||
$request_url = Context::getRequestUri();
|
||||
if(substr_compare($request_url, '/', -1) === 0) $request_url = substr($request_url, 0, -1);
|
||||
if($request_url && substr_compare($request_url, '/', -1) === 0) $request_url = substr($request_url, 0, -1);
|
||||
|
||||
$default_url_parse = parse_url($default_url);
|
||||
$request_url_parse = parse_url($request_url);
|
||||
|
|
@ -747,7 +747,7 @@ class moduleModel extends module
|
|||
$xml_file = sprintf("%sconf/module.xml", $class_path);
|
||||
if(!file_exists($xml_file)) return;
|
||||
// Check if cached file exists
|
||||
$cache_file = sprintf("./files/cache/module_info/%s.%s.%s.php", $module, Context::getLangType(), __XE_VERSION__);
|
||||
$cache_file = sprintf(_XE_PATH_ . "files/cache/module_info/%s.%s.%s.php", $module, Context::getLangType(), __XE_VERSION__);
|
||||
// Update if no cache file exists or it is older than xml file
|
||||
if(!file_exists($cache_file) || filemtime($cache_file)<filemtime($xml_file))
|
||||
{
|
||||
|
|
@ -903,7 +903,7 @@ class moduleModel extends module
|
|||
return $info;
|
||||
}
|
||||
|
||||
@include($cache_file);
|
||||
if(file_exists($cache_file)) include($cache_file);
|
||||
|
||||
return $info;
|
||||
}
|
||||
|
|
@ -1713,7 +1713,7 @@ class moduleModel extends module
|
|||
$designInfoFile = sprintf(_XE_PATH_.'files/site_design/design_%s.php', $site_srl);
|
||||
if(is_readable($designInfoFile))
|
||||
{
|
||||
@include($designInfoFile);
|
||||
include($designInfoFile);
|
||||
|
||||
$skinName = $designInfo->module->{$module_name}->{$target};
|
||||
}
|
||||
|
|
@ -2077,7 +2077,7 @@ class moduleModel extends module
|
|||
$security->encodeHTML('filebox_list..comment', 'filebox_list..attributes.');
|
||||
|
||||
$oTemplate = &TemplateHandler::getInstance();
|
||||
$html = $oTemplate->compile('./modules/module/tpl/', 'filebox_list_html');
|
||||
$html = $oTemplate->compile(_XE_PATH_ . 'modules/module/tpl/', 'filebox_list_html');
|
||||
|
||||
$this->add('html', $html);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue