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