From c4685adf35685c7590f4756f1335af71a0631c93 Mon Sep 17 00:00:00 2001 From: chicpro Date: Fri, 22 Mar 2013 13:40:08 +0900 Subject: [PATCH] =?UTF-8?q?=EC=82=AD=ED=92=88=EC=82=AD=EC=A0=9C=EC=8B=9C?= =?UTF-8?q?=20=EC=97=90=EB=94=94=ED=84=B0=20=EC=9D=B4=EB=AF=B8=EC=A7=80=20?= =?UTF-8?q?=EC=82=AD=EC=A0=9C=EC=BD=94=EB=93=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/shop_admin/itemformupdate.php | 31 ++++++++++++------------------- 1 file changed, 12 insertions(+), 19 deletions(-) diff --git a/adm/shop_admin/itemformupdate.php b/adm/shop_admin/itemformupdate.php index b172ef52b..480cf46c2 100644 --- a/adm/shop_admin/itemformupdate.php +++ b/adm/shop_admin/itemformupdate.php @@ -82,29 +82,22 @@ function itemdelete($it_id) //------------------------------------------------------------------------ // HTML 내용에서 에디터에 올라간 이미지의 경로를 얻어 삭제함 //------------------------------------------------------------------------ - $sql = " select * from {$g4['yc4_item_table']} where it_id = '$it_id' "; + $sql = " select it_explan from {$g4['yc4_item_table']} where it_id = '$it_id' "; $it = sql_fetch($sql); - $s = $it['it_explan']; - $img_file = Array(); - while($s) { - $pos = strpos($s, "/data/cheditor"); - $s = substr($s, $pos, strlen($s)); - $pos = strpos($s, '"'); + $imgs = get_editor_image($it['it_explan']); - // 결과값 - $file_path = substr($s, 0, $pos); - if (!$file_path) break; + for($i=0;$i