* @author Christian Weiske * @author Eric Dane * @license GPL http://www.gnu.org/licenses/gpl.html * @link http://sourceforge.net/projects/semanticscuttle * @link http://www.delicious.com/help/api */ // Force HTTP authentication first! $httpContentType = 'text/xml'; require_once 'httpauth.inc.php'; // parameter "datemode=modified" will get last modified date // instead of last created date $orderby = null; $timeField = 'bDatetime'; if (isset($_GET['datemode']) && $_GET['datemode'] == 'modified') { $orderby = 'modified_desc'; $timeField = 'bModified'; } $bs = SemanticScuttle_Service_Factory::get('Bookmark'); $bookmarks = $bs->getBookmarks(0, 1, $userservice->getCurrentUserId(), null, null, $orderby); // Set up the XML file and output all the tags. echo '\r\n"; //foreach is used in case there are no bookmarks foreach ($bookmarks['bookmarks'] as $row) { echo ''; } ?>