diff --git a/.gitignore b/.gitignore index 9ea483ecd..bcecf93c7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ !.gitignore -.htaccess +/.htaccess data/ test/ sirgle/ diff --git a/_common.php b/_common.php index 0da77b7c1..8d16d0880 100644 --- a/_common.php +++ b/_common.php @@ -1,7 +1,7 @@ 쇼핑몰 설치 후 이용해 주십시오.

'); diff --git a/_head.php b/_head.php index 79e267fb7..a0558a12a 100644 --- a/_head.php +++ b/_head.php @@ -1,5 +1,8 @@ \ No newline at end of file diff --git a/_tail.php b/_tail.php index ae47c3b51..d5ba5c009 100644 --- a/_tail.php +++ b/_tail.php @@ -1,5 +1,8 @@ \ No newline at end of file diff --git a/adm/shop_admin/configform.php b/adm/shop_admin/configform.php index 657365d0f..106b78094 100644 --- a/adm/shop_admin/configform.php +++ b/adm/shop_admin/configform.php @@ -43,6 +43,18 @@ if(!isset($default['de_root_index_use'])) { sql_query(" ALTER TABLE `{$g5['g5_shop_default_table']}` ADD `de_root_index_use` tinyint(4) NOT NULL DEFAULT '0' AFTER `de_admin_info_email` ", true); } + +// 무이자 할부 사용설정 필드 추가 +if(!isset($default['de_card_noint_use'])) { + sql_query(" ALTER TABLE `{$g5['g5_shop_default_table']}` + ADD `de_card_noint_use` tinyint(4) NOT NULL DEFAULT '0' AFTER `de_card_use` ", true); +} + +// 레이아웃 선택 설정 필드추가 +if(!isset($default['de_shop_layout_use'])) { + sql_query(" ALTER TABLE `{$g5['g5_shop_default_table']}` + ADD `de_shop_layout_use` tinyint(4) NOT NULL DEFAULT '0' AFTER `de_root_index_use` ", true); +} ?>
@@ -473,6 +485,16 @@ if(!isset($default['de_root_index_use'])) { + + + + 사용으로 설정하시면 KCP 가맹점 관리자 페이지에서 설정하신 무이자할부 설정이 적용됩니다.
사용안함으로 설정하시면 KCP 무이자 이벤트 카드를 제외한 모든 카드의 무이자 설정이 적용되지 않습니다.", 50); ?> + + + @@ -631,16 +653,7 @@ if(!isset($default['de_root_index_use'])) { @@ -721,6 +734,16 @@ if(!isset($default['de_root_index_use'])) { + + + + + + + 관련상품출력 diff --git a/adm/shop_admin/configformupdate.php b/adm/shop_admin/configformupdate.php index c0cc2ef09..e91235647 100644 --- a/adm/shop_admin/configformupdate.php +++ b/adm/shop_admin/configformupdate.php @@ -34,6 +34,7 @@ $sql = " update {$g5['g5_shop_default_table']} de_admin_info_name = '$de_admin_info_name', de_admin_info_email = '$de_admin_info_email', de_root_index_use = '$de_root_index_use', + de_shop_layout_use = '$de_shop_layout_use', de_shop_skin = '$de_shop_skin', de_shop_mobile_skin = '$de_shop_mobile_skin', de_type1_list_use = '$de_type1_list_use', @@ -109,6 +110,7 @@ $sql = " update {$g5['g5_shop_default_table']} de_bank_account = '$de_bank_account', de_card_test = '$de_card_test', de_card_use = '$de_card_use', + de_card_noint_use = '$de_card_noint_use', de_card_point = '$de_card_point', de_settle_min_point = '$de_settle_min_point', de_settle_max_point = '$de_settle_max_point', diff --git a/adm/shop_admin/orderlist.php b/adm/shop_admin/orderlist.php index a2edc1b7a..9878a9ec0 100644 --- a/adm/shop_admin/orderlist.php +++ b/adm/shop_admin/orderlist.php @@ -384,9 +384,14 @@ if(!sql_query(" select mb_id from {$g5['g5_shop_order_delete_table']} limit 1 ", - + + ]" value="" class="frm_input" size="10"> */ + ?> - + - diff --git a/adm/shop_admin/ordermail.inc.php b/adm/shop_admin/ordermail.inc.php index e631fd865..2dad63e5c 100644 --- a/adm/shop_admin/ordermail.inc.php +++ b/adm/shop_admin/ordermail.inc.php @@ -22,10 +22,10 @@ if ($od_send_mail) where od_id = '{$od['od_id']}' order by ct_id "; $result = sql_query($sql); - for ($i=0; $ct=mysql_fetch_array($result); $i++) { - $cart_list[$i]['it_id'] = $ct['it_id']; - $cart_list[$i]['it_name'] = $ct['it_name']; - $cart_list[$i]['it_opt'] = $ct['ct_option']; + for ($j=0; $ct=mysql_fetch_array($result); $j++) { + $cart_list[$j]['it_id'] = $ct['it_id']; + $cart_list[$j]['it_name'] = $ct['it_name']; + $cart_list[$j]['it_opt'] = $ct['ct_option']; $ct_status = $ct['ct_status']; if ($ct_status == "준비") { @@ -34,8 +34,8 @@ if ($od_send_mail) $ct_status = "배송중"; } - $cart_list[$i]['ct_status'] = $ct_status; - $cart_list[$i]['ct_qty'] = $ct['ct_qty']; + $cart_list[$j]['ct_status'] = $ct_status; + $cart_list[$j]['ct_qty'] = $ct['ct_qty']; } diff --git a/bbs/_common.php b/bbs/_common.php index b556cc9d3..c53246a99 100644 --- a/bbs/_common.php +++ b/bbs/_common.php @@ -1,3 +1,10 @@ 쇼핑몰 설치 후 이용해 주십시오.

'); + + define('_SHOP_', true); +} ?> \ No newline at end of file diff --git a/bbs/qawrite_update.php b/bbs/qawrite_update.php index 396080891..c6fde25d5 100644 --- a/bbs/qawrite_update.php +++ b/bbs/qawrite_update.php @@ -33,6 +33,9 @@ if (!empty($msg)) { alert($msg); } +if($qa_hp) + $qa_hp = preg_replace('/[^0-9\-]/', '', strip_tags($qa_hp)); + // 090710 if (substr_count($qa_content, '&#') > 50) { alert('내용에 올바르지 않은 코드가 다수 포함되어 있습니다.'); diff --git a/extend/shop.extend.php b/extend/shop.extend.php index 53f8a69d7..9a0759018 100644 --- a/extend/shop.extend.php +++ b/extend/shop.extend.php @@ -41,10 +41,6 @@ define('G5_DELIVERY_COMPANY', .'(KG옐로우캡택배^http://www.yellowcap.co.kr/custom/inquiry_result.asp?invoice_no=^1588-0123)' .'(KGB택배^http://www.kgbls.co.kr/sub5/trace.asp?f_slipno=^1577-4577)' ); - -define('G5_SHOP_SEARCH_SKIN', 'list.10.skin.php'); // 상품검색스킨 -define('G5_SHOP_SEARCH_MOD', 4); // 상품검색 1라인에 몇개 -define('G5_SHOP_SEARCH_ROW', 5); // 상품검색 라인수 //------------------------------------------------------------------------------ // 쇼핑몰 상수 모음 끝 //------------------------------------------------------------------------------ @@ -82,7 +78,7 @@ define('G5_OD_STATUS_FINISH' , '배송완료'); '배송완료' : 배송이 완료된 상태에서만 포인트적립이 가능합니다. '취소' : 입금확인중이나 결제완료후 취소가 가능합니다. '반품' : 배송완료 후에만 반품처리가 가능합니다. -'품절' : +'품절' : # 13.10.04 diff --git a/install/gnuboard5.sql b/install/gnuboard5.sql index dbfcb56a5..5b1177987 100644 --- a/install/gnuboard5.sql +++ b/install/gnuboard5.sql @@ -507,7 +507,8 @@ CREATE TABLE IF NOT EXISTS `g5_memo` ( `me_send_datetime` datetime NOT NULL default '0000-00-00 00:00:00', `me_read_datetime` datetime NOT NULL default '0000-00-00 00:00:00', `me_memo` text NOT NULL, - PRIMARY KEY (`me_id`) + PRIMARY KEY (`me_id`), + KEY `me_recv_mb_id` (`me_recv_mb_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- -------------------------------------------------------- diff --git a/install/gnuboard5shop.sql b/install/gnuboard5shop.sql index 8e136507a..eb2ca00ea 100644 --- a/install/gnuboard5shop.sql +++ b/install/gnuboard5shop.sql @@ -194,6 +194,7 @@ CREATE TABLE IF NOT EXISTS `g5_shop_default` ( `de_admin_info_name` varchar(255) NOT NULL DEFAULT '', `de_admin_info_email` varchar(255) NOT NULL DEFAULT '', `de_root_index_use` tinyint(4) NOT NULL DEFAULT '0', + `de_shop_layout_use` tinyint(4) NOT NULL DEFAULT '0', `de_shop_skin` varchar(255) NOT NULL DEFAULT '', `de_shop_mobile_skin` varchar(255) NOT NULL DEFAULT '', `de_type1_list_use` tinyint(4) NOT NULL DEFAULT '0', @@ -269,6 +270,7 @@ CREATE TABLE IF NOT EXISTS `g5_shop_default` ( `de_bank_account` text NOT NULL, `de_card_test` int(11) NOT NULL DEFAULT '0', `de_card_use` int(11) NOT NULL DEFAULT '0', + `de_card_noint_use` tinyint(4) NOT NULL DEFAULT '0', `de_card_point` int(11) NOT NULL DEFAULT '0', `de_settle_min_point` int(11) NOT NULL DEFAULT '0', `de_settle_max_point` int(11) NOT NULL DEFAULT '0', diff --git a/lib/common.lib.php b/lib/common.lib.php index 5505fedc9..6e4360f02 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -1531,7 +1531,7 @@ function get_table_define($table, $crlf="\n") $schema_create .= implode($columns, ', ') . ')'; } // end while - $schema_create .= $crlf . ') DEFAULT CHARSET=utf8'; + $schema_create .= $crlf . ') ENGINE=MyISAM DEFAULT CHARSET=utf8'; return $schema_create; } // end of the 'PMA_getTableDef()' function diff --git a/lib/shop.lib.php b/lib/shop.lib.php index c090de176..187f743f9 100644 --- a/lib/shop.lib.php +++ b/lib/shop.lib.php @@ -1092,7 +1092,10 @@ function print_item_options($it_id, $cart_id) for($i=0; $row=sql_fetch_array($result); $i++) { if($i == 0) $str .= '