OSDN Git Service

69ed677b6b2835f1680d660800fe3098658f0b59
[idb/iDB.git.git] / rss.php
1 <?php
2 /*
3     This program is free software; you can redistribute it and/or modify
4     it under the terms of the Revised BSD License.
5
6     This program is distributed in the hope that it will be useful,
7     but WITHOUT ANY WARRANTY; without even the implied warranty of
8     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
9     Revised BSD License for more details.
10
11     Copyright 2004-2009 Cool Dude 2k - http://idb.berlios.de/
12     Copyright 2004-2009 Game Maker 2k - http://intdb.sourceforge.net/
13
14     $FileInfo: rss.php - Last Update: 5/01/2009 SVN 247 - Author: cooldude2k $
15 */
16 if(@ini_get("register_globals")) {
17 require_once('inc/misc/killglobals.php'); }
18 $pretime = explode(" ", microtime());
19 $utime = $pretime[0];
20 $time = $pretime[1];
21 $_POST['starttime'] = $utime + $time;
22 require_once('mysql.php');
23 if($Settings['enable_rss']=="off") {
24 @header("Content-Type: text/plain; charset=".$Settings['charset']); 
25 ob_clean(); echo "Sorry RSS Feeds are not enabled for this board."; 
26 gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @mysql_close(); die(); }
27 if($_GET['act']==null) { $_GET['act'] = "rss"; }
28 if($_GET['act']=="rss"||$_GET['act']=="oldrss"||$_GET['act']=="atom") {
29         $_GET['feedtype'] = $_GET['act']; $Feed['Feed']="Done";
30         require($SettDir['inc'].'rssfeed.php'); }
31 ?>