From 1afb5a76caef8c92d1dbd1e3f31b166333a8dda4 Mon Sep 17 00:00:00 2001 From: thisgun Date: Thu, 9 Nov 2017 16:36:38 +0900 Subject: [PATCH] =?UTF-8?q?=EB=A6=AC=EB=89=B4=EC=96=BC=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.php | 1 + install/install_db.php | 93 +++++++++++++++++++ skin/latest/pic_basic/latest.skin.php | 2 +- theme/basic/index.php | 1 + .../skin/latest/pic_basic/latest.skin.php | 2 +- 5 files changed, 97 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index d3179e2b1..045a07bb9 100644 --- a/index.php +++ b/index.php @@ -29,6 +29,7 @@ include_once(G5_PATH.'/head.php'); where a.bo_device <> 'mobile' "; if(!$is_admin) $sql .= " and a.bo_use_cert = '' "; + $sql .= " and a.bo_table not in ('notice', 'gallery') "; //공지사항과 갤러리 게시판은 제외 $sql .= " order by b.gr_order, a.bo_order "; $result = sql_query($sql); for ($i=0; $row=sql_fetch_array($result); $i++) { diff --git a/install/install_db.php b/install/install_db.php index 1612d09b6..052d4de6a 100644 --- a/install/install_db.php +++ b/install/install_db.php @@ -202,6 +202,99 @@ sql_query(" insert into `{$table_prefix}content` set co_id = 'provision', co_htm // FAQ Master sql_query(" insert into `{$table_prefix}faq_master` set fm_id = '1', fm_subject = '자주하시는 질문' ", true, $dblink); + +$tmp_gr_id = defined('G5_YOUNGCART_VER') ? 'shop' : 'community'; +$tmp_gr_subject = defined('G5_YOUNGCART_VER') ? '쇼핑몰' : '커뮤니티'; + +// 게시판 그룹 생성 +sql_query(" insert into `{$table_prefix}group` set gr_id = '$tmp_gr_id', gr_subject = '$tmp_gr_subject' ", true, $dblink); + +// 게시판 생성 +$tmp_bo_table = array ("notice", "qa", "free", "gallery"); +$tmp_bo_subject = array ("공지사항", "질문답변", "자유게시판", "갤러리"); +for ($i=0; $i
  • DB설정 완료
  • diff --git a/skin/latest/pic_basic/latest.skin.php b/skin/latest/pic_basic/latest.skin.php index 0ce837eb7..8c68d3ee2 100644 --- a/skin/latest/pic_basic/latest.skin.php +++ b/skin/latest/pic_basic/latest.skin.php @@ -18,7 +18,7 @@ $thumb_height = 150; if($thumb['src']) { $img = $thumb['src']; } else { - $img = $latest_skin_path.'/img/no_img.gif'; + $img = $latest_skin_url.'/img/no_img.gif'; } $img_content = ''.$thumb['alt'].''; ?> diff --git a/theme/basic/index.php b/theme/basic/index.php index 7797ce556..f7bd1020b 100644 --- a/theme/basic/index.php +++ b/theme/basic/index.php @@ -22,6 +22,7 @@ include_once(G5_THEME_PATH.'/head.php'); where a.bo_device <> 'mobile' "; if(!$is_admin) $sql .= " and a.bo_use_cert = '' "; + $sql .= " and a.bo_table not in ('notice', 'gallery') "; //공지사항과 갤러리 게시판은 제외 $sql .= " order by b.gr_order, a.bo_order "; $result = sql_query($sql); for ($i=0; $row=sql_fetch_array($result); $i++) { diff --git a/theme/basic/skin/latest/pic_basic/latest.skin.php b/theme/basic/skin/latest/pic_basic/latest.skin.php index 0ce837eb7..8c68d3ee2 100644 --- a/theme/basic/skin/latest/pic_basic/latest.skin.php +++ b/theme/basic/skin/latest/pic_basic/latest.skin.php @@ -18,7 +18,7 @@ $thumb_height = 150; if($thumb['src']) { $img = $thumb['src']; } else { - $img = $latest_skin_path.'/img/no_img.gif'; + $img = $latest_skin_url.'/img/no_img.gif'; } $img_content = ''.$thumb['alt'].''; ?>