mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
블로그/게시판의 기본 스킨에 작성자(글,댓글)가 비회원일 경우 홈페이지 링크 적용
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2719 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
6e3c2b4fb4
commit
c922dc5b20
12 changed files with 121 additions and 27 deletions
|
|
@ -122,6 +122,24 @@
|
|||
$oMemberController = &getController('member');
|
||||
$oMemberController->sendMessage($sender_member_srl, $receiver_srl, $title, $content, false);
|
||||
}
|
||||
|
||||
function isExistsHomepage() {
|
||||
if(trim($this->get('homepage'))) return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
function getHomepageUrl() {
|
||||
$url = trim($this->get('homepage'));
|
||||
if(!$url) return;
|
||||
|
||||
if(!eregi("^http:\/\/",$url)) $url = "http://".$url;
|
||||
|
||||
return $url;
|
||||
}
|
||||
|
||||
function getMemberSrl() {
|
||||
return $this->get('member_srl');
|
||||
}
|
||||
|
||||
function getUserID() {
|
||||
return htmlspecialchars($this->get('user_id'));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue