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->getPermanentUrl()}
+
- {$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 @@
{$category_list[$oDocument->get('category_srl')]->title}
-
{$oDocument->getPermanentUrl()}
-
@@ -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;