@@ 938-955 (lines=18) @@ | ||
935 | * |
|
936 | * @return BaseObject |
|
937 | */ |
|
938 | function procMemberDeleteProfileImage($_memberSrl = 0) |
|
939 | { |
|
940 | $member_srl = ($_memberSrl) ? $_memberSrl : Context::get('member_srl'); |
|
941 | if(!$member_srl) |
|
942 | { |
|
943 | return new BaseObject(0,'success'); |
|
944 | } |
|
945 | ||
946 | $logged_info = Context::get('logged_info'); |
|
947 | ||
948 | if($logged_info && ($logged_info->is_admin == 'Y' || $logged_info->member_srl == $member_srl)) |
|
949 | { |
|
950 | $oMemberModel = getModel('member'); |
|
951 | $profile_image = $oMemberModel->getProfileImage($member_srl); |
|
952 | FileHandler::removeFile($profile_image->file); |
|
953 | } |
|
954 | return new BaseObject(0,'success'); |
|
955 | } |
|
956 | ||
957 | /** |
|
958 | * Delete Image name |
|
@@ 962-979 (lines=18) @@ | ||
959 | * |
|
960 | * @return void |
|
961 | */ |
|
962 | function procMemberDeleteImageName($_memberSrl = 0) |
|
963 | { |
|
964 | $member_srl = ($_memberSrl) ? $_memberSrl : Context::get('member_srl'); |
|
965 | if(!$member_srl) |
|
966 | { |
|
967 | return new BaseObject(0,'success'); |
|
968 | } |
|
969 | ||
970 | $logged_info = Context::get('logged_info'); |
|
971 | ||
972 | if($logged_info && ($logged_info->is_admin == 'Y' || $logged_info->member_srl == $member_srl)) |
|
973 | { |
|
974 | $oMemberModel = getModel('member'); |
|
975 | $image_name = $oMemberModel->getImageName($member_srl); |
|
976 | FileHandler::removeFile($image_name->file); |
|
977 | } |
|
978 | return new BaseObject(0,'success'); |
|
979 | } |
|
980 | ||
981 | /** |
|
982 | * Add an image to mark |
|
@@ 1080-1097 (lines=18) @@ | ||
1077 | * |
|
1078 | * @return BaseObject |
|
1079 | */ |
|
1080 | function procMemberDeleteImageMark($_memberSrl = 0) |
|
1081 | { |
|
1082 | $member_srl = ($_memberSrl) ? $_memberSrl : Context::get('member_srl'); |
|
1083 | if(!$member_srl) |
|
1084 | { |
|
1085 | return new BaseObject(0,'success'); |
|
1086 | } |
|
1087 | ||
1088 | $logged_info = Context::get('logged_info'); |
|
1089 | ||
1090 | if($logged_info && ($logged_info->is_admin == 'Y' || $logged_info->member_srl == $member_srl)) |
|
1091 | { |
|
1092 | $oMemberModel = getModel('member'); |
|
1093 | $image_mark = $oMemberModel->getImageMark($member_srl); |
|
1094 | FileHandler::removeFile($image_mark->file); |
|
1095 | } |
|
1096 | return new BaseObject(0,'success'); |
|
1097 | } |
|
1098 | ||
1099 | /** |
|
1100 | * Find ID/Password |