-
Notifications
You must be signed in to change notification settings - Fork 20
/
news_rss.php
58 lines (46 loc) · 1.2 KB
/
news_rss.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?php
/**
*
* @package Icy Phoenix
* @version $Id$
* @copyright (c) 2008 Icy Phoenix
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
*
* @Extra credits for this file
* CodeMonkeyX.net ([email protected])
*
*/
// Added to optimize memory for attachments
define('ATTACH_DISPLAY', true);
define('IN_ICYPHOENIX', true);
if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './');
if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
include(IP_ROOT_PATH . 'common.' . PHP_EXT);
if( $config['allow_rss'] != 1 )
{
echo 'RSS has been disabled for this site';
return;
}
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
// End session management
include_once(IP_ROOT_PATH . 'includes/news.' . PHP_EXT);
header("Content-type: text/xml");
// Tell the template class which template to use.
$template->set_filenames(array('news' => 'news_200_rss_body.tpl'));
$content = new NewsModule(IP_ROOT_PATH);
$content->setVariables( array(
'L_INDEX' => $lang['Index'],
'L_CATEGORIES' => $lang['Categories'],
'L_ARCHIVES' => $lang['Archives']
)
);
$content->renderSyndication();
$content->display();
$content->clear();
?>