$details = $this->get_photo_details($photo);
+ $meta = $this->get_meta_informations($this->translate_path($details['directory_path']) ."/". $details['name']);
+ $this->tmpl->assign('c_date', $meta['DateTime']);
+ $this->tmpl->assign('madewith', $meta['Make'] ." ". $meta['Model']);
$this->tmpl->assign('image_name', $details['name']);
$this->tmpl->assign('image_url', 'phpfspot_img.php?idx='. $photo ."&width=". $this->cfg->photo_width);
} // resize_image()
+ public function get_meta_informations($file)
+ {
+
+ return exif_read_data($file);
+
+ } // get_meta_informations()
+
}
?>
<table>
<tr>
<td class="index_header" style="text-align: left;">
- <b>Photo {$image_name}</b><br />
+ <b>Photo {$image_name}</b>, {$c_date}, {$madewith}<br />
</td>
<td class="index_header" style="text-align: right;">
<img src="resources/information.png" />