get_photo( $id, true ); if ( empty( $photo ) ) { e( lang('Photo does not exists') ); cb_show_page(); } else { $exif = get_photo_meta_value( $photo['photo_id'], 'exif_data'); if ( !$exif ) { e( lang(sprintf('%s does not have EXIF Data', $photo['photo_title'])) ); } else { if ( $photo['userid'] != userid() && $photo['view_exif'] == 'no' ) { e( lang('Owner has decided to keep Exif Information hidden for this photo.') ); } else { $exif = json_decode( $exif, true ); $template_ready_data = ready_exif_data( $exif, $photo ); assign( 'photo', $photo ); assign('exif', $template_ready_data ); if ( $photo['userid'] == userid() ) { assign( 'is_owner', true ); } subtitle( 'Exif | '.$photo['photo_title'] ); template_files( STYLES_DIR.'/global/exif.html'); } } } } display_it(); ?>