From: Andrew Dolgov Date: Mon, 31 Jul 2006 11:35:50 +0000 (+0100) Subject: add aggregated feed generator X-Git-Tag: schema_freeze_for_1.2.2~54 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=186649709a15de3b36411ae250d28abb574b1c53;p=tt-rss.git add aggregated feed generator --- diff --git a/NEWS b/NEWS index f051034b..fb7fed77 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,7 @@ v1.2.2 (Aug xx, 2006) * Bugfixes * Support for HTTP Digest authentication (via included Snoopy class) + * Support for generation of aggregated feeds v1.2.1 (Jul 17, 2006) diff --git a/backend.php b/backend.php index ff19595f..107074fb 100644 --- a/backend.php +++ b/backend.php @@ -33,11 +33,12 @@ print_error_xml(9, $err_msg); die; } - if ((!$op || $op == "rpc" || $op == "globalUpdateFeeds") && !$_REQUEST["noxml"]) { + if ((!$op || $op == "rpc" || $op == "rss" || + $op == "globalUpdateFeeds") && !$_REQUEST["noxml"]) { header("Content-Type: application/xml"); } - if (!$_SESSION["uid"] && $op != "globalUpdateFeeds") { + if (!$_SESSION["uid"] && $op != "globalUpdateFeeds" && $op != "rss") { if ($op == "rpc") { print_error_xml(6); die; @@ -805,7 +806,8 @@ } function print_headline_subtoolbar($link, $feed_site_url, $feed_title, - $bottom = false, $rtl_content = false) { + $bottom = false, $rtl_content = false, $feed_id = 0, + $is_cat = false) { if (!$bottom) { $class = "headlinesSubToolbar"; @@ -861,6 +863,13 @@ } else { print $feed_title; } + + print "  + + "; print ""; print ""; @@ -870,7 +879,7 @@ if (db_num_rows($result) > 0) { print_headline_subtoolbar($link, $feed_site_url, $feed_title, false, - $rtl_content); + $rtl_content, $feed, $cat_view); if (!get_pref($link, 'COMBINED_DISPLAY_MODE')) { print " + + $feed_title + $feed_site_url + Tiny Tiny RSS v".VERSION.""; + + while ($line = db_fetch_assoc($result)) { + print ""; + print "" . htmlspecialchars($line["link"]) . ""; + + $rfc822_date = date('r', strtotime($line["updated"])); + + print "$rfc822_date"; + + print "" . + htmlspecialchars($line["title"]) . ""; + + print "" . + htmlspecialchars($line["content_preview"]) . ""; + + print ""; + } + + print ""; + + } + ?> diff --git a/images/feed-icon-12x12.png b/images/feed-icon-12x12.png new file mode 100644 index 00000000..291000ea Binary files /dev/null and b/images/feed-icon-12x12.png differ