diff options
Diffstat (limited to 'phpfspot.class.php')
-rw-r--r-- | phpfspot.class.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/phpfspot.class.php b/phpfspot.class.php index 641cc0e..c783939 100644 --- a/phpfspot.class.php +++ b/phpfspot.class.php @@ -102,7 +102,10 @@ class PHPFSPOT { $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); @@ -329,6 +332,13 @@ class PHPFSPOT { } // resize_image() + public function get_meta_informations($file) + { + + return exif_read_data($file); + + } // get_meta_informations() + } ?> |