5.3 버전 내용 적용
This commit is contained in:
@ -37,11 +37,11 @@ include_once ('./install.inc.php');
|
||||
|
||||
//print_r($_POST); exit;
|
||||
|
||||
$mysql_host = safe_install_string_check($_POST['mysql_host']);
|
||||
$mysql_user = safe_install_string_check($_POST['mysql_user']);
|
||||
$mysql_pass = safe_install_string_check($_POST['mysql_pass']);
|
||||
$mysql_db = safe_install_string_check($_POST['mysql_db']);
|
||||
$table_prefix= safe_install_string_check($_POST['table_prefix']);
|
||||
$mysql_host = $_POST['mysql_host'];
|
||||
$mysql_user = $_POST['mysql_user'];
|
||||
$mysql_pass = $_POST['mysql_pass'];
|
||||
$mysql_db = $_POST['mysql_db'];
|
||||
$table_prefix= $_POST['table_prefix'];
|
||||
$admin_id = $_POST['admin_id'];
|
||||
$admin_pass = $_POST['admin_pass'];
|
||||
$admin_name = $_POST['admin_name'];
|
||||
@ -193,6 +193,9 @@ if($g5_install || !$result) {
|
||||
cf_member_icon_size = '5000',
|
||||
cf_member_icon_width = '22',
|
||||
cf_member_icon_height = '22',
|
||||
cf_member_img_size = '50000',
|
||||
cf_member_img_width = '60',
|
||||
cf_member_img_height = '60',
|
||||
cf_login_minutes = '10',
|
||||
cf_image_extension = 'gif|jpg|jpeg|png',
|
||||
cf_flash_extension = 'swf',
|
||||
@ -236,167 +239,24 @@ if($g5_install || !$result) {
|
||||
|
||||
// FAQ Master
|
||||
sql_query(" insert into `{$table_prefix}faq_master` set fm_id = '1', fm_subject = '자주하시는 질문' ", true, $dblink);
|
||||
}
|
||||
|
||||
if($g5_shop_install) {
|
||||
// 이미지 사이즈
|
||||
$simg_width = 230;
|
||||
$simg_height = 230;
|
||||
$mimg_width = 320;
|
||||
$mimg_height = 320;
|
||||
|
||||
// default 설정 (쇼핑몰 설정)
|
||||
$sql = " insert into `{$g5_shop_prefix}default`
|
||||
set de_admin_company_name = '회사명',
|
||||
de_admin_company_saupja_no = '123-45-67890',
|
||||
de_admin_company_owner = '대표자명',
|
||||
de_admin_company_tel = '02-123-4567',
|
||||
de_admin_company_fax = '02-123-4568',
|
||||
de_admin_tongsin_no = '제 OO구 - 123호',
|
||||
de_admin_buga_no = '12345호',
|
||||
de_admin_company_zip = '123-456',
|
||||
de_admin_company_addr = 'OO도 OO시 OO구 OO동 123-45',
|
||||
de_admin_info_name = '정보책임자명',
|
||||
de_admin_info_email = '정보책임자 E-mail',
|
||||
de_shop_skin = 'basic',
|
||||
de_shop_mobile_skin = 'basic',
|
||||
de_type1_list_use = '1',
|
||||
de_type1_list_skin = 'main.10.skin.php',
|
||||
de_type1_list_mod = '3',
|
||||
de_type1_list_row = '2',
|
||||
de_type1_img_width = '$simg_width',
|
||||
de_type1_img_height = '$simg_height',
|
||||
de_type2_list_use = '1',
|
||||
de_type2_list_skin = 'main.10.skin.php',
|
||||
de_type2_list_mod = '3',
|
||||
de_type2_list_row = '2',
|
||||
de_type2_img_width = '$simg_width',
|
||||
de_type2_img_height = '$simg_height',
|
||||
de_type3_list_use = '1',
|
||||
de_type3_list_skin = 'main.10.skin.php',
|
||||
de_type3_list_mod = '1',
|
||||
de_type3_list_row = '3',
|
||||
de_type3_img_width = '$simg_width',
|
||||
de_type3_img_height = '$simg_height',
|
||||
de_type4_list_use = '1',
|
||||
de_type4_list_skin = 'main.10.skin.php',
|
||||
de_type4_list_mod = '3',
|
||||
de_type4_list_row = '1',
|
||||
de_type4_img_width = '$simg_width',
|
||||
de_type4_img_height = '$simg_height',
|
||||
de_type5_list_use = '1',
|
||||
de_type5_list_skin = 'main.10.skin.php',
|
||||
de_type5_list_mod = '3',
|
||||
de_type5_list_row = '1',
|
||||
de_type5_img_width = '$simg_width',
|
||||
de_type5_img_height = '$simg_height',
|
||||
de_mobile_type1_list_use = '1',
|
||||
de_mobile_type1_list_skin = 'main.10.skin.php',
|
||||
de_mobile_type1_list_mod = '3',
|
||||
de_mobile_type1_list_row = '2',
|
||||
de_mobile_type1_img_width = '$simg_width',
|
||||
de_mobile_type1_img_height = '$simg_height',
|
||||
de_mobile_type2_list_use = '1',
|
||||
de_mobile_type2_list_skin = 'main.10.skin.php',
|
||||
de_mobile_type2_list_mod = '3',
|
||||
de_mobile_type2_list_row = '2',
|
||||
de_mobile_type2_img_width = '$simg_width',
|
||||
de_mobile_type2_img_height = '$simg_height',
|
||||
de_mobile_type3_list_use = '1',
|
||||
de_mobile_type3_list_skin = 'main.10.skin.php',
|
||||
de_mobile_type3_list_mod = '3',
|
||||
de_mobile_type3_list_row = '2',
|
||||
de_mobile_type3_img_width = '$simg_width',
|
||||
de_mobile_type3_img_height = '$simg_height',
|
||||
de_mobile_type4_list_use = '1',
|
||||
de_mobile_type4_list_skin = 'main.10.skin.php',
|
||||
de_mobile_type4_list_mod = '3',
|
||||
de_mobile_type4_list_row = '2',
|
||||
de_mobile_type4_img_width = '$simg_width',
|
||||
de_mobile_type4_img_height = '$simg_height',
|
||||
de_mobile_type5_list_use = '1',
|
||||
de_mobile_type5_list_skin = 'main.10.skin.php',
|
||||
de_mobile_type5_list_mod = '3',
|
||||
de_mobile_type5_list_row = '2',
|
||||
de_mobile_type5_img_width = '$simg_width',
|
||||
de_mobile_type5_img_height = '$simg_height',
|
||||
de_bank_use = '1',
|
||||
de_bank_account = 'OO은행 12345-67-89012 예금주명',
|
||||
de_vbank_use = '0',
|
||||
de_iche_use = '0',
|
||||
de_card_use = '0',
|
||||
de_settle_min_point = '5000',
|
||||
de_settle_max_point = '50000',
|
||||
de_settle_point_unit = '100',
|
||||
de_cart_keep_term = '15',
|
||||
de_card_point = '0',
|
||||
de_point_days = '7',
|
||||
de_pg_service = 'kcp',
|
||||
de_kcp_mid = '',
|
||||
de_send_cost_case = '차등',
|
||||
de_send_cost_limit = '20000;30000;40000',
|
||||
de_send_cost_list = '4000;3000;2000',
|
||||
de_hope_date_use = '0',
|
||||
de_hope_date_after = '3',
|
||||
de_baesong_content = '배송 안내 입력전입니다.',
|
||||
de_change_content = '교환/반품 안내 입력전입니다.',
|
||||
de_rel_list_use = '1',
|
||||
de_rel_list_skin = 'relation.10.skin.php',
|
||||
de_rel_list_mod = '3',
|
||||
de_rel_img_width = '$simg_width',
|
||||
de_rel_img_height = '$simg_height',
|
||||
de_mobile_rel_list_use = '1',
|
||||
de_mobile_rel_list_skin = 'relation.10.skin.php',
|
||||
de_mobile_rel_list_mod = '3',
|
||||
de_mobile_rel_img_width = '$simg_width',
|
||||
de_mobile_rel_img_height = '$simg_height',
|
||||
de_search_list_skin = 'list.10.skin.php',
|
||||
de_search_img_width = '$simg_width',
|
||||
de_search_img_height = '$simg_height',
|
||||
de_search_list_mod = '3',
|
||||
de_search_list_row = '5',
|
||||
de_mobile_search_list_skin = 'list.10.skin.php',
|
||||
de_mobile_search_img_width = '$simg_width',
|
||||
de_mobile_search_img_height = '$simg_height',
|
||||
de_mobile_search_list_mod = '3',
|
||||
de_mobile_search_list_row = '5',
|
||||
de_listtype_list_skin = 'list.10.skin.php',
|
||||
de_listtype_img_width = '$simg_width',
|
||||
de_listtype_img_height = '$simg_height',
|
||||
de_listtype_list_mod = '3',
|
||||
de_listtype_list_row = '5',
|
||||
de_mobile_listtype_list_skin = 'list.10.skin.php',
|
||||
de_mobile_listtype_img_width = '$simg_width',
|
||||
de_mobile_listtype_img_height = '$simg_height',
|
||||
de_mobile_listtype_list_mod = '3',
|
||||
de_mobile_listtype_list_row = '5',
|
||||
de_simg_width = '$simg_width',
|
||||
de_simg_height = '$simg_height',
|
||||
de_mimg_width = '$mimg_width',
|
||||
de_mimg_height = '$mimg_height',
|
||||
de_item_use_use = '1',
|
||||
de_level_sell = '1',
|
||||
de_code_dup_use = '1',
|
||||
de_card_test = '1',
|
||||
de_sms_cont1 = '{이름}님의 회원가입을 축하드립니다.\nID:{회원아이디}\n{회사명}',
|
||||
de_sms_cont2 = '{이름}님 주문해주셔서 고맙습니다.\n{주문번호}\n{주문금액}원\n{회사명}',
|
||||
de_sms_cont3 = '{이름}님께서 주문하셨습니다.\n{주문번호}\n{주문금액}원\n{회사명}',
|
||||
de_sms_cont4 = '{이름}님 입금 감사합니다.\n{입금액}원\n주문번호:\n{주문번호}\n{회사명}',
|
||||
de_sms_cont5 = '{이름}님 배송합니다.\n택배:{택배회사}\n운송장번호:\n{운송장번호}\n{회사명}'
|
||||
";
|
||||
sql_query($sql, 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 = 'shop', gr_subject = '쇼핑몰' ", true, $dblink);
|
||||
sql_query(" insert into `{$table_prefix}group` set gr_id = '$tmp_gr_id', gr_subject = '$tmp_gr_subject' ", true, $dblink);
|
||||
|
||||
// 게시판 생성
|
||||
$tmp_bo_table = array ("qa", "free", "notice");
|
||||
$tmp_bo_subject = array ("질문답변", "자유게시판", "공지사항");
|
||||
$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 = 'shop',
|
||||
gr_id = '$tmp_gr_id',
|
||||
bo_subject = '$tmp_bo_subject[$i]',
|
||||
bo_device = 'both',
|
||||
bo_admin = '',
|
||||
@ -437,9 +297,9 @@ if($g5_shop_install) {
|
||||
bo_mobile_page_rows = '15',
|
||||
bo_new = '24',
|
||||
bo_hot = '100',
|
||||
bo_image_width = '600',
|
||||
bo_skin = 'basic',
|
||||
bo_mobile_skin = 'basic',
|
||||
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 = '',
|
||||
@ -448,8 +308,8 @@ if($g5_shop_install) {
|
||||
bo_mobile_content_tail = '',
|
||||
bo_insert_content = '',
|
||||
bo_gallery_cols = '4',
|
||||
bo_gallery_width = '174',
|
||||
bo_gallery_height = '124',
|
||||
bo_gallery_width = '202',
|
||||
bo_gallery_height = '150',
|
||||
bo_mobile_gallery_width = '125',
|
||||
bo_mobile_gallery_height= '100',
|
||||
bo_upload_count = '2',
|
||||
@ -470,9 +330,162 @@ if($g5_shop_install) {
|
||||
$source = array("/__TABLE_NAME__/", "/;/");
|
||||
$target = array($create_table, "");
|
||||
$sql = preg_replace($source, $target, $sql);
|
||||
sql_query($sql, true, $dblink);
|
||||
sql_query($sql, false, $dblink);
|
||||
}
|
||||
}
|
||||
|
||||
if($g5_shop_install) {
|
||||
// 이미지 사이즈
|
||||
$ssimg_width = 130;
|
||||
$ssimg_height = 130;
|
||||
$simg_width = 230;
|
||||
$simg_height = 230;
|
||||
$mimg_width = 400;
|
||||
$mimg_height = 400;
|
||||
$mmimg_width = 400;
|
||||
$mmimg_height = 200;
|
||||
|
||||
// default 설정 (쇼핑몰 설정)
|
||||
$sql = " insert into `{$g5_shop_prefix}default`
|
||||
set de_admin_company_name = '회사명',
|
||||
de_admin_company_saupja_no = '123-45-67890',
|
||||
de_admin_company_owner = '대표자명',
|
||||
de_admin_company_tel = '02-123-4567',
|
||||
de_admin_company_fax = '02-123-4568',
|
||||
de_admin_tongsin_no = '제 OO구 - 123호',
|
||||
de_admin_buga_no = '12345호',
|
||||
de_admin_company_zip = '123-456',
|
||||
de_admin_company_addr = 'OO도 OO시 OO구 OO동 123-45',
|
||||
de_admin_info_name = '정보책임자명',
|
||||
de_admin_info_email = '정보책임자 E-mail',
|
||||
de_shop_skin = 'basic',
|
||||
de_shop_mobile_skin = 'basic',
|
||||
de_type1_list_use = '1',
|
||||
de_type1_list_skin = 'main.10.skin.php',
|
||||
de_type1_list_mod = '4',
|
||||
de_type1_list_row = '2',
|
||||
de_type1_img_width = '$simg_width',
|
||||
de_type1_img_height = '$simg_height',
|
||||
de_type2_list_use = '1',
|
||||
de_type2_list_skin = 'main.10.skin.php',
|
||||
de_type2_list_mod = '4',
|
||||
de_type2_list_row = '2',
|
||||
de_type2_img_width = '$simg_width',
|
||||
de_type2_img_height = '$simg_height',
|
||||
de_type3_list_use = '1',
|
||||
de_type3_list_skin = 'main.40.skin.php',
|
||||
de_type3_list_mod = '4',
|
||||
de_type3_list_row = '2',
|
||||
de_type3_img_width = '$simg_width',
|
||||
de_type3_img_height = '$simg_height',
|
||||
de_type4_list_use = '1',
|
||||
de_type4_list_skin = 'main.50.skin.php',
|
||||
de_type4_list_mod = '1',
|
||||
de_type4_list_row = '5',
|
||||
de_type4_img_width = '$simg_width',
|
||||
de_type4_img_height = '$simg_height',
|
||||
de_type5_list_use = '1',
|
||||
de_type5_list_skin = 'main.10.skin.php',
|
||||
de_type5_list_mod = '4',
|
||||
de_type5_list_row = '2',
|
||||
de_type5_img_width = '$simg_width',
|
||||
de_type5_img_height = '$simg_height',
|
||||
de_mobile_type1_list_use = '1',
|
||||
de_mobile_type1_list_skin = 'main.10.skin.php',
|
||||
de_mobile_type1_list_mod = '2',
|
||||
de_mobile_type1_list_row = '2',
|
||||
de_mobile_type1_img_width = '$simg_width',
|
||||
de_mobile_type1_img_height = '$simg_height',
|
||||
de_mobile_type2_list_use = '1',
|
||||
de_mobile_type2_list_skin = 'main.20.skin.php',
|
||||
de_mobile_type2_list_mod = '3',
|
||||
de_mobile_type2_list_row = '2',
|
||||
de_mobile_type2_img_width = '$ssimg_width',
|
||||
de_mobile_type2_img_height = '$ssimg_height',
|
||||
de_mobile_type3_list_use = '1',
|
||||
de_mobile_type3_list_skin = 'main.30.skin.php',
|
||||
de_mobile_type3_list_mod = '1',
|
||||
de_mobile_type3_list_row = '8',
|
||||
de_mobile_type3_img_width = '$mmimg_width',
|
||||
de_mobile_type3_img_height = '$mmimg_height',
|
||||
de_mobile_type4_list_use = '1',
|
||||
de_mobile_type4_list_skin = 'main.10.skin.php',
|
||||
de_mobile_type4_list_mod = '22',
|
||||
de_mobile_type4_list_row = '2',
|
||||
de_mobile_type4_img_width = '$simg_width',
|
||||
de_mobile_type4_img_height = '$simg_height',
|
||||
de_mobile_type5_list_use = '1',
|
||||
de_mobile_type5_list_skin = 'main.10.skin.php',
|
||||
de_mobile_type5_list_mod = '2',
|
||||
de_mobile_type5_list_row = '2',
|
||||
de_mobile_type5_img_width = '$simg_width',
|
||||
de_mobile_type5_img_height = '$simg_height',
|
||||
de_bank_use = '1',
|
||||
de_bank_account = 'OO은행 12345-67-89012 예금주명',
|
||||
de_vbank_use = '0',
|
||||
de_iche_use = '0',
|
||||
de_card_use = '0',
|
||||
de_settle_min_point = '5000',
|
||||
de_settle_max_point = '50000',
|
||||
de_settle_point_unit = '100',
|
||||
de_cart_keep_term = '15',
|
||||
de_card_point = '0',
|
||||
de_point_days = '7',
|
||||
de_pg_service = 'kcp',
|
||||
de_kcp_mid = '',
|
||||
de_send_cost_case = '차등',
|
||||
de_send_cost_limit = '20000;30000;40000',
|
||||
de_send_cost_list = '4000;3000;2000',
|
||||
de_hope_date_use = '0',
|
||||
de_hope_date_after = '3',
|
||||
de_baesong_content = '배송 안내 입력전입니다.',
|
||||
de_change_content = '교환/반품 안내 입력전입니다.',
|
||||
de_rel_list_use = '1',
|
||||
de_rel_list_skin = 'relation.10.skin.php',
|
||||
de_rel_list_mod = '5',
|
||||
de_rel_img_width = '$simg_width',
|
||||
de_rel_img_height = '$simg_height',
|
||||
de_mobile_rel_list_use = '1',
|
||||
de_mobile_rel_list_skin = 'relation.10.skin.php',
|
||||
de_mobile_rel_list_mod = '3',
|
||||
de_mobile_rel_img_width = '$simg_width',
|
||||
de_mobile_rel_img_height = '$simg_height',
|
||||
de_search_list_skin = 'list.10.skin.php',
|
||||
de_search_img_width = '$simg_width',
|
||||
de_search_img_height = '$simg_height',
|
||||
de_search_list_mod = '4',
|
||||
de_search_list_row = '5',
|
||||
de_mobile_search_list_skin = 'list.10.skin.php',
|
||||
de_mobile_search_img_width = '$simg_width',
|
||||
de_mobile_search_img_height = '$simg_height',
|
||||
de_mobile_search_list_mod = '3',
|
||||
de_mobile_search_list_row = '5',
|
||||
de_listtype_list_skin = 'list.10.skin.php',
|
||||
de_listtype_img_width = '$simg_width',
|
||||
de_listtype_img_height = '$simg_height',
|
||||
de_listtype_list_mod = '4',
|
||||
de_listtype_list_row = '5',
|
||||
de_mobile_listtype_list_skin = 'list.10.skin.php',
|
||||
de_mobile_listtype_img_width = '$simg_width',
|
||||
de_mobile_listtype_img_height = '$simg_height',
|
||||
de_mobile_listtype_list_mod = '3',
|
||||
de_mobile_listtype_list_row = '5',
|
||||
de_simg_width = '$simg_width',
|
||||
de_simg_height = '$simg_height',
|
||||
de_mimg_width = '$mimg_width',
|
||||
de_mimg_height = '$mimg_height',
|
||||
de_item_use_use = '1',
|
||||
de_level_sell = '1',
|
||||
de_code_dup_use = '1',
|
||||
de_card_test = '1',
|
||||
de_sms_cont1 = '{이름}님의 회원가입을 축하드립니다.\nID:{회원아이디}\n{회사명}',
|
||||
de_sms_cont2 = '{이름}님 주문해주셔서 고맙습니다.\n{주문번호}\n{주문금액}원\n{회사명}',
|
||||
de_sms_cont3 = '{이름}님께서 주문하셨습니다.\n{주문번호}\n{주문금액}원\n{회사명}',
|
||||
de_sms_cont4 = '{이름}님 입금 감사합니다.\n{입금액}원\n주문번호:\n{주문번호}\n{회사명}',
|
||||
de_sms_cont5 = '{이름}님 배송합니다.\n택배:{택배회사}\n운송장번호:\n{운송장번호}\n{회사명}'
|
||||
";
|
||||
sql_query($sql, true, $dblink);
|
||||
}
|
||||
?>
|
||||
|
||||
<li>DB설정 완료</li>
|
||||
@ -487,6 +500,7 @@ $dir_arr = array (
|
||||
$data_path.'/file',
|
||||
$data_path.'/log',
|
||||
$data_path.'/member',
|
||||
$data_path.'/member_image',
|
||||
$data_path.'/session',
|
||||
$data_path.'/content',
|
||||
$data_path.'/faq',
|
||||
@ -560,6 +574,7 @@ fwrite($f, "\$g5['faq_table'] = G5_TABLE_PREFIX.'faq'; // 자주하시는 질문
|
||||
fwrite($f, "\$g5['faq_master_table'] = G5_TABLE_PREFIX.'faq_master'; // 자주하시는 질문 마스터 테이블\n");
|
||||
fwrite($f, "\$g5['new_win_table'] = G5_TABLE_PREFIX.'new_win'; // 새창 테이블\n");
|
||||
fwrite($f, "\$g5['menu_table'] = G5_TABLE_PREFIX.'menu'; // 메뉴관리 테이블\n");
|
||||
fwrite($f, "\$g5['social_profile_table'] = G5_TABLE_PREFIX.'member_social_profiles'; // 소셜 로그인 테이블\n");
|
||||
|
||||
if($g5_shop_install) {
|
||||
fwrite($f, "\n");
|
||||
|
||||
Reference in New Issue
Block a user