mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-21 12:19:56 +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
|
|
@ -37,7 +37,7 @@
|
|||
$addon = trim($addon_list[$i]);
|
||||
if(!$addon) continue;
|
||||
|
||||
$buff .= sprintf(' if(file_exists("./addons/%s%s.addon.php")) include("./addons/%s/%s.addon.php"); ', $addon, $addon, $addon, $addon);
|
||||
$buff .= sprintf(' if(file_exists("./addons/%s/%s.addon.php")) include("./addons/%s/%s.addon.php"); ', $addon, $addon, $addon, $addon);
|
||||
}
|
||||
|
||||
$buff = sprintf('<?if(!__ZBXE__)exit(); %s ?>', $buff);
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@
|
|||
[{$val->trackback_count}]
|
||||
<!--@end-->
|
||||
</td>
|
||||
<td><div class="user_{$document->member_srl}">{$val->user_name}</div></td>
|
||||
<td><div class="member_{$val->member_srl}"><a href="#">{$val->user_name}</a></div></td>
|
||||
<td>{$val->readed_count}</td>
|
||||
<td>{$val->voted_count}</td>
|
||||
<td>{zdate($val->regdate,"Y-m-d")}</td>
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<th>{$lang->user_name}</th>
|
||||
<td><div class="user_{$document->member_srl}">{$document->user_name}</div></td>
|
||||
<td><div class="member_{$document->member_srl}">{$document->user_name}</div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{$lang->readed_count}</th>
|
||||
|
|
|
|||
|
|
@ -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