회원가입시 파일첨부할려고하는데요~ 고수님들 봐주실분~
본문
회원가입시 파일첨부할려고하는데요~ 고수님들 봐주실분~
if ($_FILES['profile_image']['size'] <= $profile_image_size) {
}
@chmod($mb_dir, G5_DIR_PERMISSION);
if($del_photo) {
$_old_photo = $dest_path.$old_photo;
@unlink($_old_photo);
sql_query("update {$g5[eyoom_member]} set photo = '' where mb_id='".$member['mb_id']."'");
}
$thumb['width'] = $eyoom['photo_width'];
$thumb['height'] = $eyoom['photo_height'];
$thumb['delete'] = 'y'; //원본 업로드 이미지 삭제여부
$res = $upload->upload_make_thumb("photo", $thumb);
if($res) {
$thumb_file = $res['t_file'];
// 썸네일 파일명을 회원아이디로 치환
$rename = $member['mb_id'].'.'.$res['ext'];
@rename($thumb_file, $dest_path.$rename);
sql_query("update {$g5[eyoom_member]} set photo = '".$rename."' where mb_id='".$member['mb_id']."'");
}
// 업로드 경로
$dest_path = G5_DATA_PATH.'/member/profile/';
$upload->path = $dest_path;
if (file_exists($dest_path)) {
//=================================================================\
// 090714
// gif 파일에 악성코드를 심어 업로드 하는 경우를 방지
// 에러메세지는 출력하지 않는다.
//-----------------------------------------------------------------
$sql="update g5_member set mb_3='$mb_id' where mb_id='$mb_id'";
sql_query($sql);
}
} else {
$msg .= '회원 사진을 '.number_format($profile_image_width).' 이하로 업로드 해주십시오.';
}
>>
회원가입시 프로필 사진 첨부할려고하는데요
$res = $upload->upload_make_thumb("photo", $thumb);
여기 클래스에서 잘안되는데요 아시는 고수님들~