Merge branch 'master' of github.com:gnuboard/g4s
This commit is contained in:
@ -199,7 +199,7 @@ if (count($file_copy)) {
|
|||||||
delete_cache_latest($bo_table);
|
delete_cache_latest($bo_table);
|
||||||
delete_cache_latest($target_table);
|
delete_cache_latest($target_table);
|
||||||
|
|
||||||
//echo "<script>opener.document.location.reload();</script>";
|
echo "<script>opener.document.location.reload();</script>";
|
||||||
|
|
||||||
alert("복사에 성공 했습니다.", './board_copy.php?bo_table='.$bo_table.'&'.$qstr);
|
alert("복사에 성공 했습니다.", './board_copy.php?bo_table='.$bo_table.'&'.$qstr);
|
||||||
?>
|
?>
|
||||||
@ -70,7 +70,7 @@ while ($row=sql_fetch_array($result)) {
|
|||||||
$link2 = '';
|
$link2 = '';
|
||||||
$key = '직접';
|
$key = '직접';
|
||||||
} else {
|
} else {
|
||||||
$link = '<a href="./visit_list.php?$qstr&domain='.$key.'">';
|
$link = '<a href="./visit_list.php?'.$qstr.'&domain='.$key.'">';
|
||||||
$link2 = '</a>';
|
$link2 = '</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -76,24 +76,26 @@ function get_list_thumbnail($bo_table, $wr_id, $thumb_width, $thumb_height, $is_
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 게시글보기 썸네일 생성
|
// 게시글보기 썸네일 생성
|
||||||
function get_view_thumbnail($contents)
|
function get_view_thumbnail($contents, $thumb_width=0)
|
||||||
{
|
{
|
||||||
global $board, $config;
|
global $board, $config;
|
||||||
$dvc_width = intval($_COOKIE['device_width']);
|
|
||||||
|
|
||||||
if(G4_IS_MOBILE && $dvc_width) {
|
if (!$thumb_width) {
|
||||||
// 썸네일 width 설정
|
$dvc_width = intval($_COOKIE['device_width']);
|
||||||
$thumb_width = 320;
|
if(G4_IS_MOBILE && $dvc_width) {
|
||||||
|
// 썸네일 width 설정
|
||||||
|
$thumb_width = 320;
|
||||||
|
|
||||||
if($dvc_width >= 1000) {
|
if($dvc_width >= 1000) {
|
||||||
return $contents;
|
return $contents;
|
||||||
} else if($dvc_width >= 760 && $dvc_width < 1000) {
|
} else if($dvc_width >= 760 && $dvc_width < 1000) {
|
||||||
$thumb_width = 760;
|
$thumb_width = 760;
|
||||||
} else if($dvc_width >= 480 && $dvc_width < 760) {
|
} else if($dvc_width >= 480 && $dvc_width < 760) {
|
||||||
$thumb_width = 480;
|
$thumb_width = 480;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
$thumb_width = $board['bo_image_width'];
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
$thumb_width = $board['bo_image_width'];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// $contents 중 img 태그 추출
|
// $contents 중 img 태그 추출
|
||||||
|
|||||||
Reference in New Issue
Block a user