From 6024c67277c7e335311dc682fa394ae582100d16 Mon Sep 17 00:00:00 2001 From: chicpro Date: Wed, 15 May 2013 09:41:10 +0900 Subject: [PATCH] =?UTF-8?q?#177=20=EC=83=81=ED=92=88=20=EB=B3=B5=EC=82=AC?= =?UTF-8?q?=EC=8B=9C=20=EC=9D=B4=EB=AF=B8=EC=A7=80=20=EB=B3=B5=EC=82=AC=20?= =?UTF-8?q?=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/item_copy_update.php | 129 ++++++++++++++++++++++++---- 1 file changed, 112 insertions(+), 17 deletions(-) diff --git a/adm/shop_admin/item_copy_update.php b/adm/shop_admin/item_copy_update.php index 152677014..10e664782 100644 --- a/adm/shop_admin/item_copy_update.php +++ b/adm/shop_admin/item_copy_update.php @@ -38,23 +38,6 @@ $sql = " insert {$g4['shop_item_table']} $sql_common "; sql_query($sql); -$img_path = G4_DATA_PATH."/item/"; - -for($i=1; $i<6; $i++) { - $limg = $it_id."_l".$i; - if(is_file($img_path.$limg)) - copy($img_path.$limg,$img_path.$new_it_id."_l".$i); - -} - -$simg = $it_id."_s"; -if(is_file($img_path.$simg)) - copy($img_path.$simg,$img_path.$new_it_id."_s"); - -$mimg = $it_id."_m"; -if(is_file($img_path.$mimg)) - copy($img_path.$mimg,$img_path.$new_it_id."_m"); - // 상품요약정보 복사 $sql = " select * from {$g4['shop_item_info_table']} where it_id = '$it_id' order by ii_id "; $result = sql_query($sql); @@ -64,6 +47,118 @@ for ($i=0; $row=sql_fetch_array($result); $i++) { sql_query($sql); } +// html 에디터로 첨부된 이미지 파일 복사 +if($cp['it_explan']) { + $matchs = get_editor_image($cp['it_explan']); + + // 파일의 경로를 얻어 복사 + for($i=0;$i