1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-03 01:39:28 +02:00

some work on the rss feed stuff

This commit is contained in:
Karl 'vollmerk' Vollmer 2008-12-06 18:47:09 +00:00
parent 286840fbcc
commit 287a46f11e
5 changed files with 72 additions and 16 deletions

View file

@ -28,6 +28,12 @@ if (!Config::get('use_rss') || Config::get('demo_mode')) {
exit;
}
// Add in our base hearder defining the content type
header("Content-Type: application/xml; charset=" . Config::get('site_charset'));
header("Content-Disposition: attachment; filename=rss.xml");
// This is always going to be an rss feed, so make sure our header and footers are correct
xmlData::set_type('rss');
switch ($_REQUEST['action']) {
case 'user':
@ -36,6 +42,7 @@ switch ($_REQUEST['action']) {
case 'catalog_add':
default:
break;
} // end data collection