\n";
include("../../plugins/php/class.xml.parser.php");
// -----------------------------------------------------------------------------
// This script takes a "tags" parameter from the query string
// and returns a list of flickr photos with that tag in the Rico LiveGrid format
//
// PLEASE USE YOUR OWN FLICKR API KEY
// Get one at: http://flickr.com/services/
//
// Created by Matt Brown, Dec 2007
// -----------------------------------------------------------------------------
$flickrKey="3773d42a5766f0bd27caa1d584ae0bc9";
$id=isset($_GET["id"]) ? $_GET["id"] : "";
$tags=isset($_GET["tags"]) ? $_GET["tags"] : "";
echo "\n ";
print XmlCell($photourl);
print XmlCell($item['attrs']['TITLE']);
print XmlCell($item['attrs']['OWNERNAME']);
print XmlCell($item['attrs']['DATETAKEN']);
print XmlCell($item['attrs']['TAGS']);
print "";
//print_r($parser->output);
//print "
";
$content=&$parser->output[0]['child'][0]['child'];
foreach ($content as $item) {
if ($item['name'] == "PHOTO") {
print "";
// "_s" suffix specifies a 75x75 pixel format
$photourl="http://farm".$item['attrs']['FARM'].".static.flickr.com/".$item['attrs']['SERVER']."/".$item['attrs']['ID']."_".$item['attrs']['SECRET']."_s.jpg";
//print " ";
$cnt++;
}
}
}
print "\n"."