<!-- exif data start -->
<!--//
<tr>
<td align=center>
<?php
$forceRefresh = 0;
if ($gallery->user->canWriteToAlbum($gallery->album)) {
if (isset($reloadExifFromFile)) {
$forceRefresh = 1;
}
}
$myExif = $gallery->album->getExif($index, $forceRefresh);
if ($myExif) {
// following line commented out because we were losing
// comments from the Exif array. This is probably due
// to differences in versions of jhead.
// array_pop($myExif); // get rid of empty element at end
array_shift($myExif); // get rid of file name at beginning
$sizeOfExif = sizeof($myExif);
$sizeOfTable = $sizeOfExif / 2;
$i = 1;
$column = 1;
echo ("<table width=500>\n");
echo ("<tr valign=top>\n");
echo ("<td>\n");
while (list($key, $value) = each ($myExif)) {
echo "<b>$key</b>: $value<br>\n";
if (($i >= $sizeOfTable) && ($column == 1)) {
echo ("</td>\n");
echo ("<td>\n");
$column = 2;
}
$i++;
}
echo ("</td>\n</table><br>");
}
echo ("File Upload Date: " . date("m-d-Y H:i:s" , $gallery->album->getUploadDate($index)) . "<br>");
$itemCaptureDate = $gallery->album->getItemCaptureDate($index);
echo ("Item Capture Date: " . $itemCaptureDate['mon'] . "-" . $itemCaptureDate['mday'] . "-" . $itemCaptureDate['year'] . " ");
echo ($itemCaptureDate['hours'] . ":" . $itemCaptureDate['minutes'] . ":" . $itemCaptureDate['seconds'] . "<br>");
if ($gallery->album->getKeyWords($index)) {
echo "<b>KEYWORDS</b>: " . $gallery->album->getKeyWords($index);
}
if ($gallery->user->canWriteToAlbum($gallery->album) &&
!strcmp($gallery->app->cacheExif, "yes")) {
echo "<br>";
echo "<a href=" .
makeGalleryUrl("view_photo_properties.php",
array("reloadExifFromFile" => 1,
"set_albumName" => $gallery->session->albumName,
"index" => $index)) .
">[Reload EXIF Data From File]</a>";
echo "<br>";
echo "<span class=fineprint>";
echo "(if the data is current, this will not appear to do anything)";
echo "</span>";
}
?>
<BR>
</td>
</tr>
//-->
<!--
else {
gallery_error("no album / index specified");
}
exif data end -->