OSDN Git Service

You can now pick what hash format to use for passwords. :P
[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 iDB Support - http://idb.berlios.de/
12     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
13
14     $FileInfo: rss.php - Last Update: 8/6/2009 SVN 293 - 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('mysql.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"||$_GET['act']=="opensearch") {
33         $_GET['feedtype'] = $_GET['act']; $Feed['Feed']="Done";
34         require($SettDir['inc'].'rssfeed.php'); }
35 ?>