Merge branch 'g4s'
This commit is contained in:
@ -33,7 +33,7 @@ function mobile_create_thumb($srcImg, $width, $thumb)
|
||||
imagecopy($target, $source, 0, 0, 0, 0, $size[0], $size[1]);
|
||||
|
||||
imagejpeg($target, $thumb, 100);
|
||||
chmod($thumb, 0606); // 추후 삭제를 위하여 파일모드 변경
|
||||
chmod($thumb, G4_FILE_PERMISSION); // 추후 삭제를 위하여 파일모드 변경
|
||||
|
||||
return $thumb;
|
||||
}
|
||||
@ -62,8 +62,8 @@ function mobile_thumb($matches)
|
||||
|
||||
$thumb_dir = G4_DATA_PATH.'/thumb/'.$bo_table;
|
||||
if (!is_dir($thumb_dir)) {
|
||||
@mkdir($thumb_dir, 0707);
|
||||
@chmod($thumb_dir, 0707);
|
||||
@mkdir($thumb_dir, G4_DIR_PERMISSION);
|
||||
@chmod($thumb_dir, G4_DIR_PERMISSION);
|
||||
}
|
||||
|
||||
$result = true;
|
||||
|
||||
@ -180,8 +180,8 @@ function thumbnail($filename, $source_path, $target_path, $thumb_width, $thumb_h
|
||||
return;
|
||||
|
||||
if (!is_dir($target_path)) {
|
||||
@mkdir($target_path, 0707);
|
||||
@chmod($target_path, 0707);
|
||||
@mkdir($target_path, G4_DIR_PERMISSION);
|
||||
@chmod($target_path, G4_DIR_PERMISSION);
|
||||
}
|
||||
|
||||
// Animated GIF는 썸네일 생성하지 않음
|
||||
@ -299,7 +299,7 @@ function thumbnail($filename, $source_path, $target_path, $thumb_width, $thumb_h
|
||||
}
|
||||
|
||||
imagejpeg($dst, $thumb_file, 90);
|
||||
chmod($thumb_file, 0606); // 추후 삭제를 위하여 파일모드 변경
|
||||
chmod($thumb_file, G4_FILE_PERMISSION); // 추후 삭제를 위하여 파일모드 변경
|
||||
|
||||
imagedestroy($src);
|
||||
imagedestroy($dst);
|
||||
|
||||
Reference in New Issue
Block a user