파일 첨부해서 마이 사진 첨부할려고하는데요~

- - 짧은주소 : http://e3net.fineyes.com/bbs/?t=JV
본문
파일 첨부해서 마이 사진 첨부할려고하는데요~
if ($_FILES['profile_image']['size'] <= $profile_image_size) {
@mkdir($mb_dir, G5_DIR_PERMISSION);
@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);
}
>>
회원가입시 파일 첨부인데요 잘안되네요.
$res = $upload->upload_make_thumb("photo", $thumb);
여기 클래스에서 저 함수가 작동이 안되는듯합니다. ㅎㅎ

댓글목록 1
fm25님의 댓글
그누보드에서 사용하는 소스네요.
이윰은 소스가 많이 달라서 간단한 것도 적용을 못하겠던데... 저렇게 무지막지한 분량은...
축하합니다. 첫댓글 포인트 7포인트를 획득하였습니다.