#312 이미지마크에도 관리자가 설정한 범위이내이면 그대로 등록하도록 기능 변경

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3281 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-12-10 05:02:34 +00:00
parent c95a9bd93a
commit 1a141e926e

View file

@ -1036,7 +1036,12 @@
FileHandler::makeDir($target_path);
$target_filename = sprintf('%s%d.gif', $target_path, $member_srl);
FileHandler::createImageFile($target_file, $target_filename, $max_width, $max_height, 'gif');
// 파일 정보 구함
list($width, $height, $type, $attrs) = @getimagesize($target_file);
if($width > $max_width || $height > $max_height || $type!=1) FileHandler::createImageFile($target_file, $target_filename, $max_width, $max_height, 'gif');
else @copy($target_file, $target_filename);
}