From 47483cd9137ee03990477d17f6eb5d9eb367c7cc Mon Sep 17 00:00:00 2001 From: thisgun Date: Mon, 11 Jan 2021 12:07:59 +0900 Subject: [PATCH] =?UTF-8?q?=EC=87=BC=ED=95=91=EB=AA=B0=20=EB=B6=84?= =?UTF-8?q?=EB=A5=98=20=EA=B4=80=EB=A6=AC=EC=9E=90=EA=B0=80=20=EC=83=81?= =?UTF-8?q?=ED=92=88=EC=9D=84=20=EB=93=B1=EB=A1=9D=ED=95=98=EC=A7=80=20?= =?UTF-8?q?=EB=AA=BB=ED=95=98=EB=8A=94=20=EC=98=A4=EB=A5=98=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/shop_admin/itemformupdate.php | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/adm/shop_admin/itemformupdate.php b/adm/shop_admin/itemformupdate.php index fffc794bd..4b076d88a 100644 --- a/adm/shop_admin/itemformupdate.php +++ b/adm/shop_admin/itemformupdate.php @@ -23,10 +23,14 @@ $ca_id2 = isset($_POST['ca_id2']) ? preg_replace('/[^0-9a-z]/i', '', $_POST['ca_ $ca_id3 = isset($_POST['ca_id3']) ? preg_replace('/[^0-9a-z]/i', '', $_POST['ca_id3']) : ''; if ($is_admin != 'super') { // 최고관리자가 아니면 체크 - $sql = "select b.ca_mb_id from {$g5['g5_shop_item_table']} a , {$g5['g5_shop_category_table']} b where (a.ca_id = b.ca_id) and a.it_id = '$it_id'"; + if( $w === '' ){ + $sql = "select ca_mb_id from {$g5['g5_shop_category_table']} where ca_id = '$ca_id'"; + } else { + $sql = "select b.ca_mb_id from {$g5['g5_shop_item_table']} a , {$g5['g5_shop_category_table']} b where (a.ca_id = b.ca_id) and a.it_id = '$it_id'"; + } $checks = sql_fetch($sql); - if( ! $checks['ca_mb_id'] || $checks['ca_mb_id'] !== $member['mb_id'] ){ + if( ! (isset($checks['ca_mb_id']) && $checks['ca_mb_id']) || $checks['ca_mb_id'] !== $member['mb_id'] ){ alert("해당 분류의 관리회원이 아닙니다."); } } @@ -316,6 +320,11 @@ $check_sanitize_keys = array( 'it_sc_method', // 배송비 결제 'it_sc_price', // 기본배송비 'it_sc_minimum', // 배송비 상세조건 +'it_type1', // 상품유형(히트) +'it_type2', // 상품유형(추천) +'it_type3', // 상품유형(신상품) +'it_type4', // 상품유형(인기) +'it_type5', // 상품유형(할인) ); foreach( $check_sanitize_keys as $key ){ @@ -640,7 +649,6 @@ echo ""; ?>