forked from PodcastGenerator/PodcastGenerator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
feed.php
executable file
·30 lines (22 loc) · 809 Bytes
/
feed.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
############################################################
# PODCAST GENERATOR
#
# Created by Alberto Betella
# http://www.podcastgenerator.net
#
# This is Free Software released under the GNU/GPL License.
############################################################
header('Content-type: application/xml');
ob_start();
########### Security code, avoids cross-site scripting (Register Globals ON)
if (isset($_REQUEST['GLOBALS']) OR isset($_REQUEST['absoluteurl']) OR isset($_REQUEST['amilogged']) OR isset($_REQUEST['theme_path'])) { exit; }
########### End
include("core/includes.php");
$ShowCategory = NULL;
if (isset($_GET['cat']) AND $_GET['cat'] != NULL) {
$ShowCategory = avoidXSS($_GET['cat']);
}
generatePodcastFeed(FALSE,$ShowCategory,FALSE); //Output on screen
ob_end_flush();
?>