*/
$defaultOrderBy = 'date_desc';
+/**
+ * Number of entries that are shown in
+ * the RSS feed by default.
+ *
+ * @var integer
+ */
+$defaultRssEntries = 15;
+
+/**
+ * Number of entries the RSS puts out
+ * at maximum.
+ *
+ * @var integer
+ */
+$maxRssEntries = 100;
+
/**
* Redirect all bookmarks through $url_redir to improve privacy.
*
/**
* RSS output of the latest posts.
*
+ * Parameter:
+ * - count=15
+ * Sets the number of RSS entries to export
+ *
* SemanticScuttle - your social bookmark manager.
*
* PHP version 5.
$cacheservice->Start($hash, 3600);
}
+if (isset($_GET['count'])) {
+ $rssEntries = (int)$_GET['count'];
+}
+if ($rssEntries <= 0) {
+ $rssEntries = $defaultRssEntries;
+} else if ($rssEntries > $maxRssEntries) {
+ $rssEntries = $maxRssEntries;
+}
+
+
$watchlist = null;
$pagetitle = '';
if ($user && $user != 'all') {
$tplVars['feeddescription'] = sprintf(T_('Recent bookmarks posted to %s'), $GLOBALS['sitename']);
$bookmarks = $bookmarkservice->getBookmarks(
- 0, 15, $userid, $cat,
+ 0, $rssEntries, $userid, $cat,
null, getSortOrder(), $watchlist
);