From 41abfed906f35a3a426ad0c591d71d79a89d7ec5 Mon Sep 17 00:00:00 2001 From: Romain d'Alverny Date: Thu, 5 May 2011 10:49:08 +0000 Subject: style update --- README.md | 2 ++ index.php | 34 +++++++++++++++++++++++++--------- 2 files changed, 27 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 21e0793..ce026ae 100644 --- a/README.md +++ b/README.md @@ -20,3 +20,5 @@ See https://bugs.mageia.org/show_bug.cgi?id=1043 - Submission guidelines for photographs. - Add a caption to a picture + a link to bonjourmageia.fr? => use photograph EXIF data for Copyright, comment, link? + - http://stackoverflow.com/questions/1578169/how-can-i-read-xmp-data-from-a-jpg-with-php + - http://desandro.github.com/3dtransforms/docs/card-flip.html \ No newline at end of file diff --git a/index.php b/index.php index 4ddde46..5623bd5 100644 --- a/index.php +++ b/index.php @@ -22,7 +22,9 @@ if (count($images) > 0) { $img_tmpl = 'Free Hugs!'; $img = $images[array_rand($images)]; $out = sprintf($img_tmpl, - str_replace(realpath(dirname(__FILE__)), '', $img)); + str_replace($app_root, '', $img)); + + // TODO $exif = exif_read_data($img, null, true); } else { $out = '

404 Hug Not Found :(

'; } @@ -37,26 +39,40 @@ if (count($images) > 0) { - + -- cgit v1.2.1