From 24bab32a3b447d6051509bc5090fb54849d2f324 Mon Sep 17 00:00:00 2001 From: zero Date: Thu, 19 Jun 2008 06:55:57 +0000 Subject: [PATCH] =?UTF-8?q?xe=5Fboard=20=EC=8A=A4=ED=82=A8=EC=9D=98=20?= =?UTF-8?q?=EA=B8=80/=EB=8C=93=EA=B8=80=EC=97=90=20ipaddress=EC=A3=BC?= =?UTF-8?q?=EC=86=8C=EB=A5=BC=20=EA=B4=80=EB=A6=AC=EC=9E=90=EC=9D=98=20?= =?UTF-8?q?=EA=B2=BD=EC=9A=B0=20=EC=98=A8=EC=A0=84=ED=9E=88,=20=EB=B9=84?= =?UTF-8?q?=EA=B4=80=EB=A6=AC=EC=9E=90=EC=9D=98=20=EA=B2=BD=EC=9A=B0=20A?= =?UTF-8?q?=ED=81=B4=EB=9E=98=EC=8A=A4=EB=A5=BC=20=EC=A7=80=EC=9B=8C?= =?UTF-8?q?=EC=84=9C=20=EB=85=B8=EC=B6=9C=ED=95=98=EB=8F=84=EB=A1=9D=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4304 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/board/skins/xe_board/comment.html | 5 +---- modules/board/skins/xe_board/css/common.css | 9 +++++---- modules/board/skins/xe_board/view_document.html | 10 +++------- modules/comment/comment.item.php | 5 +++++ modules/document/document.item.php | 6 ++++++ 5 files changed, 20 insertions(+), 15 deletions(-) diff --git a/modules/board/skins/xe_board/comment.html b/modules/board/skins/xe_board/comment.html index bbce49468..ec2cef9ed 100644 --- a/modules/board/skins/xe_board/comment.html +++ b/modules/board/skins/xe_board/comment.html @@ -22,10 +22,7 @@
{$comment->getRegdate('Y.m.d')} {$comment->getRegdate('H:i:s')} - - - ({$comment->get('ipaddress')}) - + ({$comment->getIpaddress()})
diff --git a/modules/board/skins/xe_board/css/common.css b/modules/board/skins/xe_board/css/common.css index 795147bf3..6eca0b181 100644 --- a/modules/board/skins/xe_board/css/common.css +++ b/modules/board/skins/xe_board/css/common.css @@ -58,7 +58,11 @@ Jeong, Chan Myeong 070601~070630 .boardRead .titleAndUser .userInfo .author { color:#3074a5; } .boardRead .titleAndUser .userInfo .author a { font-size:.9em; color:#3074a5; text-decoration:none; } -.boardRead .dateAndCount { clear:both; white-space:nowrap; color:#444444; margin:5px 0 0 0; float:left; font-size:.9em; font-family:tahoma; line-height:17px; padding-bottom:10px; } +.boardRead .dateAndCount { clear:both; white-space:nowrap; color:#444444; margin:5px 0 0 0; font-size:.9em; font-family:tahoma; line-height:17px; padding-bottom:10px; } + +.boardRead .dateAndCount .uri { float:left; } +.boardRead .dateAndCount .uri a { text-decoration:none; margin-left:4px; color:#BBBBBB; } + .boardRead .dateAndCount .date { float:right; background:url("../images/common/calendar.gif") no-repeat left top; padding-left:18px; margin-left:10px; } .boardRead .dateAndCount .readedCount { float:right; color:#AAAAAA; margin-left:10px; background:url("../images/common/read.gif") no-repeat left top; padding-left:18px; color:#4A3FD7;} .boardRead .dateAndCount .votedCount { float:right; color:#AAAAAA; margin-left:10px; background:url("../images/common/vote.gif") no-repeat left top; padding-left:18px; color:#D76A3F;} @@ -70,8 +74,6 @@ Jeong, Chan Myeong 070601~070630 .boardRead .dateAndCount .category { float:left; margin-right:10px; } .boardRead .dateAndCount .category a { color:#555555; text-decoration:none; background:url("../images/common/category.gif") no-repeat left -1px; padding-left:18px; font-weight:bold;} .boardRead .dateAndCount .category a:hover { text-decoration:underline; } -.boardRead .dateAndCount .uri { float:left; } -.boardRead .dateAndCount .uri a { text-decoration:none; margin-left:4px; color:#BBBBBB; } /* extraVars list */ .boardRead .extraVarsList { width:100%; border:1px solid #e0e1db; border-bottom:none; margin:0 0 30px 0; table-layout:fixed;} @@ -80,7 +82,6 @@ Jeong, Chan Myeong 070601~070630 .boardRead .extraVarsList td a { color:#555555; } .boardRead .readBody { color:#555555; margin-top:20px; } -.boardRead .readBody .contentBody .ipaddress { text-align:right; margin-top:10px; color:#bbbbbb; font-family:tahoma;} .boardRead .tag { background:#FFFFFF url(../images/common/iconTag.gif) no-repeat 3px 2px; padding-left:25px; margin:10px 0 0 0; } diff --git a/modules/board/skins/xe_board/view_document.html b/modules/board/skins/xe_board/view_document.html index 479e83dee..925f45fb5 100644 --- a/modules/board/skins/xe_board/view_document.html +++ b/modules/board/skins/xe_board/view_document.html @@ -29,8 +29,10 @@
+ +
- {$oDocument->getRegdate('Y.m.d')} {$oDocument->getRegdate('H:i:s')} + {$oDocument->getRegdate('Y.m.d')} {$oDocument->getRegdate('H:i:s')} ({$oDocument->getIpaddress()})
{$oDocument->get('readed_count')}
@@ -54,8 +56,6 @@ - -
@@ -102,10 +102,6 @@ {$oDocument->getContent()} - -
ipaddress : {$oDocument->get('ipaddress')}
- -
diff --git a/modules/comment/comment.item.php b/modules/comment/comment.item.php index afd245246..bd7389ff8 100644 --- a/modules/comment/comment.item.php +++ b/modules/comment/comment.item.php @@ -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; diff --git a/modules/document/document.item.php b/modules/document/document.item.php index 6f53276d9..d572e2dcf 100644 --- a/modules/document/document.item.php +++ b/modules/document/document.item.php @@ -171,6 +171,12 @@ $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;