getBookmarks(0, NULL, $userservice->getCurrentUserId(), $tag, NULL, getSortOrder()); // Set up the XML file and output all the posts. echo ''."\r\n"; echo ''; echo ''."\r\n"; echo 'Bookmarks'."\r\n"; echo '

Bookmarks for '. htmlspecialchars($currentUser->getUsername()) .''. (is_null($tag) ? '' : ' tag="'. htmlspecialchars($tag) .'"') ." from " . $sitename ."

\r\n"; echo '

'."\r\n"; foreach($bookmarks['bookmarks'] as $row) { if (is_null($row['bDescription']) || (trim($row['bDescription']) == '')) $description = ''; else $description = 'description="'. 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'; } echo "\t

" . filter($row['bTitle'], 'xml') ."\r\n"; } echo '

'; ?>