Changeset 4304 for sandbox

Show
Ignore:
Timestamp:
06/19/2008 03:55:57 PM (3 months ago)
Author:
zero
Message:

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

Location:
sandbox/modules
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • sandbox/modules/board/skins/xe_board/comment.html

    r4197 r4304  
    2323 
    2424                <strong>{$comment->getRegdate('Y.m.d')}</strong> {$comment->getRegdate('H:i:s')} 
    25  
    26                 <!--@if($grant->is_admin)--> 
    27                     ({$comment->get('ipaddress')}) 
    28                 <!--@end--> 
     25                ({$comment->getIpaddress()}) 
    2926            </div> 
    3027 
  • sandbox/modules/board/skins/xe_board/css/common.css

    r4089 r4304  
    5959.boardRead .titleAndUser .userInfo .author a { font-size:.9em; color:#3074a5; text-decoration:none; } 
    6060 
    61 .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; } 
     61.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; } 
     62 
     63.boardRead .dateAndCount .uri { float:left; } 
     64.boardRead .dateAndCount .uri a { text-decoration:none; margin-left:4px; color:#BBBBBB; } 
     65 
    6266.boardRead .dateAndCount .date { float:right; background:url("../images/common/calendar.gif") no-repeat left top; padding-left:18px; margin-left:10px; } 
    6367.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;} 
     
    7175.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;} 
    7276.boardRead .dateAndCount .category a:hover { text-decoration:underline; } 
    73 .boardRead .dateAndCount .uri { float:left; } 
    74 .boardRead .dateAndCount .uri a { text-decoration:none; margin-left:4px; color:#BBBBBB; } 
    7577 
    7678/* extraVars list */ 
     
    8183 
    8284.boardRead .readBody { color:#555555; margin-top:20px; } 
    83 .boardRead .readBody .contentBody .ipaddress { text-align:right; margin-top:10px; color:#bbbbbb; font-family:tahoma;} 
    8485 
    8586 
  • sandbox/modules/board/skins/xe_board/view_document.html

    r4141 r4304  
    3030 
    3131            <div class="dateAndCount"> 
     32                <div class="uri" title="{$lang->document_url}"><a href="{$oDocument->getPermanentUrl()}">{$oDocument->getPermanentUrl()}</a></div> 
     33 
    3234                <div class="date" title="{$lang->regdate}"> 
    33                     <strong>{$oDocument->getRegdate('Y.m.d')}</strong> {$oDocument->getRegdate('H:i:s')} 
     35                    <strong>{$oDocument->getRegdate('Y.m.d')}</strong> {$oDocument->getRegdate('H:i:s')} ({$oDocument->getIpaddress()}) 
    3436                </div> 
    3537 
     
    5456                <div class="category" title="{$lang->category}"><a href="{getUrl('category',$oDocument->get('category_srl'), 'document_srl', '')}">{$category_list[$oDocument->get('category_srl')]->title}</a></div> 
    5557                <!--@end--> 
    56  
    57                 <div class="uri" title="{$lang->document_url}"><a href="{$oDocument->getPermanentUrl()}">{$oDocument->getPermanentUrl()}</a></div> 
    5858 
    5959                <div class="clear"></div> 
     
    103103                <!--@end--> 
    104104 
    105                 <!--@if($grant->is_admin)--> 
    106                 <div class="ipaddress">ipaddress : {$oDocument->get('ipaddress')}</div> 
    107                 <!--@end--> 
    108  
    109105                <!-- 서명 / 프로필 이미지 출력 --> 
    110106                <!--@if($oDocument->getProfileImage() || $oDocument->getSignature())--> 
  • sandbox/modules/comment/comment.item.php

    r4226 r4304  
    124124            $oCommunicationController = &getController('communication'); 
    125125            $oCommunicationController->sendMessage($sender_member_srl, $receiver_srl, $title, $content, false); 
     126        } 
     127 
     128        function getIpaddress() { 
     129            if($this->isGranted()) return $this->get('ipaddress'); 
     130            return preg_replace('/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/','*.$1.$2.$3', $this->get('ipaddress')); 
    126131        } 
    127132 
  • sandbox/modules/document/document.item.php

    r4226 r4304  
    170170            $oCommunicationController = &getController('communication'); 
    171171            $oCommunicationController->sendMessage($sender_member_srl, $receiver_srl, $title, $content, false); 
     172        } 
     173 
     174        function getIpaddress() { 
     175            if($this->isGranted()) return $this->get('ipaddress'); 
     176            return preg_replace('/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/','*.$1.$2.$3', $this->get('ipaddress')); 
     177 
    172178        } 
    173179