From 186649709a15de3b36411ae250d28abb574b1c53 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 31 Jul 2006 12:35:50 +0100 Subject: [PATCH] add aggregated feed generator --- NEWS | 1 + backend.php | 34 +++++++++++++++--- functions.php | 69 ++++++++++++++++++++++++++++++++++++- images/feed-icon-12x12.png | Bin 0 -> 552 bytes 4 files changed, 99 insertions(+), 5 deletions(-) create mode 100644 images/feed-icon-12x12.png 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 0000000000000000000000000000000000000000..291000eab2b97c9a5a6f76e77afd6837ec10ac5f GIT binary patch literal 552 zcmV+@0@wYCP)DsltE14pDw_FHTz;S!}2Q zaSCGhdWN7cjuCB6BdN`T6&^!QeSz+H=EP~+8Z;p~14Ci7isHK!_|sc?*RP)(qI|uK z%sjd^nA~8~X{}8n-CF=n3pu$2<5$qG&4YJ5f#{pc4atKW950Ep?GG@GONdvW(LSj| zhZiWke2X-)2D-uKY)$ITGQ{{CO!pY#gH_j=RR+;I+JV>I>-cqQkwl)exjBW28i>yi z5uF`6e%AFI@zoD^7L{JYO2B?D4*#}Gxr@%S-dB_-V~5p*Bf3;5?Yiv-i$xhgE6^{1 q8!(Rsq%R12HppZeCWt2f3ormBw8_v>x+2X00000