diff --git a/adm/board_copy_update.php b/adm/board_copy_update.php index 51bd14b90..a8cebc15c 100644 --- a/adm/board_copy_update.php +++ b/adm/board_copy_update.php @@ -199,7 +199,7 @@ if (count($file_copy)) { delete_cache_latest($bo_table); delete_cache_latest($target_table); -//echo ""; +echo ""; alert("복사에 성공 했습니다.", './board_copy.php?bo_table='.$bo_table.'&'.$qstr); ?> \ No newline at end of file diff --git a/adm/visit_domain.php b/adm/visit_domain.php index 6cc4501dc..eb8ec867d 100644 --- a/adm/visit_domain.php +++ b/adm/visit_domain.php @@ -70,7 +70,7 @@ while ($row=sql_fetch_array($result)) { $link2 = ''; $key = '직접'; } else { - $link = ''; + $link = ''; $link2 = ''; } diff --git a/lib/thumbnail.lib.php b/lib/thumbnail.lib.php index 5daeaaab4..23b8b18dc 100644 --- a/lib/thumbnail.lib.php +++ b/lib/thumbnail.lib.php @@ -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; - $dvc_width = intval($_COOKIE['device_width']); - if(G4_IS_MOBILE && $dvc_width) { - // 썸네일 width 설정 - $thumb_width = 320; + if (!$thumb_width) { + $dvc_width = intval($_COOKIE['device_width']); + if(G4_IS_MOBILE && $dvc_width) { + // 썸네일 width 설정 + $thumb_width = 320; - if($dvc_width >= 1000) { - return $contents; - } else if($dvc_width >= 760 && $dvc_width < 1000) { - $thumb_width = 760; - } else if($dvc_width >= 480 && $dvc_width < 760) { - $thumb_width = 480; + if($dvc_width >= 1000) { + return $contents; + } else if($dvc_width >= 760 && $dvc_width < 1000) { + $thumb_width = 760; + } else if($dvc_width >= 480 && $dvc_width < 760) { + $thumb_width = 480; + } + } else { + $thumb_width = $board['bo_image_width']; } - } else { - $thumb_width = $board['bo_image_width']; } // $contents 중 img 태그 추출