OSDN Git Service

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