|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
// Copyright (C) 2002-2006 Balint Kis (balint@k-i-s.net)
|
|
|
|
|
// Copyright (C) 2005-2013 Solomon Peachy (pizza@shaftnet.org)
|
|
|
|
|
// Copyright (C) 2005-2022 Solomon Peachy (pizza@shaftnet.org)
|
|
|
|
|
|
|
|
|
|
// This program is free software; you can redistribute it and/or modify
|
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
@ -74,19 +74,20 @@ for ($photos = 0; $photos < $num_photos; $photos++) {
|
|
|
|
|
case "photo_iptc":
|
|
|
|
|
case "photo_xml":
|
|
|
|
|
$photo_data = pg_fetch_assoc(pg_query($database, "
|
|
|
|
|
select folder, author, title, caption, caption_writer, copyright_statement, web_statement, date_of_exposure, category, supplemental_category,
|
|
|
|
|
select folder, author, title, photo.caption, caption_writer, copyright_statement, web_statement, date_of_exposure, category, supplemental_category,
|
|
|
|
|
location, credit, source,
|
|
|
|
|
access_rights, hide_original, headline, instructions,
|
|
|
|
|
photo.access_rights, hide_original, headline, instructions,
|
|
|
|
|
camera, film, focal_length, aperture, shutter, transmission_reference,
|
|
|
|
|
exposure_comp, ev_difference, camera_metering, camera_program, flash_mode, flash_comp,
|
|
|
|
|
scan_resolution, scan_bitdepth, scan_multiscan, iso_override,
|
|
|
|
|
latitude, longitude, altitude, img_direction, users, can_access_photo(photo.identifier, $po_user[id], '{".$passwords."}') as ok,
|
|
|
|
|
store_url, photo.comments as remark
|
|
|
|
|
from photo, photo_version, photo_tech
|
|
|
|
|
latitude, longitude, altitude, img_direction, photo.users, can_access_photo(photo.identifier, $po_user[id], '{".$passwords."}') as ok,
|
|
|
|
|
store_url, photo.comments as remark, folder.caption as folder_name
|
|
|
|
|
from photo, photo_version, photo_tech, folder
|
|
|
|
|
where photo.identifier = photo_version.photo
|
|
|
|
|
and photo.identifier = photo_tech.photo
|
|
|
|
|
and folder.identifier = photo.folder
|
|
|
|
|
and photo.identifier = $photo_identifier[identifier]"));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Get any keywords for the photo... */
|
|
|
|
|
$keywords = get_photo_keywords($database, $photo_identifier['identifier']);
|
|
|
|
|
|
|
|
|
@ -155,6 +156,7 @@ for ($photos = 0; $photos < $num_photos; $photos++) {
|
|
|
|
|
case "photo_xml":
|
|
|
|
|
$image_data = array ("file" => array(0 => array("name" => "", "remark" => "", "master" => "")),
|
|
|
|
|
"folder" => $photo_data['folder'],
|
|
|
|
|
"folder_name" => $photo_data['folder_name'],
|
|
|
|
|
"author" => $photo_data['author'],
|
|
|
|
|
"title" => $photo_data['title'],
|
|
|
|
|
"keywords" => $keywords,
|
|
|
|
@ -203,7 +205,7 @@ for ($photos = 0; $photos < $num_photos; $photos++) {
|
|
|
|
|
$image_data['file'][$versions]['master'] = $photo_version_single['master'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fwrite($xml_file_desciptor, create_xml_folder_header($image_data['folder']));
|
|
|
|
|
fwrite($xml_file_desciptor, create_xml_folder_header($image_data['folder'], $image_data['folder_name']));
|
|
|
|
|
fwrite($xml_file_desciptor, create_xml_photo($image_data));
|
|
|
|
|
fwrite($xml_file_desciptor, create_xml_folder_footer());
|
|
|
|
|
break;
|
|
|
|
|