2 * RSS/Atom feed generator
4 * Copyright (c) 2005-2010 by the citadel.org team
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 3 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 #include "webserver.h"
27 * Main entry point for GroupDAV requests
31 output_headers(0, 0, 0, 1, 1, 0);
32 hprintf("Content-type: text/xml\r\n");
35 "Connection: close\r\n"
37 PACKAGE_STRING, ChrPtr(WC->serv_info->serv_software)
41 wc_printf("<?xml version=\"1.0\"?>"
42 "<rss version=\"2.0\" xmlns:atom=\"http://www.w3.org/2005/Atom\">"
47 escputs(ChrPtr(WC->CurRoom.name));
48 wc_printf("</title>");
51 urlescputs(ChrPtr(site_prefix));
54 // <language>en-us</language>
55 // <description>Linux Today News Service</description>
56 // <atom:link href="http://linuxtoday.com/biglt.rss" rel="self" type="application/rss+xml" />
59 // <title>Linux Today</title>
60 // <url>http://linuxtoday.com/pics/ltnet.png</url>
61 // <link>http://linuxtoday.com</link>
66 <title>lorem ipsum dolor sit amet</title>
67 <pubDate>Wed, 08 Sep 2010 20:03:21 GMT</pubDate>
68 <link>http://xxxxx.xxxx.xxxxxx.xxxx.xxx</link>
69 <description><b>foo bar baz:</b> lorem ipsum dolor sit amet, foo bar eek</description>
70 <guid>xxxx-xxxx-xxxx-xxxx-xxxx-xxxx</guid>
74 wc_printf("</channel>"
88 WebcitAddUrlHandler(HKEY("feed_rss"), "", 0, feed_rss, ANONYMOUS|COOKIEUNNEEDED|FORCE_SESSIONCLOSE);