diff --git a/mobile/shop/itemqaform.php b/mobile/shop/itemqaform.php index 2a0275618..d3cb23f75 100644 --- a/mobile/shop/itemqaform.php +++ b/mobile/shop/itemqaform.php @@ -10,6 +10,12 @@ $w = trim($_REQUEST['w']); $it_id = trim($_REQUEST['it_id']); $iq_id = trim($_REQUEST['iq_id']); +// 상품정보체크 +$sql = " select it_id from {$g5['g5_shop_item_table']} where it_id = '$it_id' "; +$row = sql_fetch($sql); +if(!$row['it_id']) + alert_close('상품정보가 존재하지 않습니다.'); + $chk_secret = ''; if($w == '') { diff --git a/mobile/shop/itemuseform.php b/mobile/shop/itemuseform.php index 88f88c0be..445145f6c 100644 --- a/mobile/shop/itemuseform.php +++ b/mobile/shop/itemuseform.php @@ -10,6 +10,12 @@ $w = trim($_REQUEST['w']); $it_id = trim($_REQUEST['it_id']); $is_id = trim($_REQUEST['is_id']); +// 상품정보체크 +$sql = " select it_id from {$g5['g5_shop_item_table']} where it_id = '$it_id' "; +$row = sql_fetch($sql); +if(!$row['it_id']) + alert_close('상품정보가 존재하지 않습니다.'); + if ($w == "") { $is_score = 5; diff --git a/shop/itemqaform.php b/shop/itemqaform.php index 67a969db9..41b44ed78 100644 --- a/shop/itemqaform.php +++ b/shop/itemqaform.php @@ -16,6 +16,12 @@ $w = trim($_REQUEST['w']); $it_id = trim($_REQUEST['it_id']); $iq_id = trim($_REQUEST['iq_id']); +// 상품정보체크 +$sql = " select it_id from {$g5['g5_shop_item_table']} where it_id = '$it_id' "; +$row = sql_fetch($sql); +if(!$row['it_id']) + alert_close('상품정보가 존재하지 않습니다.'); + $chk_secret = ''; if($w == '') { diff --git a/shop/itemuseform.php b/shop/itemuseform.php index ad2366603..148b2adaf 100644 --- a/shop/itemuseform.php +++ b/shop/itemuseform.php @@ -16,6 +16,12 @@ $w = trim($_REQUEST['w']); $it_id = trim($_REQUEST['it_id']); $is_id = trim($_REQUEST['is_id']); +// 상품정보체크 +$sql = " select it_id from {$g5['g5_shop_item_table']} where it_id = '$it_id' "; +$row = sql_fetch($sql); +if(!$row['it_id']) + alert_close('상품정보가 존재하지 않습니다.'); + if ($w == "") { $is_score = 5;