From d90c87ac06ea1ae192b970aabce7a66e9f0a2614 Mon Sep 17 00:00:00 2001 From: chicpro Date: Wed, 4 Sep 2013 10:09:37 +0900 Subject: [PATCH] =?UTF-8?q?it=5Fid=EC=97=90=20=EB=B0=B0=EC=97=B4=EA=B0=92?= =?UTF-8?q?=EC=9D=B4=20=EA=B8=B0=EB=A1=9D=EB=90=98=EB=8D=98=20=EC=98=A4?= =?UTF-8?q?=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shop/wishupdate.php | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/shop/wishupdate.php b/shop/wishupdate.php index 1c051efb7..fcd949fa6 100644 --- a/shop/wishupdate.php +++ b/shop/wishupdate.php @@ -2,7 +2,7 @@ include_once('./_common.php'); if (!$is_member) - alert('회원 전용 서비스 입니다.', G4_BBS_URL.'/login.php?url='.urlencode($_SERVER['PHP_SELF'].'?it_id='.$it_id)); + alert('회원 전용 서비스 입니다.', G4_BBS_URL.'/login.php?url='.urlencode($url)); if ($w == "d") { @@ -12,14 +12,11 @@ if ($w == "d") and mb_id = '{$member['mb_id']}' "; sql_query($sql); } -else if ($w == "alldelete") -{ - $sql = " delete from {$g4['shop_wish_table']} - where mb_id = '{$member['mb_id']}' "; - sql_query($sql); -} else { + if(is_array($it_id)) + $it_id = $_POST['it_id'][0]; + $sql_common = " set mb_id = '{$member['mb_id']}', it_id = '$it_id', wi_time = '".G4_TIME_YMDHIS."',