root/trunk/rss.php

Revision 1797, 1.0 kB (checked in by vollmerk, 4 weeks ago)

added the recently played back in

Line 
1<?php
2/*
3
4 Copyright (c) Ampache.org
5 All rights reserved.
6
7 This program is free software; you can redistribute it and/or
8 modify it under the terms of the GNU General Public License v2
9 as published by the Free Software Foundation.
10
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.
15
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.
19
20*/
21
22define('NO_SESSION','1');
23require 'lib/init.php';
24
25/* Check Perms */
26if (!Config::get('use_rss') || Config::get('demo_mode')) {
27        access_denied();
28        exit;
29}
30
31// Add in our base hearder defining the content type
32header("Content-Type: application/xml; charset=" . Config::get('site_charset')); 
33
34$rss = new AmpacheRSS($_REQUEST['type']); 
35echo $rss->get_xml(); 
36
37?>
Note: See TracBrowser for help on using the browser.