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 --- index.php | 34 +++++++++++++++++++++++++--------- 1 file changed, 25 insertions(+), 9 deletions(-) (limited to 'index.php') 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