diff options
author | Andreas Unterkircher <unki@netshadow.at> | 2007-06-08 04:17:24 +0000 |
---|---|---|
committer | Andreas Unterkircher <unki@netshadow.at> | 2007-06-08 04:17:24 +0000 |
commit | 37a17e20128c27bb4e56ef2f020ece577703de4f (patch) | |
tree | 7d6ead86b2dd127277bc28c08c20c6bb091a1a99 | |
parent | 4c837f96cb1d36e7717d935e1f1270ffd423d2dd (diff) |
display some meta data informations
git-svn-id: file:///var/lib/svn/phpfspot/trunk@49 fa6a889d-dae6-447d-9e79-4ba9a3039384
-rw-r--r-- | phpfspot.class.php | 10 | ||||
-rw-r--r-- | templates/single_photo.tpl | 2 |
2 files changed, 11 insertions, 1 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() + } ?> diff --git a/templates/single_photo.tpl b/templates/single_photo.tpl index 4501333..2243b56 100644 --- a/templates/single_photo.tpl +++ b/templates/single_photo.tpl @@ -2,7 +2,7 @@ <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" /> |