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@916 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
5a452aae02
commit
99e15dfa4b
9 changed files with 11 additions and 11 deletions
|
|
@ -40,7 +40,7 @@
|
||||||
$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(!__ZBXE__)exit(); %s ?>', $buff);
|
$buff = sprintf('<?if(!defined(__ZBXE__))exit(); %s ?>', $buff);
|
||||||
|
|
||||||
FileHandler::writeFile($this->cache_file, $buff);
|
FileHandler::writeFile($this->cache_file, $buff);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -212,7 +212,7 @@
|
||||||
$xml_info->author->date = $xml_doc->component->author->attrs->date;
|
$xml_info->author->date = $xml_doc->component->author->attrs->date;
|
||||||
$xml_info->description = str_replace('\n', "\n", $xml_doc->component->author->description->body);
|
$xml_info->description = str_replace('\n', "\n", $xml_doc->component->author->description->body);
|
||||||
|
|
||||||
$buff = '<?php if(!__ZBXE__) exit(); ';
|
$buff = '<?php if(!defined(__ZBXE__)) exit(); ';
|
||||||
$buff .= sprintf('$xml_info->component_name = "%s";', $component);
|
$buff .= sprintf('$xml_info->component_name = "%s";', $component);
|
||||||
$buff .= sprintf('$xml_info->version = "%s";', $xml_info->version);
|
$buff .= sprintf('$xml_info->version = "%s";', $xml_info->version);
|
||||||
$buff .= sprintf('$xml_info->title = "%s";', $xml_info->title);
|
$buff .= sprintf('$xml_info->title = "%s";', $xml_info->title);
|
||||||
|
|
|
||||||
|
|
@ -172,7 +172,7 @@
|
||||||
$db_info = Context::getDbInfo();
|
$db_info = Context::getDbInfo();
|
||||||
if(!$db_info) return;
|
if(!$db_info) return;
|
||||||
|
|
||||||
$buff = '<?php if(!__ZBXE__) exit();'."\n";
|
$buff = '<?php if(!defined(__ZBXE__)) exit();'."\n";
|
||||||
foreach($db_info as $key => $val) {
|
foreach($db_info as $key => $val) {
|
||||||
$buff .= sprintf("\$db_info->%s = \"%s\";\n", $key, $val);
|
$buff .= sprintf("\$db_info->%s = \"%s\";\n", $key, $val);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -286,7 +286,7 @@
|
||||||
|
|
||||||
// php 캐시 파일 생성
|
// php 캐시 파일 생성
|
||||||
$php_output = $this->getPhpCacheCode($tree[0], $tree);
|
$php_output = $this->getPhpCacheCode($tree[0], $tree);
|
||||||
$php_buff = sprintf('<?php if(!__ZBXE__) exit(); $menu->list = array(%s); ?>', $php_output['buff']);
|
$php_buff = sprintf('<?php if(!defined(__ZBXE__)) exit(); $menu->list = array(%s); ?>', $php_output['buff']);
|
||||||
|
|
||||||
// 파일 저장
|
// 파일 저장
|
||||||
FileHandler::writeFile($xml_file, $xml_buff);
|
FileHandler::writeFile($xml_file, $xml_buff);
|
||||||
|
|
|
||||||
|
|
@ -211,7 +211,7 @@
|
||||||
$buff .= sprintf('$layout_info->menu->{%s}->php_file = "./files/cache/layout/".$layout_srl."_%s.php";',$id, $id);
|
$buff .= sprintf('$layout_info->menu->{%s}->php_file = "./files/cache/layout/".$layout_srl."_%s.php";',$id, $id);
|
||||||
}
|
}
|
||||||
|
|
||||||
$buff = '<?php if(!__ZBXE__) exit(); '.$buff.' ?>';
|
$buff = '<?php if(!defined(__ZBXE__)) exit(); '.$buff.' ?>';
|
||||||
FileHandler::writeFile($cache_file, $buff);
|
FileHandler::writeFile($cache_file, $buff);
|
||||||
|
|
||||||
if(file_exists($cache_file)) include $cache_file;
|
if(file_exists($cache_file)) include $cache_file;
|
||||||
|
|
|
||||||
|
|
@ -468,7 +468,7 @@
|
||||||
$filename = sprintf('%s%d.signature.php', $path, $member_srl);
|
$filename = sprintf('%s%d.signature.php', $path, $member_srl);
|
||||||
if(!$signature) return @unlink($filename);
|
if(!$signature) return @unlink($filename);
|
||||||
|
|
||||||
$buff = sprintf('<?php if(!__ZBXE__) exit();?>%s', $signature);
|
$buff = sprintf('<?php if(!defined(__ZBXE__)) exit();?>%s', $signature);
|
||||||
FileHandler::makeDir($path);
|
FileHandler::makeDir($path);
|
||||||
FileHandler::writeFile($filename, $buff);
|
FileHandler::writeFile($filename, $buff);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -475,7 +475,7 @@
|
||||||
if(!file_exists($filename)) return '';
|
if(!file_exists($filename)) return '';
|
||||||
|
|
||||||
$buff = FileHandler::readFile($filename);
|
$buff = FileHandler::readFile($filename);
|
||||||
$signature = substr($buff, 29);
|
$signature = substr($buff, 38);
|
||||||
return $signature;
|
return $signature;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -336,7 +336,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$buff = sprintf('<?php if(!__ZBXE__) exit();$info->default_index_act = \'%s\';$info->admin_index_act = \'%s\';%s?>', $default_index_act, $admin_index_act, $buff);
|
$buff = sprintf('<?php if(!defined(__ZBXE__)) exit();$info->default_index_act = \'%s\';$info->admin_index_act = \'%s\';%s?>', $default_index_act, $admin_index_act, $buff);
|
||||||
|
|
||||||
FileHandler::writeFile($cache_file, $buff);
|
FileHandler::writeFile($cache_file, $buff);
|
||||||
|
|
||||||
|
|
@ -361,9 +361,9 @@
|
||||||
|
|
||||||
$config = base64_encode($output->data->config);
|
$config = base64_encode($output->data->config);
|
||||||
|
|
||||||
$buff = sprintf('<?php if(!__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);
|
if(!$config && file_exists($cache_file)) @include($cache_file);
|
||||||
|
|
|
||||||
|
|
@ -120,7 +120,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$buff = '<?php if(!__ZBXE__) exit(); '.$buff.' ?>';
|
$buff = '<?php if(!defined(__ZBXE__)) exit(); '.$buff.' ?>';
|
||||||
FileHandler::writeFile($cache_file, $buff);
|
FileHandler::writeFile($cache_file, $buff);
|
||||||
|
|
||||||
if(file_exists($cache_file)) include $cache_file;
|
if(file_exists($cache_file)) include $cache_file;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue