Revision 270
Added by ryan almost 19 years ago
trunk/wb/modules/news/rss.php | ||
---|---|---|
23 | 23 |
|
24 | 24 |
*/ |
25 | 25 |
|
26 |
// Include WB files |
|
27 |
require_once('../../config.php'); |
|
28 |
require_once(WB_PATH.'/framework/class.frontend.php'); |
|
29 |
$database = new database(); |
|
30 |
$wb = new frontend(); |
|
31 |
$wb->get_page_details(); |
|
32 |
$wb->get_website_settings(); |
|
33 |
|
|
34 | 26 |
// Check that GET values have been supplied |
35 | 27 |
if(isset($_GET['page_id']) AND is_numeric($_GET['page_id'])) { |
36 | 28 |
$page_id = $_GET['page_id']; |
29 |
define('PAGE_ID', $page_id); |
|
37 | 30 |
} else { |
38 | 31 |
header('Location: '.WB_URL); |
39 | 32 |
} |
40 | 33 |
if(isset($_GET['group_id']) AND is_numeric($_GET['group_id'])) { |
41 | 34 |
$group_id = $_GET['group_id']; |
35 |
define('GROUP_ID', $group_id); |
|
42 | 36 |
} |
43 | 37 |
|
38 |
// Include WB files |
|
39 |
require_once('../../config.php'); |
|
40 |
require_once(WB_PATH.'/framework/class.frontend.php'); |
|
41 |
$database = new database(); |
|
42 |
$wb = new frontend(); |
|
43 |
$wb->page_id = $page_id; |
|
44 |
$wb->get_page_details(); |
|
45 |
$wb->get_website_settings(); |
|
46 |
|
|
44 | 47 |
// Sending XML header |
45 | 48 |
header("Content-type: text/xml"); |
46 | 49 |
|
Also available in: Unified diff
Fixed problems on RSS script