OSDN Git Service

Added support for OPML.
[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-2010 iDB Support - http://idb.berlios.de/
12     Copyright 2004-2010 Game Maker 2k - http://gamemaker2k.org/
13
14     $FileInfo: rss.php - Last Update: 01/27/2010 SVN 453 - 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 $starttime = $utime + $time;
22 require_once('sql.php');
23 /*if($Settings['enable_search']=="off"||$GroupInfo['CanSearch']=="no") {
24 header("Content-Type: text/plain; charset=".$Settings['charset']); 
25 ob_clean(); echo "Sorry you can not search on this board."; 
26 gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }*/
27 if($Settings['enable_rss']=="off") {
28 header("Content-Type: text/plain; charset=".$Settings['charset']); 
29 ob_clean(); echo "Sorry RSS Feeds are not enabled for this board."; 
30 gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
31 if($_GET['act']==null) { $_GET['act'] = "rss"; }
32 if($_GET['act']=="rss"||$_GET['act']=="oldrss"||$_GET['act']=="atom"||
33         $_GET['act']=="opml"||$_GET['act']=="opensearch") {
34         $_GET['feedtype'] = $_GET['act']; $Feed['Feed']="Done";
35         require($SettDir['inc'].'rssfeed.php'); }
36 ?>