$value) { if(isset($temp_img_row[$value])) { $content['tmp_images'][$key][0] = $temp_img_row[$value]['f_id']; $content['tmp_images'][$key][1] = $temp_img_row[$value]['f_name']; $content['tmp_images'][$key][2] = $temp_img_row[$value]['f_hash']; $content['tmp_images'][$key][3] = $temp_img_row[$value]['f_ext']; $content['tmp_images'][$key][4] = $temp_width; $content['tmp_images'][$key][5] = $temp_height; $content['tmp_images'][$key][6] = isset($content["image_cctext"][$key]) ? trim($content["image_cctext"][$key]) : ''; } } } } // take values $content['image_list'] = array(); $content['image_list']['images'] = $content['tmp_images']; $content['image_list']['width'] = $temp_width; $content['image_list']['height'] = $temp_height; $content['image_list']['pos'] = $content["image_pos"]; $content['image_list']['col'] = $content["image_col"]; $content['image_list']['zoom'] = $content["image_zoom"]; $content['image_list']['crop'] = $content["image_crop"]; $content['image_list']['space'] = $content["image_space"]; $content['image_list']['lightbox'] = empty($_POST["cimage_lightbox"]) ? 0 : 1; $content['image_list']['nocaption'] = empty($_POST["cimage_nocaption"]) ? 0 : 1; $content['image_list']['center_image'] = empty($_POST["cimage_center"]) ? 0 : intval($_POST["cimage_center"]); if($content['image_list']['center_image'] > 3) { $content['image_list']['center_image'] = 0; } elseif($content['image_list']['center_image'] < 0) { $content['image_list']['center_image'] = 0; } ?>