게시글 이동시 첨부파일쪽 문제 발생시 무시하고 실행되도록 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4057 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2008-03-31 02:09:28 +00:00
parent ce824ed878
commit 3ed13e73d5
2 changed files with 13 additions and 12 deletions

View file

@ -338,11 +338,11 @@
// 이미지인지 기타 파일인지 체크하여 upload path 지정
if(preg_match("/\.(jpg|jpeg|gif|png|wmv|wma|mpg|mpeg|avi|swf|flv|mp3|asaf|wav|asx|midi|asf)$/i", $file_info['name'])) {
$path = sprintf("./files/attach/images/%s/%s/", $module_srl,$upload_target_srl);
$path = sprintf("./files/attach/images/%s/%s", $module_srl,$upload_target_srl);
$filename = $path.$file_info['name'];
$direct_download = 'Y';
} else {
$path = sprintf("./files/attach/binaries/%s/%s/", $module_srl, $upload_target_srl);
$path = sprintf("./files/attach/binaries/%s/%s", $module_srl, $upload_target_srl);
$filename = $path.md5(crypt(rand(1000000,900000), rand(0,100)));
$direct_download = 'N';
}