From 4d95a696cda19ee23b0f49ac49a6511eec6c7950 Mon Sep 17 00:00:00 2001 From: chicpro Date: Tue, 9 Apr 2013 15:34:05 +0900 Subject: [PATCH] =?UTF-8?q?=ED=85=8C=EC=9D=B4=EB=B8=94=20=EB=B3=80?= =?UTF-8?q?=EC=88=98=EB=AA=85=EC=97=90=EC=84=9C=20yc4=5F=EB=A5=BC=20shop?= =?UTF-8?q?=5F=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/bannerform.php | 2 +- adm/shop_admin/bannerformupdate.php | 8 +- adm/shop_admin/bannerlist.php | 4 +- adm/shop_admin/categoryform.php | 10 +- adm/shop_admin/categoryformupdate.php | 12 +-- adm/shop_admin/categorylist.php | 6 +- adm/shop_admin/categorylistupdate.php | 2 +- adm/shop_admin/codedupcheck.php | 4 +- adm/shop_admin/configform.php | 113 --------------------- adm/shop_admin/configformupdate.php | 2 +- adm/shop_admin/contentform.php | 6 +- adm/shop_admin/contentformupdate.php | 8 +- adm/shop_admin/contentlist.php | 2 +- adm/shop_admin/deliverycodeform.php | 2 +- adm/shop_admin/deliverycodeformupdate.php | 8 +- adm/shop_admin/deliverycodelist.php | 2 +- adm/shop_admin/deliverylist.php | 10 +- adm/shop_admin/deliverylistupdate.php | 16 +-- 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 | 12 +-- adm/shop_admin/invoicebundle.php | 2 +- adm/shop_admin/invoicebundleupdate.php | 6 +- adm/shop_admin/item_copy_update.php | 12 +-- adm/shop_admin/itemevent.php | 4 +- adm/shop_admin/itemeventform.php | 2 +- adm/shop_admin/itemeventformupdate.php | 6 +- adm/shop_admin/itemeventlist.php | 10 +- adm/shop_admin/itemeventlistupdate.php | 4 +- adm/shop_admin/itemeventwin.php | 6 +- adm/shop_admin/itemeventwindel.php | 2 +- adm/shop_admin/itemform.php | 46 ++++----- adm/shop_admin/itemformrelation.php | 8 +- adm/shop_admin/itemformupdate.php | 38 +++---- adm/shop_admin/iteminfo.php | 4 +- adm/shop_admin/iteminfoupdate.php | 4 +- adm/shop_admin/itemlist.php | 8 +- adm/shop_admin/itemlistupdate.php | 2 +- adm/shop_admin/itempsform.php | 4 +- adm/shop_admin/itempsformupdate.php | 6 +- adm/shop_admin/itempslist.php | 6 +- adm/shop_admin/itemqaform.php | 2 +- adm/shop_admin/itemqaformupdate.php | 6 +- adm/shop_admin/itemqalist.php | 6 +- adm/shop_admin/itemsellrank.php | 4 +- adm/shop_admin/itemstocklist.php | 6 +- adm/shop_admin/itemstocklistupdate.php | 2 +- adm/shop_admin/itemtypelist.php | 4 +- adm/shop_admin/itemtypelistupdate.php | 2 +- adm/shop_admin/newwinform.php | 2 +- adm/shop_admin/newwinformupdate.php | 8 +- adm/shop_admin/newwinlist.php | 2 +- adm/shop_admin/ordercardhistory.php | 6 +- adm/shop_admin/ordercartupdate.php | 12 +-- adm/shop_admin/orderdelete.php | 6 +- adm/shop_admin/orderform.php | 26 ++--- adm/shop_admin/orderformupdate.php | 2 +- adm/shop_admin/orderlist.php | 12 +-- adm/shop_admin/orderlist2.php | 12 +-- adm/shop_admin/ordermail.inc.php | 8 +- adm/shop_admin/orderprintresult.php | 14 +-- adm/shop_admin/orderreceiptupdate.php | 2 +- adm/shop_admin/ordersms.inc.php | 2 +- adm/shop_admin/orderstatuslist.php | 6 +- adm/shop_admin/sale1date.php | 4 +- adm/shop_admin/sale1month.php | 4 +- adm/shop_admin/sale1today.php | 4 +- adm/shop_admin/sale1year.php | 4 +- adm/shop_admin/wishlist.php | 4 +- extend/shop.extend.php | 79 ++++++--------- install/install_db.php | 116 +++++++++++++++++++++- lib/iteminfo.lib.php | 2 +- lib/shop.lib.php | 26 ++--- 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/boxtodayview.inc.php | 2 +- shop/boxwish.inc.php | 2 +- shop/cartsub.inc.php | 6 +- shop/cartupdate.php | 26 ++--- shop/content.php | 2 +- shop/event.php | 6 +- shop/faq.php | 4 +- shop/item.php | 22 ++-- shop/itemqa.inc.php | 2 +- shop/itemqaupdate.php | 16 +-- shop/itemrecommend.php | 2 +- shop/itemrecommendmail.php | 2 +- shop/itemuse.inc.php | 2 +- shop/itemuselist.php | 4 +- shop/itemuseupdate.php | 16 +-- shop/itemusewin.php | 2 +- shop/itemusewinupdate.php | 10 +- shop/largeimage.php | 2 +- shop/list.php | 4 +- shop/listcategory.inc.php | 8 +- shop/listcategory2.inc.php | 6 +- shop/listcategory3.inc.php | 2 +- shop/listtype.php | 6 +- shop/mail/itemrecommend.mail.php | 12 +-- shop/mail/ordermail.mail.php | 62 ++++++------ shop/mail/orderupdate1.mail.php | 44 ++++---- shop/mail/orderupdate2.mail.php | 46 ++++----- shop/mail/orderupdate3.mail.php | 36 +++---- shop/mypage.php | 4 +- shop/navigation1.inc.php | 2 +- shop/newwin.inc.php | 2 +- shop/newwinpop.php | 2 +- shop/orderform.php | 2 +- shop/orderformupdate.php | 12 +-- shop/orderinquiry.php | 6 +- shop/orderinquiry.sub.php | 4 +- shop/orderinquirycancel.php | 8 +- shop/orderinquiryview.php | 8 +- shop/ordermail1.inc.php | 2 +- shop/ordermail2.inc.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.old.php | 10 +- shop/price/danawa.php | 6 +- shop/price/daum.php | 10 +- shop/price/enuri.old.php | 18 ++-- 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/price/omi_ufo.php | 8 +- shop/price/shopbinder.php | 12 +-- shop/price/yavis.php | 6 +- shop/search.php | 10 +- shop/search2.php | 8 +- shop/search3.php | 10 +- shop/settle_kcp_common.php | 2 +- shop/taxsave_kcp.php | 2 +- shop/wishlist.php | 4 +- shop/wishupdate.php | 10 +- 149 files changed, 722 insertions(+), 740 deletions(-) diff --git a/adm/shop_admin/bannerform.php b/adm/shop_admin/bannerform.php index 0ff1e944e..d3862eee4 100644 --- a/adm/shop_admin/bannerform.php +++ b/adm/shop_admin/bannerform.php @@ -8,7 +8,7 @@ $html_title = '배너'; if ($w=="u") { $html_title .= ' 수정'; - $sql = " select * from {$g4['yc4_banner_table']} where bn_id = '$bn_id' "; + $sql = " select * from {$g4['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 5419c27a2..ff46428ac 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 {$g4['yc4_banner_table']} auto_increment=1 "); + sql_query(" alter table {$g4['shop_banner_table']} auto_increment=1 "); - $sql = " insert into {$g4['yc4_banner_table']} + $sql = " insert into {$g4['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 {$g4['yc4_banner_table']} + $sql = " update {$g4['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(G4_DATA_PATH."/banner/$bn_id"); - $sql = " delete from {$g4['yc4_banner_table']} where bn_id = $bn_id "; + $sql = " delete from {$g4['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 8b124da08..5296186f1 100644 --- a/adm/shop_admin/bannerlist.php +++ b/adm/shop_admin/bannerlist.php @@ -7,7 +7,7 @@ auth_check($auth[$sub_menu], "r"); $g4['title'] = '배너관리'; include_once (G4_ADMIN_PATH.'/admin.head.php'); -$sql_common = " from {$g4['yc4_banner_table']} "; +$sql_common = " from {$g4['shop_banner_table']} "; // 테이블의 전체 레코드수만 얻음 $sql = " select count(*) as cnt " . $sql_common; @@ -54,7 +54,7 @@ $from_record = ($page - 1) * $rows; // 시작 열을 구함 - + diff --git a/adm/shop_admin/categoryformupdate.php b/adm/shop_admin/categoryformupdate.php index 807438ca8..1b718431f 100644 --- a/adm/shop_admin/categoryformupdate.php +++ b/adm/shop_admin/categoryformupdate.php @@ -85,7 +85,7 @@ if ($w == "") // 소문자로 변환 $ca_id = strtolower($ca_id); - $sql = " insert {$g4['yc4_category_table']} + $sql = " insert {$g4['shop_category_table']} set ca_id = '$ca_id', ca_name = '$ca_name', $sql_common "; @@ -93,7 +93,7 @@ if ($w == "") } else if ($w == "u") { - $sql = " update {$g4['yc4_category_table']} + $sql = " update {$g4['shop_category_table']} set ca_name = '$ca_name', $sql_common where ca_id = '$ca_id' "; @@ -102,7 +102,7 @@ else if ($w == "u") // 하위분류를 똑같은 설정으로 반영 if ($sub_category) { $len = strlen($ca_id); - $sql = " update {$g4['yc4_category_table']} + $sql = " update {$g4['shop_category_table']} set $sql_common where SUBSTRING(ca_id,1,$len) = '$ca_id' "; if ($is_admin != 'super') @@ -115,7 +115,7 @@ else if ($w == "d") // 분류의 길이 $len = strlen($ca_id); - $sql = " select COUNT(*) as cnt from {$g4['yc4_category_table']} + $sql = " select COUNT(*) as cnt from {$g4['shop_category_table']} where SUBSTRING(ca_id,1,$len) = '$ca_id' and ca_id <> '$ca_id' "; $row = sql_fetch($sql); @@ -123,7 +123,7 @@ else if ($w == "d") alert("이 분류에 속한 하위 분류가 있으므로 삭제 할 수 없습니다.\\n\\n하위분류를 우선 삭제하여 주십시오."); $str = $comma = ""; - $sql = " select it_id from {$g4['yc4_item_table']} where ca_id = '$ca_id' "; + $sql = " select it_id from {$g4['shop_item_table']} where ca_id = '$ca_id' "; $result = sql_query($sql); $i=0; while ($row = mysql_fetch_array($result)) @@ -146,7 +146,7 @@ else if ($w == "d") @unlink("{$g4['category_path']}/$ca_id"."_t"); // 분류 삭제 - $sql = " delete from {$g4['yc4_category_table']} where ca_id = '$ca_id' "; + $sql = " delete from {$g4['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 ed0bb4f5e..7e7716010 100644 --- a/adm/shop_admin/categorylist.php +++ b/adm/shop_admin/categorylist.php @@ -18,7 +18,7 @@ if ($stx != "") { $page = 1; } -$sql_common = " from {$g4['yc4_category_table']} "; +$sql_common = " from {$g4['shop_category_table']} "; if ($is_admin != 'super') $sql_common .= " $where ca_mb_id = '{$member['mb_id']}' "; $sql_common .= $sql_search; @@ -111,7 +111,7 @@ $qstr = $qstr."&sca=".$sca."&page=".$page."&save_stx=".$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 {$g4['yc4_category_table']} where ca_id = '$p_ca_id' "; + $sql = " select ca_name from {$g4['shop_category_table']} where ca_id = '$p_ca_id' "; $temp = sql_fetch($sql); $p_ca_name = $temp['ca_name'].'의하위'; } else @@ -129,7 +129,7 @@ $qstr = $qstr."&sca=".$sca."&page=".$page."&save_stx=".$stx; $s_del = '삭제'; // 해당 분류에 속한 상품의 갯수 - $sql1 = " select COUNT(*) as cnt from {$g4['yc4_item_table']} + $sql1 = " select COUNT(*) as cnt from {$g4['shop_item_table']} where ca_id = '{$row['ca_id']}' or ca_id2 = '{$row['ca_id']}' or ca_id3 = '{$row['ca_id']}' "; diff --git a/adm/shop_admin/categorylistupdate.php b/adm/shop_admin/categorylistupdate.php index 7b846b39e..c973f6fb4 100644 --- a/adm/shop_admin/categorylistupdate.php +++ b/adm/shop_admin/categorylistupdate.php @@ -16,7 +16,7 @@ for ($i=0; $i /settle_kcp_common.php - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3자리 - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/adm/shop_admin/configformupdate.php b/adm/shop_admin/configformupdate.php index d408c202c..a73a02ab0 100644 --- a/adm/shop_admin/configformupdate.php +++ b/adm/shop_admin/configformupdate.php @@ -20,7 +20,7 @@ $de_kcp_mid = substr($_POST['de_kcp_mid'],0,3); // // 영카트 default // -$sql = " update {$g4['yc4_default_table']} +$sql = " update {$g4['shop_default_table']} set de_admin_company_owner = '$de_admin_company_owner', de_admin_company_name = '$de_admin_company_name', de_admin_company_saupja_no = '$de_admin_company_saupja_no', diff --git a/adm/shop_admin/contentform.php b/adm/shop_admin/contentform.php index 8642706ea..ea1f51c3c 100644 --- a/adm/shop_admin/contentform.php +++ b/adm/shop_admin/contentform.php @@ -6,7 +6,7 @@ include_once(G4_CKEDITOR_PATH.'/ckeditor.lib.php'); auth_check($auth[$sub_menu], "w"); // 상단, 하단 파일경로 필드 추가 -$sql = " ALTER TABLE `{$g4['yc4_content_table']}` ADD `co_include_head` VARCHAR( 255 ) NOT NULL , +$sql = " ALTER TABLE `{$g4['shop_content_table']}` ADD `co_include_head` VARCHAR( 255 ) NOT NULL , ADD `co_include_tail` VARCHAR( 255 ) NOT NULL "; sql_query($sql, false); @@ -17,7 +17,7 @@ if ($w == "u") $html_title .= " 수정"; $readonly = " readonly"; - $sql = " select * from {$g4['yc4_content_table']} where co_id = '$co_id' "; + $sql = " select * from {$g4['shop_content_table']} where co_id = '$co_id' "; $co = sql_fetch($sql); if (!$co['co_id']) alert('등록된 자료가 없습니다.'); @@ -75,7 +75,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php'); - + diff --git a/adm/shop_admin/contentformupdate.php b/adm/shop_admin/contentformupdate.php index 2df351634..70f366334 100644 --- a/adm/shop_admin/contentformupdate.php +++ b/adm/shop_admin/contentformupdate.php @@ -27,19 +27,19 @@ if ($w == "") //if(eregi("[^a-z0-9_]", $co_id)) alert("ID 는 영문자, 숫자, _ 만 가능합니다."); if(preg_match("/[^a-z0-9_]/i", $co_id)) alert("ID 는 영문자, 숫자, _ 만 가능합니다."); - $sql = " select co_id from {$g4['yc4_content_table']} where co_id = '$co_id' "; + $sql = " select co_id from {$g4['shop_content_table']} where co_id = '$co_id' "; $row = sql_fetch($sql); if ($row['co_id']) alert("이미 같은 ID로 등록된 내용이 있습니다."); - $sql = " insert {$g4['yc4_content_table']} + $sql = " insert {$g4['shop_content_table']} set co_id = '$co_id', $sql_common "; sql_query($sql); } else if ($w == "u") { - $sql = " update {$g4['yc4_content_table']} + $sql = " update {$g4['shop_content_table']} set $sql_common where co_id = '$co_id' "; sql_query($sql); @@ -49,7 +49,7 @@ else if ($w == "d") @unlink(G4_DATA_PATH."/content/{$co_id}_h"); @unlink(G4_DATA_PATH."/content/{$co_id}_t"); - $sql = " delete from {$g4['yc4_content_table']} where co_id = '$co_id' "; + $sql = " delete from {$g4['shop_content_table']} where co_id = '$co_id' "; sql_query($sql); } diff --git a/adm/shop_admin/contentlist.php b/adm/shop_admin/contentlist.php index f60c8b3da..be5ed9874 100644 --- a/adm/shop_admin/contentlist.php +++ b/adm/shop_admin/contentlist.php @@ -7,7 +7,7 @@ auth_check($auth[$sub_menu], "r"); $g4['title'] = '내용관리'; include_once (G4_ADMIN_PATH.'/admin.head.php'); -$sql_common = " from {$g4['yc4_content_table']} "; +$sql_common = " from {$g4['shop_content_table']} "; // 테이블의 전체 레코드수만 얻음 $sql = " select count(*) as cnt " . $sql_common; diff --git a/adm/shop_admin/deliverycodeform.php b/adm/shop_admin/deliverycodeform.php index ed181c74c..752fc3211 100644 --- a/adm/shop_admin/deliverycodeform.php +++ b/adm/shop_admin/deliverycodeform.php @@ -9,7 +9,7 @@ if ($w == "u") { $html_title .= ' 수정'; $readonly = ' readonly'; - $sql = " select * from {$g4['yc4_delivery_table']} where dl_id = '$dl_id' "; + $sql = " select * from {$g4['shop_delivery_table']} where dl_id = '$dl_id' "; $dl = sql_fetch($sql); if (!$dl['dl_id']) alert('등록된 자료가 없습니다.'); } diff --git a/adm/shop_admin/deliverycodeformupdate.php b/adm/shop_admin/deliverycodeformupdate.php index 607db4362..9d9eddec7 100644 --- a/adm/shop_admin/deliverycodeformupdate.php +++ b/adm/shop_admin/deliverycodeformupdate.php @@ -16,19 +16,19 @@ $sql_common .= "set dl_company = '$dl_company', dl_order = '$dl_order' "; if ($w == "") { - $sql = " alter table {$g4['yc4_delivery_table']} auto_increment=1 "; + $sql = " alter table {$g4['shop_delivery_table']} auto_increment=1 "; sql_query($sql); - $sql = " insert {$g4['yc4_delivery_table']} $sql_common "; + $sql = " insert {$g4['shop_delivery_table']} $sql_common "; sql_query($sql); $dl_id = mysql_insert_id(); } else if ($w == "u") { - $sql = " update {$g4['yc4_delivery_table']} $sql_common where dl_id = '$dl_id' "; + $sql = " update {$g4['shop_delivery_table']} $sql_common where dl_id = '$dl_id' "; sql_query($sql); } else if ($w == "d") { // Master 삭제 - $sql = " delete from {$g4['yc4_delivery_table']} where dl_id = '$dl_id' "; + $sql = " delete from {$g4['shop_delivery_table']} where dl_id = '$dl_id' "; sql_query($sql); } diff --git a/adm/shop_admin/deliverycodelist.php b/adm/shop_admin/deliverycodelist.php index e8fe951de..569ef329e 100644 --- a/adm/shop_admin/deliverycodelist.php +++ b/adm/shop_admin/deliverycodelist.php @@ -7,7 +7,7 @@ auth_check($auth[$sub_menu], "r"); $g4['title'] = '배송회사관리'; include_once (G4_ADMIN_PATH.'/admin.head.php'); -$sql_common = " from {$g4['yc4_delivery_table']} "; +$sql_common = " from {$g4['shop_delivery_table']} "; // 테이블의 전체 레코드수만 얻음 $sql = " select count(*) as cnt " . $sql_common; diff --git a/adm/shop_admin/deliverylist.php b/adm/shop_admin/deliverylist.php index 6a27f135b..23e9ded2e 100644 --- a/adm/shop_admin/deliverylist.php +++ b/adm/shop_admin/deliverylist.php @@ -7,11 +7,11 @@ auth_check($auth[$sub_menu], "r"); $g4['title'] = '배송일괄처리'; include_once (G4_ADMIN_PATH.'/admin.head.php'); -//sql_query(" update $g4[yc4_cart_table] set ct_status = '완료' where ct_status = '배송' "); +//sql_query(" update $g4[shop_cart_table] set ct_status = '완료' where ct_status = '배송' "); // 배송회사리스트 --------------------------------------------- $delivery_options = ""; -$sql = " select * from {$g4['yc4_delivery_table']} order by dl_order "; +$sql = " select * from {$g4['shop_delivery_table']} order by dl_order "; $result = sql_query($sql); for($i=0; $row=sql_fetch_array($result); $i++) { $delivery_options .= "