프로필 이미지 잘못된 코드 전부 수정
This commit is contained in:
1 parent
0ae22667a0
commit
d37619aa95
74 files changed
+296
-73
No files matched your search
@@ -123,15 +123,25 @@ if($result) {
|
||||
|
||||
set_session('ss_mb_reg', $mb['mb_id']);
|
||||
|
||||
if( !empty($user_profile->photoURL) ){ //회원 프로필 사진이 있다면
|
||||
//해당 처리
|
||||
if( !empty($user_profile->photoURL) && ($config['cf_register_level'] >= $config['cf_icon_level']) ){ //회원 프로필 사진이 있고, 회원 아이콘를 올릴수 있는 조건이면
|
||||
|
||||
// 회원아이콘
|
||||
$mb_dir = G5_DATA_PATH.'/member/'.substr($mb_id,0,2);
|
||||
@mkdir($mb_dir, G5_DIR_PERMISSION);
|
||||
@chmod($mb_dir, G5_DIR_PERMISSION);
|
||||
$dest_path = "$mb_dir/$mb_id.gif";
|
||||
|
||||
social_profile_img_resize($dest_path, $user_profile->photoURL, $config['cf_member_icon_width'], $config['cf_member_icon_height'] );
|
||||
|
||||
// 회원이미지
|
||||
if( is_dir(G5_DATA_PATH.'/member_image/') ) {
|
||||
$mb_dir = G5_DATA_PATH.'/member_image/'.substr($mb_id,0,2);
|
||||
@mkdir($mb_dir, G5_DIR_PERMISSION);
|
||||
@chmod($mb_dir, G5_DIR_PERMISSION);
|
||||
$dest_path = "$mb_dir/$mb_id.gif";
|
||||
|
||||
social_profile_img_resize($dest_path, $user_profile->photoURL, $config['cf_member_img_width'], $config['cf_member_img_height'] );
|
||||
}
|
||||
}
|
||||
|
||||
if( $mb_email_certify ){ //메일인증 사용 안하면
|
||||
|
||||
Reference in new issue
Block a user