From 90ee89b4f5625772fbd4f597944eecd63cb380c1 Mon Sep 17 00:00:00 2001 From: chicpro Date: Fri, 13 Sep 2013 16:23:29 +0900 Subject: [PATCH] =?UTF-8?q?shop=20=ED=85=8C=EC=9D=B4=EB=B8=94=EB=AA=85=20g?= =?UTF-8?q?5=5Fshop=20=EC=9C=BC=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/shop_admin/ajax.ca_id.php | 2 +- adm/shop_admin/ajax.it_id.php | 2 +- adm/shop_admin/bannerform.php | 2 +- adm/shop_admin/bannerformupdate.php | 8 +- adm/shop_admin/bannerlist.php | 4 +- adm/shop_admin/categoryform.php | 14 +- adm/shop_admin/categoryformupdate.php | 12 +- adm/shop_admin/categorylist.php | 10 +- adm/shop_admin/categorylistupdate.php | 2 +- adm/shop_admin/codedupcheck.php | 4 +- adm/shop_admin/configformupdate.php | 2 +- adm/shop_admin/contentform.php | 4 +- adm/shop_admin/contentformupdate.php | 8 +- adm/shop_admin/contentlist.php | 2 +- adm/shop_admin/couponform.php | 2 +- adm/shop_admin/couponformupdate.php | 12 +- adm/shop_admin/couponlist.php | 8 +- adm/shop_admin/couponlist_delete.php | 2 +- adm/shop_admin/coupontarget.php | 4 +- adm/shop_admin/deliverycodeform.php | 2 +- adm/shop_admin/deliverycodeformupdate.php | 8 +- adm/shop_admin/deliverycodelist.php | 2 +- adm/shop_admin/deliverylist.php | 6 +- adm/shop_admin/deliverylistupdate.php | 18 +- adm/shop_admin/faqform.php | 4 +- adm/shop_admin/faqformupdate.php | 6 +- adm/shop_admin/faqlist.php | 6 +- adm/shop_admin/faqmasterform.php | 2 +- adm/shop_admin/faqmasterformupdate.php | 10 +- adm/shop_admin/faqmasterlist.php | 4 +- adm/shop_admin/index.php | 6 +- adm/shop_admin/itemcopyupdate.php | 18 +- adm/shop_admin/itemdelete.inc.php | 14 +- adm/shop_admin/itemevent.php | 4 +- adm/shop_admin/itemeventform.php | 6 +- adm/shop_admin/itemeventformupdate.php | 12 +- adm/shop_admin/itemeventlist.php | 10 +- adm/shop_admin/itemeventlistupdate.php | 4 +- adm/shop_admin/itemeventsearch.php | 4 +- adm/shop_admin/itemeventwin.php | 6 +- adm/shop_admin/itemeventwindel.php | 2 +- adm/shop_admin/itemexcelupdate.php | 6 +- adm/shop_admin/itemform.php | 22 +- adm/shop_admin/itemformrelation.php | 4 +- adm/shop_admin/itemformupdate.php | 36 +- adm/shop_admin/iteminfo.php | 2 +- adm/shop_admin/itemlist.php | 8 +- adm/shop_admin/itemlistupdate.php | 2 +- adm/shop_admin/itemoption.php | 2 +- adm/shop_admin/itemqaform.php | 2 +- adm/shop_admin/itemqaformupdate.php | 6 +- adm/shop_admin/itemqalist.php | 6 +- adm/shop_admin/itemqalistupdate.php | 2 +- adm/shop_admin/itemsellrank.php | 4 +- adm/shop_admin/itemstocklist.php | 6 +- adm/shop_admin/itemstocklistupdate.php | 2 +- adm/shop_admin/itemsupply.php | 2 +- adm/shop_admin/itemtypelist.php | 4 +- adm/shop_admin/itemtypelistupdate.php | 2 +- adm/shop_admin/itemuseform.php | 4 +- adm/shop_admin/itemuseformupdate.php | 2 +- adm/shop_admin/itemuselist.php | 6 +- adm/shop_admin/itemuselistupdate.php | 4 +- adm/shop_admin/newwinform.php | 2 +- adm/shop_admin/newwinformupdate.php | 8 +- adm/shop_admin/newwinlist.php | 2 +- adm/shop_admin/optionstocklist.php | 6 +- adm/shop_admin/optionstocklistupdate.php | 2 +- adm/shop_admin/ordercartupdate.php | 36 +- adm/shop_admin/orderdelete.php | 4 +- adm/shop_admin/orderform.php | 28 +- adm/shop_admin/orderformupdate.php | 4 +- adm/shop_admin/orderlist.php | 4 +- adm/shop_admin/orderlist2.php | 6 +- adm/shop_admin/ordermail.inc.php | 8 +- adm/shop_admin/orderprintresult.php | 14 +- adm/shop_admin/orderreceiptupdate.php | 6 +- adm/shop_admin/orderstatuslist.php | 6 +- adm/shop_admin/personalpaycopy.php | 2 +- adm/shop_admin/personalpaycopyupdate.php | 6 +- adm/shop_admin/personalpayform.php | 4 +- adm/shop_admin/personalpayformupdate.php | 12 +- adm/shop_admin/personalpaylist.php | 2 +- adm/shop_admin/personalpaylistdelete.php | 2 +- adm/shop_admin/sale1date.php | 2 +- adm/shop_admin/sale1month.php | 2 +- adm/shop_admin/sale1today.php | 2 +- adm/shop_admin/sale1year.php | 2 +- adm/shop_admin/sendcostlist.php | 2 +- adm/shop_admin/sendcostupdate.php | 4 +- adm/shop_admin/wishlist.php | 4 +- extend/shop.extend.php | 2 +- extend/shop.extend2.php | 228 +++---- install/gnuboard4s.sql | 700 ---------------------- install/{shop.sql => gnuboard5shop.sql} | 140 ++--- install/install_config.php | 4 +- install/install_db.php | 70 +-- lib/common.lib.php | 9 + lib/shop.lib.php | 56 +- mobile/shop/cart.php | 4 +- mobile/shop/category.php | 2 +- mobile/shop/item.php | 22 +- mobile/shop/itemqa.php | 2 +- mobile/shop/itemqaform.php | 2 +- mobile/shop/itemqaformupdate.php | 16 +- mobile/shop/itemqalist.php | 2 +- mobile/shop/itemrecommend.php | 2 +- mobile/shop/itemuse.php | 2 +- mobile/shop/itemuseform.php | 2 +- mobile/shop/itemuseformupdate.php | 26 +- mobile/shop/itemuselist.php | 4 +- mobile/shop/largeimage.php | 2 +- mobile/shop/list.php | 2 +- mobile/shop/listcategory.inc.php | 4 +- mobile/shop/listcategory2.inc.php | 6 +- mobile/shop/listcategory3.inc.php | 2 +- mobile/shop/mypage.php | 6 +- mobile/shop/navigation1.inc.php | 2 +- mobile/shop/orderform.php | 14 +- mobile/shop/orderformupdate.php | 38 +- mobile/shop/orderinquiry.php | 6 +- mobile/shop/orderinquiry.sub.php | 2 +- mobile/shop/orderinquiryview.php | 8 +- mobile/shop/personalpay.php | 2 +- mobile/shop/personalpayform.php | 2 +- mobile/shop/personalpayformupdate.php | 6 +- mobile/shop/personalpayresult.php | 2 +- mobile/shop/search.php | 8 +- mobile/shop/wishlist.php | 4 +- shop/bannerhit.php | 2 +- shop/boxbanner.inc.php | 2 +- shop/boxcart.inc.php | 2 +- shop/boxcategory.inc.php | 4 +- shop/boxevent.inc.php | 2 +- shop/boxwish.inc.php | 2 +- shop/cart.php | 6 +- shop/cartoption.php | 6 +- shop/cartupdate.php | 22 +- shop/content.php | 2 +- shop/coupon.php | 6 +- shop/event.php | 2 +- shop/faq.php | 4 +- shop/item.php | 20 +- shop/itembuy.php | 6 +- shop/itemoption.php | 2 +- shop/itemqa.php | 2 +- shop/itemqaform.php | 2 +- shop/itemqaformupdate.php | 16 +- shop/itemqalist.php | 2 +- shop/itemrecommend.php | 2 +- shop/itemrecommendmail.php | 2 +- shop/itemuse.php | 2 +- shop/itemuseform.php | 2 +- shop/itemuseformupdate.php | 26 +- shop/itemuselist.php | 4 +- shop/kcp/pp_cli_hub.php | 8 +- shop/largeimage.php | 2 +- shop/list.php | 2 +- shop/listcategory.inc.php | 4 +- shop/listcategory2.inc.php | 6 +- shop/listcategory3.inc.php | 2 +- shop/mypage.php | 6 +- shop/navigation.inc.php | 2 +- shop/newwin.inc.php | 4 +- shop/orderaddress.php | 4 +- shop/ordercoupon.php | 2 +- shop/orderform.php | 14 +- shop/orderformupdate.php | 38 +- shop/orderinquiry.php | 6 +- shop/orderinquiry.sub.php | 2 +- shop/orderinquirycancel.php | 8 +- shop/orderinquiryview.php | 8 +- shop/orderitemcoupon.php | 6 +- shop/ordermail1.inc.php | 6 +- shop/ordermail2.inc.php | 6 +- shop/ordersendcost.php | 2 +- shop/ordersendcostcoupon.php | 2 +- shop/personalpay.php | 2 +- shop/personalpayform.php | 2 +- shop/personalpayformupdate.php | 6 +- shop/personalpayresult.php | 2 +- shop/price/about.php | 10 +- shop/price/about_new.php | 10 +- shop/price/auction.php | 10 +- shop/price/auction_new.php | 10 +- shop/price/auction_summary.php | 2 +- shop/price/bb.php | 8 +- shop/price/danawa.php | 6 +- shop/price/daum.php | 10 +- shop/price/enuri.php | 4 +- shop/price/enuri_list.php | 6 +- shop/price/mymargin.php | 6 +- shop/price/naver.php | 10 +- shop/price/naver_new.php | 10 +- shop/price/naver_new_summary.php | 2 +- shop/price/naver_summary.php | 2 +- shop/price2/about.php | 12 +- shop/price2/about_new.php | 12 +- shop/price2/auction.php | 12 +- shop/price2/auction_new.php | 12 +- shop/price2/auction_summary.php | 2 +- shop/price2/bb.php | 10 +- shop/price2/danawa.php | 8 +- shop/price2/daum.php | 12 +- shop/price2/enuri.php | 6 +- shop/price2/enuri_list.php | 6 +- shop/price2/mymargin.php | 8 +- shop/price2/naver.php | 12 +- shop/price2/naver_new.php | 12 +- shop/price2/naver_new_summary.php | 4 +- shop/price2/naver_summary.php | 4 +- shop/search.php | 8 +- shop/settle_kcp_common.php | 8 +- shop/taxsave_kcp.php | 2 +- shop/wishlist.php | 4 +- shop/wishupdate.php | 8 +- skin/shop/basic/item.info.skin.php | 2 +- 217 files changed, 933 insertions(+), 1624 deletions(-) delete mode 100644 install/gnuboard4s.sql rename install/{shop.sql => gnuboard5shop.sql} (88%) diff --git a/adm/shop_admin/ajax.ca_id.php b/adm/shop_admin/ajax.ca_id.php index 7c9fba059..3a392a011 100644 --- a/adm/shop_admin/ajax.ca_id.php +++ b/adm/shop_admin/ajax.ca_id.php @@ -6,7 +6,7 @@ if (preg_match("/[^0-9a-z]/i", $ca_id)) { die("{\"error\":\"분류코드는 영문자 숫자 만 입력 가능합니다.\"}"); } -$sql = " select ca_name from {$g5['shop_category_table']} where ca_id = '{$ca_id}' "; +$sql = " select ca_name from {$g5['g5_shop_category_table']} where ca_id = '{$ca_id}' "; $row = sql_fetch($sql); if ($row['ca_name']) { $ca_name = addslashes($row['ca_name']); diff --git a/adm/shop_admin/ajax.it_id.php b/adm/shop_admin/ajax.it_id.php index a1cc22ed7..39cbeea91 100644 --- a/adm/shop_admin/ajax.it_id.php +++ b/adm/shop_admin/ajax.it_id.php @@ -6,7 +6,7 @@ if (preg_match("/[^\w\-]/", $it_id)) { // \w : 0-9 A-Z a-z _ die("{\"error\":\"상품코드는 영문자 숫자 _ - 만 입력 가능합니다.\"}"); } -$sql = " select it_name from {$g5['shop_item_table']} where it_id = '{$it_id}' "; +$sql = " select it_name from {$g5['g5_shop_item_table']} where it_id = '{$it_id}' "; $row = sql_fetch($sql); if ($row['it_name']) { $it_name = addslashes($row['it_name']); diff --git a/adm/shop_admin/bannerform.php b/adm/shop_admin/bannerform.php index 45137a3e8..537627545 100644 --- a/adm/shop_admin/bannerform.php +++ b/adm/shop_admin/bannerform.php @@ -10,7 +10,7 @@ $g5['title'] = $html_title.'관리'; if ($w=="u") { $html_title .= ' 수정'; - $sql = " select * from {$g5['shop_banner_table']} where bn_id = '$bn_id' "; + $sql = " select * from {$g5['g5_shop_banner_table']} where bn_id = '$bn_id' "; $bn = sql_fetch($sql); } else diff --git a/adm/shop_admin/bannerformupdate.php b/adm/shop_admin/bannerformupdate.php index 8a3db6cd7..bc408a676 100644 --- a/adm/shop_admin/bannerformupdate.php +++ b/adm/shop_admin/bannerformupdate.php @@ -21,9 +21,9 @@ if ($w=="") { if (!$bn_bimg_name) alert('배너 이미지를 업로드 하세요.'); - sql_query(" alter table {$g5['shop_banner_table']} auto_increment=1 "); + sql_query(" alter table {$g5['g5_shop_banner_table']} auto_increment=1 "); - $sql = " insert into {$g5['shop_banner_table']} + $sql = " insert into {$g5['g5_shop_banner_table']} set bn_alt = '$bn_alt', bn_url = '$bn_url', bn_position = '$bn_position', @@ -40,7 +40,7 @@ if ($w=="") } else if ($w=="u") { - $sql = " update {$g5['shop_banner_table']} + $sql = " update {$g5['g5_shop_banner_table']} set bn_alt = '$bn_alt', bn_url = '$bn_url', bn_position = '$bn_position', @@ -56,7 +56,7 @@ else if ($w=="d") { @unlink(G5_DATA_PATH."/banner/$bn_id"); - $sql = " delete from {$g5['shop_banner_table']} where bn_id = $bn_id "; + $sql = " delete from {$g5['g5_shop_banner_table']} where bn_id = $bn_id "; $result = sql_query($sql); } diff --git a/adm/shop_admin/bannerlist.php b/adm/shop_admin/bannerlist.php index ed07bbb37..02a55e14a 100644 --- a/adm/shop_admin/bannerlist.php +++ b/adm/shop_admin/bannerlist.php @@ -7,7 +7,7 @@ auth_check($auth[$sub_menu], "r"); $g5['title'] = '배너관리'; include_once (G5_ADMIN_PATH.'/admin.head.php'); -$sql_common = " from {$g5['shop_banner_table']} "; +$sql_common = " from {$g5['g5_shop_banner_table']} "; // 테이블의 전체 레코드수만 얻음 $sql = " select count(*) as cnt " . $sql_common; @@ -46,7 +46,7 @@ $from_record = ($page - 1) * $rows; // 시작 열을 구함 '$ca_id' "; $row = sql_fetch($sql); @@ -110,7 +110,7 @@ else if ($w == "d") alert("이 분류에 속한 하위 분류가 있으므로 삭제 할 수 없습니다.\\n\\n하위분류를 우선 삭제하여 주십시오."); $str = $comma = ""; - $sql = " select it_id from {$g5['shop_item_table']} where ca_id = '$ca_id' "; + $sql = " select it_id from {$g5['g5_shop_item_table']} where ca_id = '$ca_id' "; $result = sql_query($sql); $i=0; while ($row = mysql_fetch_array($result)) @@ -129,7 +129,7 @@ else if ($w == "d") @unlink("{$g5['category_path']}/$ca_id"."_t"); // 분류 삭제 - $sql = " delete from {$g5['shop_category_table']} where ca_id = '$ca_id' "; + $sql = " delete from {$g5['g5_shop_category_table']} where ca_id = '$ca_id' "; sql_query($sql); } diff --git a/adm/shop_admin/categorylist.php b/adm/shop_admin/categorylist.php index acab3a5a5..c6528813e 100644 --- a/adm/shop_admin/categorylist.php +++ b/adm/shop_admin/categorylist.php @@ -18,7 +18,7 @@ if ($stx != "") { $page = 1; } -$sql_common = " from {$g5['shop_category_table']} "; +$sql_common = " from {$g5['g5_shop_category_table']} "; if ($is_admin != 'super') $sql_common .= " $where ca_mb_id = '{$member['mb_id']}' "; $sql_common .= $sql_search; @@ -135,7 +135,7 @@ if ($sfl || $stx) // 검색렬일 때만 처음 버튼을 보여줌 $class = 'class="cate_list_lbl"'; // 2단 이상 분류의 label 에 스타일 부여 - 지운아빠 2013-04-02 // 상위단계의 분류명 $p_ca_id = substr($row['ca_id'], 0, $level*2); - $sql = " select ca_name from {$g5['shop_category_table']} where ca_id = '$p_ca_id' "; + $sql = " select ca_name from {$g5['g5_shop_category_table']} where ca_id = '$p_ca_id' "; $temp = sql_fetch($sql); $p_ca_name = $temp['ca_name'].'의하위'; } else { @@ -153,7 +153,7 @@ if ($sfl || $stx) // 검색렬일 때만 처음 버튼을 보여줌 $s_del = ''.get_text($row['ca_name']).' 삭제 '; // 해당 분류에 속한 상품의 갯수 - $sql1 = " select COUNT(*) as cnt from {$g5['shop_item_table']} + $sql1 = " select COUNT(*) as cnt from {$g5['g5_shop_item_table']} where ca_id = '{$row['ca_id']}' or ca_id2 = '{$row['ca_id']}' or ca_id3 = '{$row['ca_id']}' "; @@ -207,7 +207,7 @@ if ($sfl || $stx) // 검색렬일 때만 처음 버튼을 보여줌 > - +