From 513ba881083ef151ca73593817ecd5998f32f802 Mon Sep 17 00:00:00 2001 From: gnuboard Date: Thu, 7 Feb 2013 11:24:50 +0900 Subject: [PATCH 1/6] =?UTF-8?q?=5FPATH,=20=5FURL=201=EB=8B=A8=EA=B3=84=20?= =?UTF-8?q?=EB=94=94=EB=A0=89=ED=86=A0=EB=A6=AC=EA=B9=8C=EC=A7=80=EB=A7=8C?= =?UTF-8?q?=20=EC=84=A0=EC=96=B8=ED=95=98=EA=B3=A0=20=EC=A0=95=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 +- bbs/ckeditor/upload.php | 4 ++-- bbs/gcaptcha/gcaptcha.lib.php | 8 ++++---- config.php | 29 +---------------------------- lib/latest.lib.php | 2 +- 5 files changed, 9 insertions(+), 36 deletions(-) diff --git a/.gitignore b/.gitignore index 9294dfdb5..2e1973cf7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ data -config.user.php +config.php test.php diff --git a/bbs/ckeditor/upload.php b/bbs/ckeditor/upload.php index 6d8780857..091246f60 100644 --- a/bbs/ckeditor/upload.php +++ b/bbs/ckeditor/upload.php @@ -3,8 +3,8 @@ include_once("../../common.php"); $ym = date('ym', G4_SERVER_TIME); -$data_dir = G4_EDITOR_PATH.'/'.$ym; -$data_url = G4_EDITOR_URL.'/'.$ym; +$data_dir = G4_DATA_PATH.'/editor/'.$ym; +$data_url = G4_DATA_URL.'/editor/'.$ym; @mkdir($data_dir, 0707); @chmod($data_dir, 0707); diff --git a/bbs/gcaptcha/gcaptcha.lib.php b/bbs/gcaptcha/gcaptcha.lib.php index 1f2ca7534..5b78ea892 100644 --- a/bbs/gcaptcha/gcaptcha.lib.php +++ b/bbs/gcaptcha/gcaptcha.lib.php @@ -122,7 +122,7 @@ class gcaptcha $this->captcha_filename = $this->get_captcha_filename(); - imagepng($im, G4_CACHE_PATH.'/'.$this->captcha_filename.'.png', 0, NULL); + imagepng($im, G4_DATA_PATH.'/cache/'.$this->captcha_filename.'.png', 0, NULL); imagedestroy($im); $this->make_wav($this->captcha_filename.'.wav'); @@ -144,7 +144,7 @@ class gcaptcha $wavs[] = $file; } - $wav_filepath = G4_CACHE_PATH.'/'.$captcha_filename; + $wav_filepath = G4_DATA_PATH.'/cache/'.$captcha_filename; $fp = fopen($wav_filepath, 'w+'); fwrite($fp, join_wavs($wavs)); fclose($fp); @@ -172,8 +172,8 @@ function captcha_html($class="captcha") $obj = new gcaptcha(); $obj->run(); - $png_file_url = G4_CACHE_URL.'/'.$obj->captcha_filename.'.png'; - $wav_file_url = G4_CACHE_URL.'/'.$obj->captcha_filename.'.wav'; + $png_file_url = G4_DATA_URL.'/cache/'.$obj->captcha_filename.'.png'; + $wav_file_url = G4_DATA_URL.'/cache/'.$obj->captcha_filename.'.wav'; $html .= PHP_EOL.''; $html .= PHP_EOL.''; diff --git a/config.php b/config.php index 283ab6613..ab2af5da5 100644 --- a/config.php +++ b/config.php @@ -26,7 +26,7 @@ if (PHP_VERSION >= '5.3.0') { 입력예) https://www.domain.com:443/gnuboard4s */ define('G4_DOMAIN', 'http://tmp.sir.co.kr/g4s'); -define('G4_HTTPS_DOMAIN', 'http://https-gnuboard4s-tmp.sir.co.kr/g4s'); // http://https-gnuboard4s-tmp.sir.co.kr +define('G4_HTTPS_DOMAIN', 'http://https-gnuboard4s-tmp.sir.co.kr/g4s'); /* www.sir.co.kr 과 sir.co.kr 도메인은 서로 다른 도메인으로 인식합니다. 쿠키를 공유하려면 .sir.co.kr 과 같이 입력하세요. @@ -45,9 +45,6 @@ define('G4_LIB_DIR', 'lib'); define('G4_SKIN_DIR', 'skin'); define('G4_GCAPTCHA_DIR', 'gcaptcha'); define('G4_CKEDITOR_DIR', 'ckeditor'); -define('G4_EDITOR_DIR', 'editor'); -define('G4_CACHE_DIR', 'cache'); -define('G4_FILE_DIR', 'file'); // URL 은 브라우저상에서의 경로 (도메인으로 부터의) if (G4_DOMAIN) { @@ -64,9 +61,6 @@ define('G4_JS_URL', G4_URL.'/'.G4_JS_DIR); define('G4_SKIN_URL', G4_URL.'/'.G4_SKIN_DIR); define('G4_GCAPTCHA_URL', G4_BBS_URL.'/'.G4_GCAPTCHA_DIR); define('G4_CKEDITOR_URL', G4_BBS_URL.'/'.G4_CKEDITOR_DIR); // CKEDITOR 의 라이브러리 경로 -define('G4_EDITOR_URL', G4_DATA_URL.'/'.G4_EDITOR_DIR); // CKEDITOR 에서 업로드한 파일이 저장되는 경로 -define('G4_CACHE_URL', G4_DATA_URL.'/'.G4_CACHE_DIR); -define('G4_FILE_URL', G4_DATA_URL.'/'.G4_FILE_DIR); // PATH 는 서버상에서의 절대경로 define('G4_PATH', $g4_path['path']); @@ -78,9 +72,6 @@ define('G4_LIB_PATH', G4_PATH.'/'.G4_LIB_DIR); define('G4_SKIN_PATH', G4_PATH.'/'.G4_SKIN_DIR); define('G4_GCAPTCHA_PATH', G4_BBS_PATH.'/'.G4_GCAPTCHA_DIR); define('G4_CKEDITOR_PATH', G4_BBS_PATH.'/'.G4_CKEDITOR_DIR); -define('G4_CACHE_PATH', G4_DATA_PATH.'/'.G4_CACHE_DIR); -define('G4_EDITOR_PATH', G4_DATA_PATH.'/'.G4_EDITOR_DIR); -define('G4_FILE_PATH', G4_DATA_PATH.'/'.G4_FILE_DIR); //============================================================================== @@ -104,25 +95,7 @@ define('G4_SPECIAL', 64); // 특수문자 // 모바일 인지 결정 $_SERVER['HTTP_USER_AGENT'] define('G4_MOBILE_AGENT', 'phone|samsung|lgtel|mobile|skt|nokia|blackberry|android|sony'); - -// 자주 사용하는 값 -// 서버의 시간과 실제 사용하는 시간이 틀린 경우 수정하세요. -// 하루는 86400 초입니다. 1시간은 3600초 -// 6시간이 빠른 경우 time() + (3600 * 6); -// 6시간이 느린 경우 time() - (3600 * 6); -/* -$g4['server_time'] = time(); -$g4['time_ymd'] = date("Y-m-d", $g4['server_time']); -$g4['time_his'] = date("H:i:s", $g4['server_time']); -$g4['time_ymdhis'] = date("Y-m-d H:i:s", $g4['server_time']); -*/ - -// -// 기타 -// - // 게시판에서 링크의 기본갯수를 말합니다. // 필드를 추가하면 이 숫자를 필드수에 맞게 늘려주십시오. -//$g4['link_count'] = 2; define('G4_LINK_COUNT', 2); ?> diff --git a/lib/latest.lib.php b/lib/latest.lib.php index 328a12fb1..48a702892 100644 --- a/lib/latest.lib.php +++ b/lib/latest.lib.php @@ -10,7 +10,7 @@ function latest($skin_dir='', $bo_table, $rows=10, $subject_len=40) $latest_skin_path = G4_SKIN_PATH.'/latest/'.$skin_dir; $latest_skin_url = G4_SKIN_URL.'/latest/'.$skin_dir; - $cache_file = G4_CACHE_PATH."/latest-{$bo_table}-{$skin_dir}-{$rows}-{$subject_len}.php"; + $cache_file = G4_DATA_PATH."/cache/latest-{$bo_table}-{$skin_dir}-{$rows}-{$subject_len}.php"; //if (!file_exists($cache_file)) { if (1) { $list = array(); From d7b9aab47a82a73a339f26a31c65f1cf2ca8c303 Mon Sep 17 00:00:00 2001 From: gnuboard Date: Thu, 7 Feb 2013 11:34:38 +0900 Subject: [PATCH 2/6] =?UTF-8?q?config.php=20=EC=9B=90=EA=B2=A9=20=ED=8C=8C?= =?UTF-8?q?=EC=9D=BC=EC=9D=84=20=EC=82=AD=EC=A0=9C=ED=95=98=EA=B8=B0=20?= =?UTF-8?q?=EC=9C=84=ED=95=98=EC=97=AC=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.php | 101 ----------------------------------------------------- 1 file changed, 101 deletions(-) delete mode 100644 config.php diff --git a/config.php b/config.php deleted file mode 100644 index ab2af5da5..000000000 --- a/config.php +++ /dev/null @@ -1,101 +0,0 @@ -= '5.3.0') { - //if (function_exists("date_default_timezone_set")) date_default_timezone_set("Asia/Seoul"); - date_default_timezone_set("Asia/Seoul"); -} - - -//============================================================================== -// 경로 상수 -//------------------------------------------------------------------------------ - -/* -보안서버 도메인 -회원가입, 글쓰기에 사용되는 https 로 시작되는 주소를 말합니다. -포트가 있다면 도메인 뒤에 :443 과 같이 입력하세요. -보안서버주소가 없다면 공란으로 두시면 되며 보안서버주소 뒤에 / 는 붙이지 않습니다. -입력예) https://www.domain.com:443/gnuboard4s -*/ -define('G4_DOMAIN', 'http://tmp.sir.co.kr/g4s'); -define('G4_HTTPS_DOMAIN', 'http://https-gnuboard4s-tmp.sir.co.kr/g4s'); - -/* -www.sir.co.kr 과 sir.co.kr 도메인은 서로 다른 도메인으로 인식합니다. 쿠키를 공유하려면 .sir.co.kr 과 같이 입력하세요. -이곳에 입력이 없다면 www 붙은 도메인과 그렇지 않은 도메인은 쿠키를 공유하지 않으므로 로그인이 풀릴 수 있습니다. -*/ -define('G4_COOKIE_DOMAIN', '.sir.co.kr'); - -define('G4_ADMIN_DIR', 'adm'); -define('G4_BBS_DIR', 'bbs'); -define('G4_CSS_DIR', 'css'); -define('G4_DATA_DIR', 'data'); -define('G4_EXTEND_DIR', 'extend'); -define('G4_IMG_DIR', 'img'); -define('G4_JS_DIR', 'js'); -define('G4_LIB_DIR', 'lib'); -define('G4_SKIN_DIR', 'skin'); -define('G4_GCAPTCHA_DIR', 'gcaptcha'); -define('G4_CKEDITOR_DIR', 'ckeditor'); - -// URL 은 브라우저상에서의 경로 (도메인으로 부터의) -if (G4_DOMAIN) { - define('G4_URL', G4_DOMAIN); -} else { - define('G4_URL', $g4_path['url']); -} -define('G4_ADMIN_URL', G4_URL.'/'.G4_ADMIN_DIR); -define('G4_BBS_URL', G4_URL.'/'.G4_BBS_DIR); -define('G4_CSS_URL', G4_URL.'/'.G4_CSS_DIR); -define('G4_DATA_URL', G4_URL.'/'.G4_DATA_DIR); -define('G4_IMG_URL', G4_URL.'/'.G4_IMG_DIR); -define('G4_JS_URL', G4_URL.'/'.G4_JS_DIR); -define('G4_SKIN_URL', G4_URL.'/'.G4_SKIN_DIR); -define('G4_GCAPTCHA_URL', G4_BBS_URL.'/'.G4_GCAPTCHA_DIR); -define('G4_CKEDITOR_URL', G4_BBS_URL.'/'.G4_CKEDITOR_DIR); // CKEDITOR 의 라이브러리 경로 - -// PATH 는 서버상에서의 절대경로 -define('G4_PATH', $g4_path['path']); -define('G4_ADMIN_PATH', G4_PATH.'/'.G4_ADMIN_DIR); -define('G4_BBS_PATH', G4_PATH.'/'.G4_BBS_DIR); -define('G4_DATA_PATH', G4_PATH.'/'.G4_DATA_DIR); -define('G4_EXTEND_PATH', G4_PATH.'/'.G4_EXTEND_DIR); -define('G4_LIB_PATH', G4_PATH.'/'.G4_LIB_DIR); -define('G4_SKIN_PATH', G4_PATH.'/'.G4_SKIN_DIR); -define('G4_GCAPTCHA_PATH', G4_BBS_PATH.'/'.G4_GCAPTCHA_DIR); -define('G4_CKEDITOR_PATH', G4_BBS_PATH.'/'.G4_CKEDITOR_DIR); -//============================================================================== - - -// 시간 상수 -define('G4_SERVER_TIME', time()); -define('G4_TIME_YMDHIS', date("Y-m-d H:i:s", G4_SERVER_TIME)); -define('G4_TIME_YMD', substr(G4_TIME_YMDHIS, 0, 10)); -define('G4_TIME_HIS', substr(G4_TIME_YMDHIS, 11, 8)); - - -// 입력값 검사 상수 (숫자를 변경하시면 안됩니다.) -define('G4_ALPHAUPPER', 1); // 영대문자 -define('G4_ALPHALOWER', 2); // 영소문자 -define('G4_ALPHABETIC', 4); // 영대,소문자 -define('G4_NUMERIC', 8); // 숫자 -define('G4_HANGUL', 16); // 한글 -define('G4_SPACE', 32); // 공백 -define('G4_SPECIAL', 64); // 특수문자 - - -// 모바일 인지 결정 $_SERVER['HTTP_USER_AGENT'] -define('G4_MOBILE_AGENT', 'phone|samsung|lgtel|mobile|skt|nokia|blackberry|android|sony'); - -// 게시판에서 링크의 기본갯수를 말합니다. -// 필드를 추가하면 이 숫자를 필드수에 맞게 늘려주십시오. -define('G4_LINK_COUNT', 2); -?> From f7855b165c6889d9e5ee1c0369d97a6b268bd023 Mon Sep 17 00:00:00 2001 From: gnuboard Date: Thu, 7 Feb 2013 16:56:29 +0900 Subject: [PATCH 3/6] =?UTF-8?q?=EA=B2=BD=EB=A1=9C=20=EB=B0=8F=20=EC=A0=84?= =?UTF-8?q?=EC=B2=B4=ED=85=8C=EC=9D=B4=EB=B8=94=EB=AA=85=20=EB=B3=80?= =?UTF-8?q?=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 | 16 ++-- adm/shop_admin/categorylist.php | 14 ++-- adm/shop_admin/categorylistupdate.php | 2 +- adm/shop_admin/categoryorderload.ajax.php | 4 +- adm/shop_admin/categoryorderlowcode.ajax.php | 2 +- adm/shop_admin/categoryorderupdate.ajax.php | 4 +- 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/coupon_category.php | 2 +- adm/shop_admin/coupon_item.php | 2 +- adm/shop_admin/coupondelete.php | 2 +- adm/shop_admin/couponform.php | 2 +- adm/shop_admin/couponformupdate.php | 24 +++--- adm/shop_admin/couponlist.php | 6 +- 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 | 32 ++++---- adm/shop_admin/item_info_check.php | 6 +- adm/shop_admin/item_option_check.php | 12 +-- adm/shop_admin/item_option_stock.php | 4 +- 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 | 26 +++--- adm/shop_admin/itemformrelation.php | 6 +- adm/shop_admin/itemformupdate.php | 54 ++++++------ 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/optiondata.php | 2 +- adm/shop_admin/optiondelete.php | 2 +- adm/shop_admin/optionform.php | 2 +- adm/shop_admin/optionformupdate.php | 10 +-- adm/shop_admin/ordercardhistory.php | 6 +- adm/shop_admin/ordercartupdate.php | 12 +-- adm/shop_admin/orderdelete.php | 6 +- adm/shop_admin/orderform.php | 20 ++--- 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/sendcostdelete.php | 2 +- adm/shop_admin/sendcostlist.php | 2 +- adm/shop_admin/sendcostupdate.php | 2 +- adm/shop_admin/supplementdata.php | 2 +- adm/shop_admin/supplementdelete.php | 2 +- adm/shop_admin/supplementform.php | 4 +- adm/shop_admin/supplementformupdate.php | 10 +-- adm/shop_admin/wishlist.php | 4 +- common.php | 10 ++- extend/shop.extend.php | 80 +++++++++--------- lib/common.lib.php | 52 +++++++++++- lib/iteminfo.lib.php | 2 +- lib/latest.lib.php | 3 +- lib/shop.lib.php | 86 +++++--------------- shop/_common.php | 2 +- 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/cartcoupon.php | 16 ++-- shop/cartoption.php | 6 +- shop/cartoptionupdate.php | 12 +-- shop/cartsub.inc.php | 18 ++-- shop/cartupdate.php | 34 ++++---- shop/cat1.ajax.php | 4 +- shop/category.ajax.php | 4 +- shop/category.php | 2 +- shop/content.php | 2 +- shop/event.php | 6 +- shop/faq.php | 4 +- shop/item.php | 26 +++--- shop/itemoptiondata.php | 6 +- shop/itemoptioninfo.php | 2 +- shop/itemqa.inc.php | 2 +- shop/itemqaupdate.php | 16 ++-- shop/itemrecommend.php | 2 +- shop/itemrecommendmail.php | 2 +- shop/itemsupplementinfo.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/list.skin.13.php | 2 +- shop/list.skin.22.php | 2 +- shop/listcategory.inc.php | 8 +- shop/listcategory2.inc.php | 6 +- shop/listcategory3.inc.php | 2 +- shop/listtype.php | 6 +- shop/maintype12.inc.php | 2 +- shop/mypage.php | 4 +- shop/navigation1.inc.php | 2 +- shop/newwin.inc.php | 2 +- shop/newwinpop.php | 2 +- shop/orderconfirm.php | 4 +- shop/orderform.php | 10 +-- shop/orderformupdate.php | 58 ++++++------- shop/orderinquiry.php | 6 +- shop/orderinquiry.sub.php | 4 +- shop/orderinquirycancel.php | 8 +- shop/orderinquiryview.php | 4 +- shop/ordermail1.inc.php | 2 +- shop/ordermail2.inc.php | 2 +- shop/ordersendcostcheck.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 | 6 +- shop/price/danawa.php | 6 +- shop/price/daum.php | 10 +-- shop/price/enuri.old.php | 4 +- 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/settleresult.php | 8 +- shop/taxsave_kcp.php | 2 +- shop/wishlist.php | 4 +- shop/wishupdate.php | 10 +-- 184 files changed, 711 insertions(+), 708 deletions(-) diff --git a/adm/shop_admin/bannerform.php b/adm/shop_admin/bannerform.php index 8dc3592e3..291bdbb2c 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 f444c713e..081270f48 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[path]/data/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 14fce8f92..34ce1b61c 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; @@ -42,7 +42,7 @@ $from_record = ($page - 1) * $rows; // 시작 열을 구함 '$ca_id' "; $row = sql_fetch($sql); @@ -133,7 +133,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)) @@ -156,7 +156,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 e149fbeec..3f446c9d7 100644 --- a/adm/shop_admin/categorylist.php +++ b/adm/shop_admin/categorylist.php @@ -10,24 +10,24 @@ if ($ca_id && ($move == 'up' || $move == 'down')) { $level = $length / 2; // 클릭한 분류의 분류아이디와 출력순서 - $sql = " select ca_id, ca_sort from $g4[yc4_category_table] where ca_id = '$ca_id' "; + $sql = " select ca_id, ca_sort from $g4[shop_category_table] where ca_id = '$ca_id' "; $org = sql_fetch($sql); // 옮겨갈 분류의 분류아이디와 출력순서 if ($move == 'up') { - $sql = " select ca_id, ca_sort from $g4[yc4_category_table] where ca_id like '$parent_ca_id%' and length(ca_id) = $length and ca_sort < '$org[ca_sort]' order by ca_sort desc limit 1 "; + $sql = " select ca_id, ca_sort from $g4[shop_category_table] where ca_id like '$parent_ca_id%' and length(ca_id) = $length and ca_sort < '$org[ca_sort]' order by ca_sort desc limit 1 "; $dst = sql_fetch($sql); } else { - $sql = " select ca_id, ca_sort from $g4[yc4_category_table] where ca_id like '$parent_ca_id%' and length(ca_id) = $length and ca_sort > '$org[ca_sort]' order by ca_sort asc limit 1 "; + $sql = " select ca_id, ca_sort from $g4[shop_category_table] where ca_id like '$parent_ca_id%' and length(ca_id) = $length and ca_sort > '$org[ca_sort]' order by ca_sort asc limit 1 "; $dst = sql_fetch($sql); } // 옮겨갈 분류가 있다면 if ($dst) { - $sql = " update $g4[yc4_category_table] set ca_sort = concat('$org[ca_sort]', mid(ca_sort,$level*4+1, 20)) where ca_id like '$dst[ca_id]%' "; + $sql = " update $g4[shop_category_table] set ca_sort = concat('$org[ca_sort]', mid(ca_sort,$level*4+1, 20)) where ca_id like '$dst[ca_id]%' "; sql_query($sql); - $sql = " update $g4[yc4_category_table] set ca_sort = concat('$dst[ca_sort]', mid(ca_sort,$level*4+1, 20)) where ca_id like '$org[ca_id]%' "; + $sql = " update $g4[shop_category_table] set ca_sort = concat('$dst[ca_sort]', mid(ca_sort,$level*4+1, 20)) where ca_id like '$org[ca_id]%' "; sql_query($sql); } } @@ -47,7 +47,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; @@ -148,7 +148,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++) // 해당 분류에 속한 상품의 갯수 - $sql1 = " select COUNT(*) as cnt from $g4[yc4_item_table] where ca_id = '$row[ca_id]' or ca_id2 = '$row[ca_id]' or ca_id3 = '$row[ca_id]' "; + $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]' "; $row1 = sql_fetch($sql1); $list = $i%2; diff --git a/adm/shop_admin/categorylistupdate.php b/adm/shop_admin/categorylistupdate.php index d57f51630..5c2a5f5da 100644 --- a/adm/shop_admin/categorylistupdate.php +++ b/adm/shop_admin/categorylistupdate.php @@ -7,7 +7,7 @@ check_demo(); auth_check($auth[$sub_menu], "w"); for ($i=0; $i 10) die('{"error":"마지막 레벨은 하위레벨이 없습니다."}'); -$sql = " select ca_id, ca_name from {$g4['yc4_category_table']} where ca_id like '$ca_id%' and length(ca_id) = $len "; +$sql = " select ca_id, ca_name from {$g4['shop_category_table']} where ca_id like '$ca_id%' and length(ca_id) = $len "; $result = sql_query($sql); while ($row = sql_fetch_array($result)) { $id = $row['ca_id']; diff --git a/adm/shop_admin/categoryorderupdate.ajax.php b/adm/shop_admin/categoryorderupdate.ajax.php index 9a43ee7cd..b03d8d3d0 100644 --- a/adm/shop_admin/categoryorderupdate.ajax.php +++ b/adm/shop_admin/categoryorderupdate.ajax.php @@ -15,9 +15,9 @@ $pos = strlen($ca_id) * 2 - 3; $piece_order = make_order($order); if ($pos == 1) { - $sql = " update {$g4['yc4_category_table']} set ca_order = concat(left('$piece_order',4),mid(ca_order,$pos+4,20-($pos+4))) where ca_id like '$ca_id%' "; + $sql = " update {$g4['shop_category_table']} set ca_order = concat(left('$piece_order',4),mid(ca_order,$pos+4,20-($pos+4))) where ca_id like '$ca_id%' "; } else { - $sql = " update {$g4['yc4_category_table']} set ca_order = concat(mid(ca_order,1,$pos-1),'$piece_order',mid(ca_order,$pos+4,20-($pos+4-1))) where ca_id like '$ca_id%' "; + $sql = " update {$g4['shop_category_table']} set ca_order = concat(mid(ca_order,1,$pos-1),'$piece_order',mid(ca_order,$pos+4,20-($pos+4-1))) where ca_id like '$ca_id%' "; } sql_query($sql, true); ?> \ No newline at end of file diff --git a/adm/shop_admin/codedupcheck.php b/adm/shop_admin/codedupcheck.php index f7e7b7042..27e551ae0 100644 --- a/adm/shop_admin/codedupcheck.php +++ b/adm/shop_admin/codedupcheck.php @@ -4,14 +4,14 @@ include_once("./_common.php"); $name = ""; if ($it_id) { - $sql = " select it_name from {$g4['yc4_item_table']} where it_id = '$it_id' "; + $sql = " select it_name from {$g4['shop_item_table']} where it_id = '$it_id' "; $row = sql_fetch($sql); $code = $it_id; $name = $row['it_name']; } else if ($ca_id) { - $sql = " select ca_name from {$g4['yc4_category_table']} where ca_id = '$ca_id' "; + $sql = " select ca_name from {$g4['shop_category_table']} where ca_id = '$ca_id' "; $row = sql_fetch($sql); $code = $ca_id; $name = $row['ca_name']; diff --git a/adm/shop_admin/configformupdate.php b/adm/shop_admin/configformupdate.php index f35c4a73c..d9cdbd7a4 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 c354e6b9b..e95a83a1f 100644 --- a/adm/shop_admin/contentform.php +++ b/adm/shop_admin/contentform.php @@ -6,7 +6,7 @@ include_once("./_common.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("등록된 자료가 없습니다."); diff --git a/adm/shop_admin/contentformupdate.php b/adm/shop_admin/contentformupdate.php index 6d06d5139..41caca3dd 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[path]/data/content/{$co_id}_h"); @unlink("$g4[path]/data/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 70d1b02b5..d525c9587 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/coupon_category.php b/adm/shop_admin/coupon_category.php index d8c180640..810c0d377 100644 --- a/adm/shop_admin/coupon_category.php +++ b/adm/shop_admin/coupon_category.php @@ -3,7 +3,7 @@ include_once('./_common.php'); $stx = trim($stx); if($stx) { - $sql_common = " from {$g4['yc4_category_table']} "; + $sql_common = " from {$g4['shop_category_table']} "; $sql_search = " where ca_use = '1' and ca_nocoupon = '0' and ca_name like '%$stx%' "; $sql_order = " order by ca_id asc "; diff --git a/adm/shop_admin/coupon_item.php b/adm/shop_admin/coupon_item.php index 151cff73a..d00511e4d 100644 --- a/adm/shop_admin/coupon_item.php +++ b/adm/shop_admin/coupon_item.php @@ -3,7 +3,7 @@ include_once('./_common.php'); $stx = trim($stx); if($stx) { - $sql_common = " from {$g4['yc4_item_table']} "; + $sql_common = " from {$g4['shop_item_table']} "; $sql_search = " where it_use = '1' and it_nocoupon = '0' and it_name like '%$stx%' "; $sql_order = " order by it_id asc "; diff --git a/adm/shop_admin/coupondelete.php b/adm/shop_admin/coupondelete.php index e466ca299..4a9ef277f 100644 --- a/adm/shop_admin/coupondelete.php +++ b/adm/shop_admin/coupondelete.php @@ -14,7 +14,7 @@ if(!$count) { for($i=0; $i<$count; $i++) { $cp_no = $_POST['list_chk'][$i]; - $sql = " delete from {$g4['yc4_coupon_table']} where cp_no = '$cp_no' "; + $sql = " delete from {$g4['shop_coupon_table']} where cp_no = '$cp_no' "; @sql_query($sql); } diff --git a/adm/shop_admin/couponform.php b/adm/shop_admin/couponform.php index f62a327e0..83eeba039 100644 --- a/adm/shop_admin/couponform.php +++ b/adm/shop_admin/couponform.php @@ -9,7 +9,7 @@ $html_title = "쿠폰"; if($w == 'u') { $html_title .= "수정"; - $sql = " select * from {$g4['yc4_coupon_table']} where cp_no = '$cp_no' "; + $sql = " select * from {$g4['shop_coupon_table']} where cp_no = '$cp_no' "; $write = sql_fetch($sql); if(!$write['cp_id']) { diff --git a/adm/shop_admin/couponformupdate.php b/adm/shop_admin/couponformupdate.php index 9e20222a1..568a66c7e 100644 --- a/adm/shop_admin/couponformupdate.php +++ b/adm/shop_admin/couponformupdate.php @@ -160,7 +160,7 @@ if($w == '') { do { $cp_id = coupon_generator(); - $sql = " insert into {$g4['yc4_coupon_table']} + $sql = " insert into {$g4['shop_coupon_table']} set cp_id = '$cp_id', cp_subject = '$cp_subject', cp_type = '$cp_type', @@ -208,7 +208,7 @@ if($w == '') { do { $cp_id = coupon_generator(); - $sql = " insert into {$g4['yc4_coupon_table']} + $sql = " insert into {$g4['shop_coupon_table']} set cp_id = '$cp_id', cp_subject = '$cp_subject', cp_type = '$cp_type', @@ -245,7 +245,7 @@ if($w == '') { for($i=0; $i<$ca_id_count; $i++) { // 카테고리체크 if($ca_id != '전체카테고리') { - $sql = " select ca_id from {$g4['yc4_category_table']} + $sql = " select ca_id from {$g4['shop_category_table']} where ca_id = '{$arr_ca_id[$i]}' and ca_use = '1' and ca_nocoupon = '0' "; $ca = sql_fetch($sql); if(!$ca['ca_id']) { @@ -268,7 +268,7 @@ if($w == '') { do { $cp_id = coupon_generator(); - $sql = " insert into {$g4['yc4_coupon_table']} + $sql = " insert into {$g4['shop_coupon_table']} set cp_id = '$cp_id', cp_subject = '$cp_subject', cp_type = '$cp_type', @@ -306,7 +306,7 @@ if($w == '') { for($i=0; $i<$it_id_count; $i++) { // 상품체크 if($it_id != '') { - $sql = " select it_id from {$g4['yc4_item_table']} + $sql = " select it_id from {$g4['shop_item_table']} where it_id = '{$arr_it_id[$i]}' and it_use = '1' and it_nocoupon = '0' "; $it = sql_fetch($sql); if(!$it['it_id']) { @@ -329,7 +329,7 @@ if($w == '') { do { $cp_id = coupon_generator(); - $sql = " insert into {$g4['yc4_coupon_table']} + $sql = " insert into {$g4['shop_coupon_table']} set cp_id = '$cp_id', cp_subject = '$cp_subject', cp_type = '$cp_type', @@ -361,7 +361,7 @@ if($w == '') { } } } else if($w == 'u') { - $sql = " select cp_id from {$g4['yc4_coupon_table']} where cp_no = '$cp_no' "; + $sql = " select cp_id from {$g4['shop_coupon_table']} where cp_no = '$cp_no' "; $row = sql_fetch($sql); if(!$row['cp_id']) { @@ -387,7 +387,7 @@ if($w == '') { // 상품체크 if($cp_type == 0 && $cp_target == 0) { if($it_id != '전체상품') { - $sql = " select it_id from {$g4['yc4_item_table']} where it_id = '$it_id' and it_nocoupon = '0' "; + $sql = " select it_id from {$g4['shop_item_table']} where it_id = '$it_id' and it_nocoupon = '0' "; $row = sql_fetch($sql); if(!$row['it_id']) { alert('존재하지 않거나 쿠폰제외 상품입니다.'); @@ -398,7 +398,7 @@ if($w == '') { // 카테고리체크 if($cp_type == 0 && $cp_target == 1) { if($ca_id != '전체카테고리') { - $sql = " select ca_id from {$g4['yc4_category_table']} where ca_id = '$ca_id' and ca_nocoupon = '0' "; + $sql = " select ca_id from {$g4['shop_category_table']} where ca_id = '$ca_id' and ca_nocoupon = '0' "; $row = sql_fetch($sql); if(!$row['ca_id']) { alert('존재하지 않거나 쿠폰제외 카테고리입니다.'); @@ -416,7 +416,7 @@ if($w == '') { } } - $sql = " update {$g4['yc4_coupon_table']} + $sql = " update {$g4['shop_coupon_table']} set cp_subject = '$cp_subject', cp_type = '$cp_type', cp_target = '$cp_target', @@ -435,14 +435,14 @@ if($w == '') { where cp_no = '$cp_no' "; sql_query($sql); } else if($w == 'd') { - $sql = " select cp_id from {$g4['yc4_coupon_table']} where cp_no = '$cp_no' "; + $sql = " select cp_id from {$g4['shop_coupon_table']} where cp_no = '$cp_no' "; $row = sql_fetch($sql); if(!$row['cp_id']) { alert('쿠폰 정보가 존재하지 않습니다.'); } - $sql = " delete from {$g4['yc4_coupon_table']} where cp_no = '$cp_no' "; + $sql = " delete from {$g4['shop_coupon_table']} where cp_no = '$cp_no' "; sql_query($sql); } diff --git a/adm/shop_admin/couponlist.php b/adm/shop_admin/couponlist.php index 0c6d77786..ffdf53401 100644 --- a/adm/shop_admin/couponlist.php +++ b/adm/shop_admin/couponlist.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_coupon_table']} a left join {$g4['yc4_item_table']} b on ( a.it_id = b.it_id ) "; +$sql_common = " from {$g4['shop_coupon_table']} a left join {$g4['shop_item_table']} b on ( a.it_id = b.it_id ) "; $sql_search = " where (1) "; @@ -106,7 +106,7 @@ for($i=0; $row=sql_fetch_array($result); $i++) { } } else if($row['cp_target'] == 1) { // 카테고리 if($row['ca_id'] != '전체카테고리') { - $sql = " select ca_name from {$g4['yc4_category_table']} where ca_id = '{$row['ca_id']}' "; + $sql = " select ca_name from {$g4['shop_category_table']} where ca_id = '{$row['ca_id']}' "; $temp = sql_fetch($sql); $target = $temp['ca_name']; } else { @@ -119,7 +119,7 @@ for($i=0; $row=sql_fetch_array($result); $i++) { $limit = explode('-', $row['cp_end']); $cp_end = substr($limit[0], 2, 2).'년 '.(int)$limit[1].'월 '.(int)$limit[2].'일'; // 쿠폰사용수 - $sql1 = " select count(*) as cnt from {$g4['yc4_coupon_history_table']} where cp_id = '{$row['cp_id']}' "; + $sql1 = " select count(*) as cnt from {$g4['shop_coupon_history_table']} where cp_id = '{$row['cp_id']}' "; $row1 = sql_fetch($sql1); $use_count = number_format($row1['cnt']); diff --git a/adm/shop_admin/deliverycodeform.php b/adm/shop_admin/deliverycodeform.php index cf6142dbb..92a59fcba 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 ab8d58b20..d069b1e2b 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 63bfc8209..db3992da3 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 e132e9e67..208023ea2 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 .= "