mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-24 21:59:55 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1059 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
03e6093903
commit
e5cc1d7eb0
4 changed files with 5 additions and 4 deletions
|
|
@ -32,8 +32,8 @@
|
||||||
// 1. 출력문서중에서 <div class="member_번호">content</div>를 찾아 MemberController::transImageName() 를 이용하여 이미지이름/마크로 변경
|
// 1. 출력문서중에서 <div class="member_번호">content</div>를 찾아 MemberController::transImageName() 를 이용하여 이미지이름/마크로 변경
|
||||||
$output = preg_replace_callback('!<div([^\>]*)member_([0-9]*)([^\>]*)>(.*?)\<\/div\>!is', array($oMemberController, 'transImageName'), $output);
|
$output = preg_replace_callback('!<div([^\>]*)member_([0-9]*)([^\>]*)>(.*?)\<\/div\>!is', array($oMemberController, 'transImageName'), $output);
|
||||||
|
|
||||||
// 2. 출력문서중에 <div class="document_번호">내용</div> 를 찾아서 member_controller::transSignature()를 이용해서 서명을 추가
|
// 2. 출력문서중에 <!--AfterDocument(문서번호,회원번호)--> 를 찾아서 member_controller::transSignature()를 이용해서 서명을 추가
|
||||||
$output = preg_replace_callback('!<div([^\>]*)after_document_([0-9]*)([^\>]*)>(.*?)\<\/div\>!is', array($oMemberController, 'transSignature'), $output);
|
$output = preg_replace_callback('/<!--AfterDocument\(([0-9]+),([0-9]+)\)-->/i', array($oMemberController, 'transSignature'), $output);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 3 기능 수행 : 시작할때 새쪽지가 왔는지 검사
|
* 3 기능 수행 : 시작할때 새쪽지가 왔는지 검사
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>{$lang->content}</th>
|
<th>{$lang->content}</th>
|
||||||
<td height="100" valign="top"><div class="document_{$document->member_srl}">{$document->content}</div><div class="after_document_{$document->member_srl}"></div></td>
|
<td height="100" valign="top">{$document->content}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>{$lang->document_url}</th>
|
<th>{$lang->document_url}</th>
|
||||||
|
|
|
||||||
|
|
@ -72,6 +72,8 @@
|
||||||
$document->uploaded_list = $file_list;
|
$document->uploaded_list = $file_list;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$document->content = sprintf('<!--BeforeDocument(%d,%d)-->%s<!--AfterDocument(%d,%d)-->', $document_srl, $document->member_srl, $document->content, $document_srl, $document->member_srl);
|
||||||
|
|
||||||
return $document;
|
return $document;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1296,7 +1296,6 @@
|
||||||
**/
|
**/
|
||||||
function transSignature($matches) {
|
function transSignature($matches) {
|
||||||
$member_srl = $matches[2];
|
$member_srl = $matches[2];
|
||||||
$text = $matches[4];
|
|
||||||
if(!$member_srl) return $matches[0];
|
if(!$member_srl) return $matches[0];
|
||||||
|
|
||||||
// 전역변수에 미리 설정한 데이터가 있다면 그걸 return
|
// 전역변수에 미리 설정한 데이터가 있다면 그걸 return
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue