authenticate("write"); if (!$gallery->checkAuthenticatedUser()) { $gallery->error("You do not have permission to edit these details"); } ?> Flickr Gallery getPhotoInfo($id); $title = $info['title']; $img = 'http://static.flickr.com/' . $info['server'] . '/' . $info['id'] . '_' . $info['secret'] . '.jpg'; $photoPage = 'http://www.flickr.com/photos/' . $info['owner']['nsid'] . '/' . $id . '/'; $description = $info['description']; $tags = ""; if (!empty($info['tags']['tag'])) { foreach ($info['tags']['tag'] as $tag) { $raw = $tag['raw']; // Note use of !== operator here if (strpos($raw, ' ') !== FALSE) { // Contains a space, so surround in quotes $raw = '"' . $raw . '"'; } $tags .= $raw . " "; } } } ?>

<?php echo $title ?>