[2023-01-23] 4images 1.10 released
0 Members and 1 Guest are viewing this topic.
if (!empty($image_row['image_download_url'])) { if (is_remote_file($image_row['image_download_url']) || is_local_file($image_row['image_download_url'])) { ereg("(.+)\.(.+)", basename($image_row['image_download_url']), $regs); $file_name = $regs[1]; $file_extension = $regs[2]; $file['file_name'] = $file_name.(($size) ? "_".$size : "").".".$file_extension; $file['file_path'] = dirname($image_row['image_download_url'])."/".$file['file_name']; $remote_url = 1; } else { $file['file_path'] = $image_row['image_download_url']; $remote_url = 1; } }