리뉴얼 수정

This commit is contained in:
thisgun committed 2017-11-09 16:36:38 +09:00
1 parent 260de461bc
commit 1afb5a76ca
5 files changed
+97 -2

No files matched your search

+1
View File
@@ -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++) {
+93
View File
@@ -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<count($tmp_bo_table); $i++)
{
$bo_skin = ($tmp_bo_table[$i] === 'gallery') ? 'gallery' : 'basic';
$sql = " insert into `{$table_prefix}board`
set bo_table = '$tmp_bo_table[$i]',
gr_id = '$tmp_gr_id',
bo_subject = '$tmp_bo_subject[$i]',
bo_device = 'both',
bo_admin = '',
bo_list_level = '1',
bo_read_level = '1',
bo_write_level = '1',
bo_reply_level = '1',
bo_comment_level = '1',
bo_html_level = '1',
bo_link_level = '1',
bo_count_modify = '1',
bo_count_delete = '1',
bo_upload_level = '1',
bo_download_level = '1',
bo_read_point = '-1',
bo_write_point = '5',
bo_comment_point = '1',
bo_download_point = '-20',
bo_use_category = '0',
bo_category_list = '',
bo_use_sideview = '0',
bo_use_file_content = '0',
bo_use_secret = '0',
bo_use_dhtml_editor = '0',
bo_use_rss_view = '0',
bo_use_good = '0',
bo_use_nogood = '0',
bo_use_name = '0',
bo_use_signature = '0',
bo_use_ip_view = '0',
bo_use_list_view = '0',
bo_use_list_content = '0',
bo_use_email = '0',
bo_table_width = '100',
bo_subject_len = '60',
bo_mobile_subject_len = '30',
bo_page_rows = '15',
bo_mobile_page_rows = '15',
bo_new = '24',
bo_hot = '100',
bo_image_width = '835',
bo_skin = '$bo_skin',
bo_mobile_skin = '$bo_skin',
bo_include_head = '_head.php',
bo_include_tail = '_tail.php',
bo_content_head = '',
bo_content_tail = '',
bo_mobile_content_head = '',
bo_mobile_content_tail = '',
bo_insert_content = '',
bo_gallery_cols = '4',
bo_gallery_width = '200',
bo_gallery_height = '150',
bo_mobile_gallery_width = '125',
bo_mobile_gallery_height= '100',
bo_upload_count = '2',
bo_upload_size = '1048576',
bo_reply_order = '1',
bo_use_search = '0',
bo_order = '0'
";
sql_query($sql, true, $dblink);
// 게시판 테이블 생성
$file = file("../adm/sql_write.sql");
$sql = implode($file, "\n");
$create_table = $table_prefix.'write_' . $tmp_bo_table[$i];
// sql_board.sql 파일의 테이블명을 변환
$source = array("/__TABLE_NAME__/", "/;/");
$target = array($create_table, "");
$sql = preg_replace($source, $target, $sql);
sql_query($sql, false, $dblink);
}
?>
<li>DB설정 완료</li>
+1 -1
View File
@@ -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 = '<img src="'.$img.'" alt="'.$thumb['alt'].'" width="'.$thumb_width.'" height="'.$thumb_height.'">';
?>
+1
View File
@@ -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++) {
@@ -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 = '<img src="'.$img.'" alt="'.$thumb['alt'].'" width="'.$thumb_width.'" height="'.$thumb_height.'">';
?>