새로 생성되는 디렉토리의 퍼미션은 755 로, 파일은 644 로 설정하며, 상수로 적용

This commit is contained in:
gnuboard
2013-07-12 16:25:16 +09:00
parent 38642e2ade
commit ca925cdaaf
12 changed files with 37 additions and 33 deletions

View File

@ -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;