mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
게시글 이동시 첨부파일쪽 문제 발생시 무시하고 실행되도록 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4057 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
ce824ed878
commit
3ed13e73d5
2 changed files with 13 additions and 12 deletions
|
|
@ -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';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue