mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-03 09:14:48 +09:00
#288 관리자 페이지에서 관리자가 이미지이름/마크/프로필 사진등을 삭제할 수 있도록 코드 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3487 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
61176c6538
commit
55258ddb54
3 changed files with 39 additions and 19 deletions
|
|
@ -406,14 +406,19 @@
|
|||
* @brief 프로필 이미지의 정보를 구함
|
||||
**/
|
||||
function getProfileImage($member_srl) {
|
||||
$image_name_file = sprintf('files/member_extra_info/profile_image/%s%d.gif', getNumberingPath($member_srl), $member_srl);
|
||||
if(!file_exists($image_name_file)) return;
|
||||
list($width, $height, $type, $attrs) = getimagesize($image_name_file);
|
||||
$info->width = $width;
|
||||
$info->height = $height;
|
||||
$info->src = Context::getRequestUri().$image_name_file;
|
||||
$info->file = './'.$image_name_file;
|
||||
return $info;
|
||||
$exts = array('gif','jpg','png');
|
||||
for($i=0;$i<3;$i++) {
|
||||
$image_name_file = sprintf('files/member_extra_info/profile_image/%s%d.%s', getNumberingPath($member_srl), $member_srl, $exts[$i]);
|
||||
if(file_exists($image_name_file)) {
|
||||
list($width, $height, $type, $attrs) = getimagesize($image_name_file);
|
||||
$info->width = $width;
|
||||
$info->height = $height;
|
||||
$info->src = Context::getRequestUri().$image_name_file;
|
||||
$info->file = './'.$image_name_file;
|
||||
return $info;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue