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 ""; ?>