From 24f3f2f0d304254451c46a3b28a8e1f4678bc02f Mon Sep 17 00:00:00 2001 From: Greg Froese Date: Thu, 8 Oct 2009 04:38:19 +0000 Subject: flickr integration --- actions/flickrSetup.php | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 actions/flickrSetup.php (limited to 'actions/flickrSetup.php') diff --git a/actions/flickrSetup.php b/actions/flickrSetup.php new file mode 100644 index 000000000..e272ee141 --- /dev/null +++ b/actions/flickrSetup.php @@ -0,0 +1,32 @@ +people_findByUsername( $flickr_username ); + if( !empty( $flickr_user["id"] )) { + create_metadata( $user->guid, "flickr_username", $flickr_username, "text", $user->guid, ACCESS_PUBLIC ); + create_metadata( $user->guid, "flickr_id", $flickr_user["id"], "text", $user->guid, ACCESS_PUBLIC ); + + system_message( "Successfully saved Flickr username of $flickr_username" ); + system_message( "flickr user id: $flickr_user[id]" ); + } else { + register_error( "Username $flickr_username not found on Flickr" ); + } +} + +forward($_SERVER['HTTP_REFERER']); +//echo "
"; var_dump( array($flickr_username, $return_url )); echo "
"; + +?> \ No newline at end of file -- cgit v1.2.3