mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-25 14:19:58 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@757 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
bf280a8a53
commit
5666d36e4c
5 changed files with 82 additions and 19 deletions
|
|
@ -81,9 +81,12 @@
|
|||
}
|
||||
|
||||
/**
|
||||
* @brief 사용자 정보 중 extra_vars를 알맞게 편집
|
||||
* @brief 사용자 정보 중 extra_vars와 기타 정보를 알맞게 편집
|
||||
**/
|
||||
function arrangeMemberInfo($info) {
|
||||
$info->image_name = $this->getImageName($info->member_srl);
|
||||
$info->image_mark = $this->getImageMark($info->member_srl);
|
||||
|
||||
$extra_vars = unserialize($info->extra_vars);
|
||||
unset($info->extra_vars);
|
||||
if(!$extra_vars) return $info;
|
||||
|
|
@ -424,5 +427,32 @@
|
|||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 이미지이름의 정보를 구함
|
||||
**/
|
||||
function getImageName($member_srl) {
|
||||
$image_name_file = sprintf('files/attach/image_name/%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;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 이미지마크의 정보를 구함
|
||||
**/
|
||||
function getImageMark($member_srl) {
|
||||
$image_mark_file = sprintf('files/attach/image_mark/%s%d.gif', getNumberingPath($member_srl), $member_srl);
|
||||
if(!file_exists($image_mark_file)) return;
|
||||
list($width, $height, $type, $attrs) = getimagesize($image_mark_file);
|
||||
$info->width = $width;
|
||||
$info->height = $height;
|
||||
$info->src = Context::getRequestUri().$image_mark_file;
|
||||
$info->file = './'.$image_mark_file;
|
||||
return $info;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue