From fa5aa3123c2184dbc24f9be1cc8ca4b8da3a3d91 Mon Sep 17 00:00:00 2001 From: Romain d'Alverny Date: Wed, 8 Jun 2011 16:50:24 +0000 Subject: alternative to submit photos --- README.md | 2 +- index.php | 3 ++- post-your-own/index.php | 59 +++++++++++++++++++++++++++++++++++++++---------- source-min.css | 2 +- source.css | 24 +++++++++++++++----- 5 files changed, 69 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 8545547..143203d 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Add new photos under public/var/hugs/ - these must be cleared for being used here - license must explicitly allow it; - identifiable people appearing as subjects must have given their consent - - use EXIF COMMENT field to add author + license information + - use EXIF COMMENT field to add author + license information (+ links) (use jhead for that, it's cool) diff --git a/index.php b/index.php index 9d51427..03e255c 100644 --- a/index.php +++ b/index.php @@ -42,7 +42,8 @@ if (count($images) > 0) { $out = sprintf('
%s
', $out); } else { - + header($_SERVER['SERVER_PROTOCOL'] . ': 404 Not Found'); + header('Status: 404 Not Found'); $out = '

404 Hug Not Found :(

'; } diff --git a/post-your-own/index.php b/post-your-own/index.php index 5e0bf3a..a8375bb 100644 --- a/post-your-own/index.php +++ b/post-your-own/index.php @@ -15,19 +15,54 @@

Need a hug? » Your own photo

+ +