※매우 심플한 방식으로 노출 위주로 코드 작성함.
다양상 상황에서의 버그 체크 하지 않음
1. 관리자페이지 > 환경설정 > 기본 환경설정
>동영상 업로드 확장자 에 업로드하는 동영상 확장자 추가
2. commom.lib.php
약 1320 Line
if (preg_match("/\.({$config['cf_image_extension']})$/i", $file)) {
$img = '<a href="'.G5_BBS_URL.'/view_image.php?bo_table='.$board['bo_table'].'&fn='.urlencode($file).'" target="_blank" class="view_image">';
$img .= '<img src="'.G5_DATA_URL.'/file/'.$board['bo_table'].'/'.urlencode($file).'" alt="'.$content.'" '.$attr.'>';
$img .= '</a>';
return $img;
}
코드 아래, 다음 코드를 추가
if (preg_match("/\.({$config['cf_movie_extension']})$/i", $file)) {
$img = '<video controls>';
$img .= '<source src="'.G5_DATA_URL.'/file/'.$board['bo_table'].'/'.urlencode($file).'" type="video/mp4">';
$img .= '</video>';
return $img;
}
댓글 5개
다양상 상황에서의 버그 체크 하지 않음
1. 관리자페이지 > 환경설정 > 기본 환경설정
>동영상 업로드 확장자 에 업로드하는 동영상 확장자 추가
2. commom.lib.php
약 1320 Line
if (preg_match("/\.({$config['cf_image_extension']})$/i", $file)) {
$img = '<a href="'.G5_BBS_URL.'/view_image.php?bo_table='.$board['bo_table'].'&fn='.urlencode($file).'" target="_blank" class="view_image">';
$img .= '<img src="'.G5_DATA_URL.'/file/'.$board['bo_table'].'/'.urlencode($file).'" alt="'.$content.'" '.$attr.'>';
$img .= '</a>';
return $img;
}
코드 아래, 다음 코드를 추가
if (preg_match("/\.({$config['cf_movie_extension']})$/i", $file)) {
$img = '<video controls>';
$img .= '<source src="'.G5_DATA_URL.'/file/'.$board['bo_table'].'/'.urlencode($file).'" type="video/mp4">';
$img .= '</video>';
return $img;
}
게시글 목록
| 번호 | 제목 |
|---|---|
| 24318 | |
| 24317 | |
| 24315 | |
| 24309 | |
| 24294 | |
| 24293 | |
| 24277 | |
| 24262 | |
| 24260 | |
| 24253 | |
| 24251 | |
| 24236 | |
| 24233 | |
| 24228 | |
| 24226 | |
| 24221 | |
| 24214 | |
| 24203 | |
| 24201 | |
| 24199 | |
| 24196 | |
| 24195 | |
| 24194 | |
| 24192 | |
| 24191 | |
| 24187 | |
| 24185 | |
| 24183 | |
| 24172 | |
| 24168 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기