getBookmarks(0, NULL, $userservice->getCurrentUserId(), $tag, NULL, NULL, NULL, $dtstart, $dtend); $currentuser = $userservice->getCurrentUser(); $currentusername = $currentuser[$userservice->getFieldName('username')]; // Set up the XML file and output all the tags. header('Content-Type: text/xml'); echo '\r\n"; echo '\r\n"; foreach ($bookmarks['bookmarks'] as $row) { if (is_null($row['bDescription']) || (trim($row['bDescription']) == '')) $description = ''; else $description = 'extended="'. filter($row['bDescription'], 'xml') .'" '; $taglist = ''; if (count($row['tags']) > 0) { foreach($row['tags'] as $tag) $taglist .= convertTag($tag) .' '; $taglist = substr($taglist, 0, -1); } else { $taglist = 'system:unfiled'; } // The privacy setting in scuttle is to set bStatus to 2 in database. if(trim($row['bStatus']) == '2') { $shared = "no"; } else { $shared = "yes"; } echo "\t\r\n"; } echo '';