zbXE 기본 방명록 스킨 수정 (xe_guestbook)

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3862 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2008-02-27 16:29:45 +00:00
parent 8b930f06e5
commit 4264d5bcde
10 changed files with 223 additions and 215 deletions

View file

@ -85,7 +85,7 @@
$source_ftime = filemtime($tpl_file);
$target_ftime = filemtime($compiled_tpl_file);
if($source_ftime>$target_ftime) return $this->_compileTplFile($tpl_file, $compiled_tpl_file);
if($source_ftime>$target_ftime || $target_ftime < filemtime('./classes/template/TemplateHandler.class.php') ) return $this->_compileTplFile($tpl_file, $compiled_tpl_file);
}
/**
@ -157,6 +157,7 @@
* @brief {@ } 안의 @... 함수를 print func(..) 변경
**/
function _compileVarToSilenceExecute($matches) {
if(strtolower(trim(str_replace(array(';',' '),'', $matches[1])))=='return') return '<?php return; ?>';
return '<?php @'.preg_replace('/\$([a-zA-Z0-9\_\-\>]+)/i','$__Context->\\1', trim($matches[1])).';?>';
}