※매우 심플한 방식으로 노출 위주로 코드 작성함.
다양상 상황에서의 버그 체크 하지 않음
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;
}
게시글 목록
| 번호 | 제목 |
|---|---|
| 23966 | |
| 23963 | |
| 23953 | |
| 23949 | |
| 23938 | |
| 23935 | |
| 23933 | |
| 23928 | |
| 23919 | |
| 23918 | |
| 23917 | |
| 23910 | |
| 23902 | |
| 23901 | |
| 23897 | |
| 23894 | |
| 23893 | |
| 23891 | |
| 23885 | |
| 23872 | |
| 23870 | |
| 23862 | |
| 23859 | |
| 23853 | |
| 23845 | |
| 23838 | |
| 23827 | |
| 23819 | |
| 23805 | |
| 23801 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기