From 89e2cae174d31612247161c1c3c636505c7ffeec Mon Sep 17 00:00:00 2001 From: chicpro Date: Wed, 25 Sep 2013 15:22:16 +0900 Subject: [PATCH] =?UTF-8?q?=EC=83=81=ED=92=88=EB=AC=B8=EC=9D=98=20?= =?UTF-8?q?=ED=9B=84=EA=B8=B0=20=EC=82=AD=EC=A0=9C=EC=8B=9C=20=EC=B2=A8?= =?UTF-8?q?=EB=B6=80=EB=90=9C=20=EC=9D=B4=EB=AF=B8=EC=A7=80=20=EC=82=AD?= =?UTF-8?q?=EC=A0=9C=20=EC=BD=94=EB=93=9C=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shop/itemqaformupdate.php | 20 +++++++++++++++++++- shop/itemuseformupdate.php | 19 +++++++++++++++++++ 2 files changed, 38 insertions(+), 1 deletion(-) diff --git a/shop/itemqaformupdate.php b/shop/itemqaformupdate.php index d6ea5c898..408005e09 100644 --- a/shop/itemqaformupdate.php +++ b/shop/itemqaformupdate.php @@ -67,7 +67,25 @@ else if ($w == "d") alert("답변이 있는 상품문의는 삭제하실 수 없습니다."); } - //$sql = " delete from {$g5['g5_shop_item_qa_table']} where mb_id = '{$member['mb_id']}' and iq_id = '$iq_id' "; + // 에디터로 첨부된 이미지 삭제 + $sql = " select iq_question from {$g5['g5_shop_item_qa_table']} where iq_id = '$iq_id' and md5(concat(iq_id,iq_time,iq_ip)) = '{$hash}' "; + $row = sql_fetch($sql); + + $imgs = get_editor_image($row['iq_question']); + + for($i=0;$i