mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-03 17:22:20 +09:00
ereg를 모두 preg로 변경
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3528 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
3a6cb4f7f2
commit
502b5a7a88
32 changed files with 75 additions and 75 deletions
|
|
@ -35,7 +35,7 @@
|
|||
$cache_file = sprintf("./files/cache/opage/%d.cache.php", $module_info->module_srl);
|
||||
|
||||
// http 인지 내부 파일인지 점검
|
||||
if(eregi("^http:\/\/",$path)) $content = $this->getHtmlPage($path, $caching_interval, $cache_file);
|
||||
if(preg_match("/^http:\/\//i",$path)) $content = $this->getHtmlPage($path, $caching_interval, $cache_file);
|
||||
else $content = $this->executeFile($path, $caching_interval, $cache_file);
|
||||
|
||||
Context::set('opage_content', $content);
|
||||
|
|
@ -97,7 +97,7 @@
|
|||
// 경로와 파일이름을 구함
|
||||
$tmp_path = explode('/',$cache_file);
|
||||
$filename = $tmp_path[count($tmp_path)-1];
|
||||
$filepath = ereg_replace($filename."$","",$cache_file);
|
||||
$filepath = preg_replace('/'.$filename."$/i","",$cache_file);
|
||||
|
||||
// 캐시 검사
|
||||
if($caching_interval <1 || !file_exists($cache_file) || filemtime($cache_file) + $caching_interval*60 <= time() || filemtime($cache_file)<filemtime($path) ) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue