mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1272 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
ea478b24e4
commit
99dfa91c4b
12 changed files with 23 additions and 18 deletions
|
|
@ -37,7 +37,7 @@
|
|||
$addon = trim($addon_list[$i]);
|
||||
if(!$addon) continue;
|
||||
|
||||
$buff .= sprintf(' if(file_exists("./addons/%s/%s.addon.php")) { $addon_path = "./addons/%s/"; include("./addons/%s/%s.addon.php"); }', $addon, $addon, $addon, $addon, $addon);
|
||||
$buff .= sprintf(' if(file_exists("./addons/%s/%s.addon.php")) { $addon_path = "./addons/%s/"; @include("./addons/%s/%s.addon.php"); }', $addon, $addon, $addon, $addon, $addon);
|
||||
}
|
||||
|
||||
$buff = sprintf('<?if(!defined("__ZBXE__"))exit(); %s ?>', $buff);
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@
|
|||
if($this->module_info->menu) {
|
||||
foreach($this->module_info->menu as $menu_id => $menu_srl) {
|
||||
$menu_php_file = sprintf("./files/cache/menu/%s.php", $menu_srl);
|
||||
if(file_exists($menu_php_file)) include($menu_php_file);
|
||||
if(file_exists($menu_php_file)) @include($menu_php_file);
|
||||
Context::set($menu_id, $menu);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -206,7 +206,7 @@
|
|||
|
||||
// 캐시된 xml파일이 있으면 include 후 정보 return
|
||||
if(file_exists($cache_file) && filectime($cache_file) > filectime($xml_file)) {
|
||||
@include $cache_file;
|
||||
@include($cache_file);
|
||||
return $xml_info;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -102,7 +102,7 @@
|
|||
// cache 파일을 비교하여 문제 없으면 include하고 $layout_info 변수를 return
|
||||
$cache_file = sprintf('./files/cache/layout/%s.%s.cache.php', $layout, Context::getLangType());
|
||||
if(file_exists($cache_file)&&filectime($cache_file)>filectime($xml_file)) {
|
||||
include $cache_file;
|
||||
@include($cache_file);
|
||||
|
||||
if($layout_info->extra_var) {
|
||||
foreach($vars as $key => $value) {
|
||||
|
|
@ -191,7 +191,7 @@
|
|||
|
||||
$buff = '<?php if(!defined("__ZBXE__")) exit(); '.$buff.' ?>';
|
||||
FileHandler::writeFile($cache_file, $buff);
|
||||
if(file_exists($cache_file)) include $cache_file;
|
||||
if(file_exists($cache_file)) @include($cache_file);
|
||||
return $layout_info;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -364,7 +364,7 @@
|
|||
return $info;
|
||||
}
|
||||
|
||||
include $cache_file;
|
||||
@include($cache_file);
|
||||
|
||||
return $info;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@
|
|||
$cache_file = sprintf('./files/cache/plugin/%s.%s.cache.php', $plugin, Context::getLangType());
|
||||
|
||||
if(file_exists($cache_file)&&filectime($cache_file)>filectime($xml_file)) {
|
||||
include $cache_file;
|
||||
@include($cache_file);
|
||||
return $plugin_info;
|
||||
}
|
||||
|
||||
|
|
@ -123,7 +123,7 @@
|
|||
$buff = '<?php if(!defined("__ZBXE__")) exit(); '.$buff.' ?>';
|
||||
FileHandler::writeFile($cache_file, $buff);
|
||||
|
||||
if(file_exists($cache_file)) include $cache_file;
|
||||
if(file_exists($cache_file)) @include($cache_file);
|
||||
return $plugin_info;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue