mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-31 00:59:58 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1711 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
62ce9f99b2
commit
3d089fb60e
4 changed files with 9 additions and 3 deletions
|
|
@ -28,7 +28,7 @@
|
||||||
<!-- 관리 기능 -->
|
<!-- 관리 기능 -->
|
||||||
<!--@if($grant->is_admin)-->
|
<!--@if($grant->is_admin)-->
|
||||||
<!-- 관리자일 경우 블로그 관리 메뉴 -->
|
<!-- 관리자일 경우 블로그 관리 메뉴 -->
|
||||||
<a href="#" onclick="location.href='{getUrl('mid', $layout_info->mid, 'act','dispBlogAdminBlogInfo','layout_srl',$layout_info->layout_srl)}';return false;">{$lang->cmd_management}</a>
|
<a href="#" onclick="location.href='{getUrl('mid', $layout_info->mid, 'act','dispBlogAdminBlogInfo')}';return false;">{$lang->cmd_management}</a>
|
||||||
<!--@end-->
|
<!--@end-->
|
||||||
|
|
||||||
<!-- RSS -->
|
<!-- RSS -->
|
||||||
|
|
|
||||||
|
|
@ -82,7 +82,7 @@
|
||||||
<!--@if($grant->is_admin)-->
|
<!--@if($grant->is_admin)-->
|
||||||
<ul id="admin">
|
<ul id="admin">
|
||||||
<li class="write"><a href="{getUrl('mid', $layout_info->mid, 'act','dispBlogWrite','document_srl','')}">{$lang->cmd_write}</a></li>
|
<li class="write"><a href="{getUrl('mid', $layout_info->mid, 'act','dispBlogWrite','document_srl','')}">{$lang->cmd_write}</a></li>
|
||||||
<li class="setup"><a href="#" onclick="location.href='{getUrl('mid', $layout_info->mid, 'act','dispBlogAdminBlogInfo','layout_srl',$layout_info->layout_srl)}';return false;">{$lang->cmd_management}</a></li>
|
<li class="setup"><a href="#" onclick="location.href='{getUrl('mid', $layout_info->mid, 'act','dispBlogAdminBlogInfo')}';return false;">{$lang->cmd_management}</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
<!--@end-->
|
<!--@end-->
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -82,6 +82,10 @@
|
||||||
|
|
||||||
function updateLayout($args) {
|
function updateLayout($args) {
|
||||||
$output = executeQuery('layout.updateLayout', $args);
|
$output = executeQuery('layout.updateLayout', $args);
|
||||||
|
if($output->toBool()) {
|
||||||
|
$cache_file = sprintf('./files/cache/layout/%s.%s.cache.php', $args->layout_srl, Context::getLangType());
|
||||||
|
@unlink($cache_file);
|
||||||
|
}
|
||||||
return $output;
|
return $output;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -105,7 +105,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
// cache 파일을 비교하여 문제 없으면 include하고 $layout_info 변수를 return
|
// cache 파일을 비교하여 문제 없으면 include하고 $layout_info 변수를 return
|
||||||
$cache_file = sprintf('./files/cache/layout/%s.%s.cache.php', $layout, Context::getLangType());
|
if(!$layout_srl) $cache_file = sprintf('./files/cache/layout/%s.%s.cache.php', $layout, Context::getLangType());
|
||||||
|
else $cache_file = sprintf('./files/cache/layout/%s.%s.cache.php', $layout_srl, Context::getLangType());
|
||||||
|
|
||||||
if(file_exists($cache_file)&&filectime($cache_file)>filectime($xml_file)) {
|
if(file_exists($cache_file)&&filectime($cache_file)>filectime($xml_file)) {
|
||||||
@include($cache_file);
|
@include($cache_file);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue