if ($data['photo_thumb1'] && file_exists(PHOTODIR.$data['photo_thumb1'])){ $photo_types=explode(".", $photo_file); $photo_types=$photo_types['1']; if ($photo_types == "swf") { echo ""; } else { echo "".$data["; } } else { echo $locale['432']; }