mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@750 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
3ffcefd6fb
commit
f7a361bd10
12 changed files with 65 additions and 24 deletions
|
|
@ -11,6 +11,10 @@
|
|||
* @brief 설치시 추가 작업이 필요할시 구현
|
||||
**/
|
||||
function moduleInstall() {
|
||||
// member 에서 사용할 cache디렉토리 생성
|
||||
FileHandler::makeDir('./files/attach/image_name');
|
||||
FileHandler::makeDir('./files/attach/image_mark');
|
||||
|
||||
// 멤버 컨트롤러 객체 생성
|
||||
$oMemberController = &getController('member');
|
||||
|
||||
|
|
|
|||
|
|
@ -648,5 +648,33 @@
|
|||
return new Object();
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 최종 출력물에서 이미지 이름을 변경
|
||||
* imgae_name 애드온에서 요청이 됨
|
||||
**/
|
||||
function transImageName($matches) {
|
||||
$member_srl = $matches[2];
|
||||
$text = $matches[4];
|
||||
if(!$member_srl) return $matches[0];
|
||||
|
||||
// 전역변수에 미리 설정한 데이터가 있다면 그걸 return
|
||||
if(!$GLOBALS['_transImageNameList'][$member_srl]) {
|
||||
// 이미지 이름 체크
|
||||
$image_name_file = sprintf('./files/attach/image_name/%s%d.gif', getNumberingPath($member_srl), $member_srl);
|
||||
if(file_exists($image_name_file)) {
|
||||
}
|
||||
|
||||
// 이미지 마크 체크 (가로 길이 20px 이내의 마크만 고려하고 직접 style로 표시를 해 준다, css를 쓸수가 없으므로)
|
||||
$image_mark_file = sprintf('./files/attach/image_mark/%s%d.gif', getNumberingPath($member_srl), $member_srl);
|
||||
if(file_exists($image_mark_file)) {
|
||||
$text = sprintf('<span style="background:url(%s) no-repeat left;padding-left:22px;">%s</span>', $image_mark_file, $text);
|
||||
}
|
||||
|
||||
$GLOBALS['_transImageNameList'][$member_srl] = $text;
|
||||
}
|
||||
|
||||
return $GLOBALS['_transImageNameList'][$member_srl];
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue