-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathrss.php
54 lines (45 loc) · 2.13 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
/************************************************************************/
/* PHP-NUKE: Advanced Content Management System */
/* ============================================ */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* http://phpnuke.org */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
/************************************************************************
Nuke-Evolution: Advanced Content Management System
============================================
Copyright (c) 2005 by The Nuke-Evolution Team
Filename : rss.php
Author : Quake (www.php-nuke-titanium.86it.us)
Version : 2.5.0
Date : 02/05/2006 (dd-mm-yyyy)
Notes : This file loads the RSS files and prints them to screen
************************************************************************/
/*****[CHANGES]**********************************************************
-=[Base]=-
Nuke Patched v3.1.0 06/26/2005
-=[Mods]=-
RSS Improvements v3.0.0 12/07/2006
************************************************************************/
define('RSS_FEED', true);
define('NO_SENTINEL', true);
define('NO_SECURITY', true);
require_once(dirname(__FILE__) . '/mainfile.php');
include_once(NUKE_INCLUDE_DIR.'counter.php');
include_once(NUKE_RSS_DIR.'functions.php');
if(isset($feed) && !preg_match("/[\W]/i", $feed)) {
$feed = htmlentities(addslashes($feed));
if(file_exists(NUKE_RSS_DIR.$feed.'.php')) {
include_once(NUKE_RSS_DIR.$feed.'.php');
} else {
exit(_NORSS);
}
} else {
include_once(NUKE_RSS_DIR.'news.php');
}
?>