xe_board 스킨의 글/댓글에 ipaddress주소를 관리자의 경우 온전히, 비관리자의 경우 A클래스를 지워서 노출하도록 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4304 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2008-06-19 06:55:57 +00:00
parent 3c7fa167db
commit 24bab32a3b
5 changed files with 20 additions and 15 deletions

View file

@ -125,6 +125,11 @@
$oCommunicationController->sendMessage($sender_member_srl, $receiver_srl, $title, $content, false);
}
function getIpaddress() {
if($this->isGranted()) return $this->get('ipaddress');
return preg_replace('/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/','*.$1.$2.$3', $this->get('ipaddress'));
}
function isExistsHomepage() {
if(trim($this->get('homepage'))) return true;
return false;