메뉴 건너뛰기

창고/data

[xe] 아이콘 출력 없애기

한석조 2009.11.07 조회 수 : 19600


빨간색 N: 새 글
노란색 U: 업데이트
이미지: 그림 파일 있음
TV: 동영상 파일 있음
디스켓: 첨부 파일 있음

xe/modules/document/document.item.php

           
// 새글 체크  

           
if($this->get('regdate')>$time_check$buffs[] = "new";  
           
else if($this->get('last_update')>$time_check$buffs[] = "update";  
 

           
// 사진 이미지 체크  
            preg_match_all(
'!<img([^>]*?)>!is'$content$matches);  
           
$cnt = count($matches[0]);  
           
for($i=0;$i<$cnt;$i++) {  
               
if(preg_match('/editor_component=/',$matches[0][$i])&&!preg_match('/image_(gallery|link)/i',$matches[0][$i])) continue;  
               
$buffs[] = "image";  
               
$check_files = true;  
               
break;  
            }  

 

           
// 동영상 체크  
           
if(preg_match('!<embed([^>]*?)>!is'$content) || preg_match('/editor_component=("|')*multimedia_link/i', $content) ) {  
               
$buffs[] = "movie";  
               
$check_files = true;  
            }  

 

           
// 첨부파일 체크  
           
if($this->hasUploadedFiles()) $buffs[] = "file";