-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrss.php
35 lines (33 loc) · 1.09 KB
/
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
<?php
/*-------------------------------------------------------+
| AneCMS
| Copyright (C) 2010
| http://anecms.com
+--------------------------------------------------------+
| Filename: rss.php
| Author: Gonçalo Margalho
+--------------------------------------------------------+
| Removal of this copyright header is strictly
| prohibited without written permission from
| Gonçalo Margalho.
+--------------------------------------------------------*/
define('ANECMS', true);
define('RSS', true);
include './system/pages/essential.php';
include './class/rsswriter.class.php';
if(isset($_GET['module'])) {
$module = str_replace("../", '', $_GET['module']);
if(file_exists('./modules/'.$module.'/rss.php'))
include './modules/'.$module.'/rss.php';
else {
$tpl->assign('typeerror', $lang['err_'.$_GET['t'].'']);
$tpl->assign('descrerror', $lang['derr_'.$_GET['t'].'']);
$tpl->burn('error1', 'tpl');
}
}
else {
$tpl->assign('typeerror', $lang['err_'.$_GET['t'].'']);
$tpl->assign('descrerror', $lang['derr_'.$_GET['t'].'']);
$tpl->burn('error1', 'tpl');
}
?>