diff --git a/bbs/download.php b/bbs/download.php index 6b59c5726..2fc09500f 100644 --- a/bbs/download.php +++ b/bbs/download.php @@ -16,9 +16,9 @@ if (!$file['bf_file']) alert_close('파일 정보가 존재하지 않습니다.'); // JavaScript 불가일 때 -if($confirm != 'yes' && $board['bo_download_point'] < 0) { +if($js != 'on' && $board['bo_download_point'] < 0) { $msg = $file['bf_source'].' 파일을 다운로드 하시면 포인트가 차감('.number_format($board['bo_download_point']).'점)됩니다.\\n포인트는 게시물당 한번만 차감되며 다음에 다시 다운로드 하셔도 중복하여 차감하지 않습니다.\\n그래도 다운로드 하시겠습니까?'; - $url1 = './download.php?'.$_SERVER['QUERY_STRING'].'&confirm=yes'; + $url1 = G4_BBS_URL.'/download.php?'.$_SERVER['QUERY_STRING'].'&js=on'; $url2 = $_SERVER['HTTP_REFERER']; //$url1 = 확인link, $url2=취소link @@ -54,7 +54,7 @@ if (!get_session($ss_name)) { // 다운로드 포인트가 음수이고 회원의 포인트가 0 이거나 작다면 if ($member['mb_point'] + $board['bo_download_point'] < 0) - alert('보유하신 포인트('.number_format($member['mb_point']).')가 없거나 모자라서 다운로드('.number_format($board['bo_download_point']).')가 불가합니다.'."\n\n".'포인트를 적립하신 후 다시 다운로드 해 주십시오.'); + alert('보유하신 포인트('.number_format($member['mb_point']).')가 없거나 모자라서 다운로드('.number_format($board['bo_download_point']).')가 불가합니다.\\n\\n포인트를 적립하신 후 다시 다운로드 해 주십시오.'); // 게시물당 한번만 차감하도록 수정 insert_point($member['mb_id'], $board['bo_download_point'], "{$board['bo_subject']} $wr_id 파일 다운로드", $bo_table, $wr_id, "다운로드"); diff --git a/lib/common.lib.php b/lib/common.lib.php index 12078b24f..7d0e739ba 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -1753,7 +1753,7 @@ function get_editor_image($contents) return false; // $contents 중 img 태그 추출 - $pattern = "/]*src=[\'\"]?([^>\'\"]+".str_replace(".", "\.", $_SERVER['HTTP_HOST'])."[^>\'\"]+)[\'\"]?[^>]*>/"; + $pattern = "/]*src=[\'\"]?([^>\'\"]+[^>\'\"]+)[\'\"]?[^>]*>/"; preg_match_all($pattern, $contents, $matchs); return $matchs; diff --git a/lib/thumbnail.lib.php b/lib/thumbnail.lib.php index d56497c6d..7fe5f7185 100644 --- a/lib/thumbnail.lib.php +++ b/lib/thumbnail.lib.php @@ -34,9 +34,11 @@ function get_list_thumbnail($bo_table, $wr_id, $thumb_width, $thumb_height, $is_ for($i=0; $i'.$thumb_tag.''; + $imgurl = str_replace(G4_URL, "", $matchs[1][$i]); + $thumb_tag = ''.$thumb_tag.''; } $contents = str_replace($img_tag, $thumb_tag, $contents); diff --git a/mobile/skin/board/basic/view.skin.php b/mobile/skin/board/basic/view.skin.php index 2b70d4351..b44f08c6c 100644 --- a/mobile/skin/board/basic/view.skin.php +++ b/mobile/skin/board/basic/view.skin.php @@ -40,7 +40,7 @@ include_once(G4_LIB_PATH.'/thumbnail.lib.php'); if (isset($view['file'][$i]['source']) && $view['file'][$i]['source'] && !$view['file'][$i]['view']) { ?>
  • - + 첨부파일 () @@ -183,10 +183,22 @@ include_once(G4_LIB_PATH.'/thumbnail.lib.php');