mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-03 09:14:48 +09:00
캐시를 지우는 외부 툴 스크립트 추가. 파일을 핸들링할때 경로를 제대로 찾아서 처리할 수 있도록 코드 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4331 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
5d19990111
commit
bdc194ab1d
41 changed files with 246 additions and 95 deletions
|
|
@ -50,7 +50,7 @@
|
|||
* @brief 지정된 파일의 지시자를 염
|
||||
**/
|
||||
function openFile() {
|
||||
@unlink($this->cache_index_file);
|
||||
FileHandler::removeFile($this->cache_index_file);
|
||||
$this->index_fd = fopen($this->cache_index_file,"a");
|
||||
|
||||
// local 파일일 경우
|
||||
|
|
@ -140,7 +140,7 @@
|
|||
$buff = FileHandler::readFile($target_file);
|
||||
fwrite($fd, FileHandler::readFile($target_file));
|
||||
|
||||
@unlink($target_file);
|
||||
FileHandler::removeFile($target_file);
|
||||
}
|
||||
fwrite($fd, '</items>');
|
||||
fclose($fd);
|
||||
|
|
|
|||
|
|
@ -190,7 +190,7 @@
|
|||
|
||||
// 대상 파일을 읽여서 파싱후 입력
|
||||
$xmlObj = $oXmlParser->loadXmlFile($target_file);
|
||||
@unlink($target_file);
|
||||
FileHandler::removeFile($target_file);
|
||||
if(!$xmlObj) continue;
|
||||
|
||||
// 객체 정리
|
||||
|
|
@ -326,7 +326,7 @@
|
|||
|
||||
// 대상 파일을 읽여서 파싱후 입력
|
||||
$xmlObj = $oXmlParser->loadXmlFile($target_file);
|
||||
@unlink($target_file);
|
||||
FileHandler::removeFile($target_file);
|
||||
if(!$xmlObj) continue;
|
||||
|
||||
// 객체 정리
|
||||
|
|
@ -433,7 +433,7 @@
|
|||
$oDocumentController = &getController('document');
|
||||
$oDocumentController->makeCategoryFile($module_srl);
|
||||
}
|
||||
@unlink($category_file);
|
||||
FileHandler::removeFile($category_file);
|
||||
}
|
||||
|
||||
$category_list = $category_titles = array();
|
||||
|
|
@ -558,7 +558,7 @@
|
|||
}
|
||||
|
||||
fclose($fp);
|
||||
@unlink($target_file);
|
||||
FileHandler::removeFile($target_file);
|
||||
}
|
||||
|
||||
fclose($f);
|
||||
|
|
@ -793,7 +793,7 @@
|
|||
// 디렉토리 생성
|
||||
if(!FileHandler::makeDir($path)) continue;
|
||||
|
||||
if(preg_match('/^\.\/files\/cache\/tmp/i',$file_obj->file)) @rename($file_obj->file, $filename);
|
||||
if(preg_match('/^\.\/files\/cache\/tmp/i',$file_obj->file)) FileHandler::rename($file_obj->file, $filename);
|
||||
else @copy($file_obj->file, $filename);
|
||||
|
||||
// DB입력
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@
|
|||
}
|
||||
$oDocumentController->makeCategoryFile($module_srl);
|
||||
}
|
||||
@unlink($category_file);
|
||||
FileHandler::removeFile($category_file);
|
||||
}
|
||||
$category_list = $category_titles = array();
|
||||
$category_list = $oDocumentModel->getCategoryList($module_srl);
|
||||
|
|
@ -239,7 +239,7 @@
|
|||
}
|
||||
|
||||
fclose($fp);
|
||||
@unlink($target_file);
|
||||
FileHandler::removeFile($target_file);
|
||||
}
|
||||
|
||||
fclose($f);
|
||||
|
|
@ -298,7 +298,7 @@
|
|||
// 디렉토리 생성
|
||||
if(!FileHandler::makeDir($path)) continue;
|
||||
|
||||
@rename($file_obj->file, $filename);
|
||||
FileHandler::rename($file_obj->file, $filename);
|
||||
|
||||
// DB입력
|
||||
unset($file_obj->file);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue