OSDN Git Service

You can now pick what hash format to use for passwords. :P
[idb/iDB.git.git] / rss.php
diff --git a/rss.php b/rss.php
index fd177b7..4a89d4c 100644 (file)
--- a/rss.php
+++ b/rss.php
@@ -8,24 +8,28 @@
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     Revised BSD License for more details.
 
-    Copyright 2004-2007 Cool Dude 2k - http://intdb.sourceforge.net/
-    Copyright 2004-2007 Game Maker 2k - http://upload.idb.s1.jcink.com/
+    Copyright 2004-2009 iDB Support - http://idb.berlios.de/
+    Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: rss.php - Last Update: 06/07/2007 SVN 20 - Author: cooldude2k $
+    $FileInfo: rss.php - Last Update: 8/6/2009 SVN 293 - Author: cooldude2k $
 */
-@error_reporting(E_ALL ^ E_NOTICE);
 if(@ini_get("register_globals")) {
-       require_once('inc/misc/killglobals.php'); }
+require_once('inc/misc/killglobals.php'); }
+$pretime = explode(" ", microtime());
+$utime = $pretime[0];
+$time = $pretime[1];
+$starttime = $utime + $time;
 require_once('mysql.php');
-if($SettDir['inc']==null) { $SettDir['inc'] = "inc/"; }
-if($SettDir['misc']==null) { $SettDir['misc'] = "inc/misc/"; }
-if($SettDir['admin']==null) { $SettDir['admin'] = "inc/admin/"; }
-if($SettDir['mod']==null) { $SettDir['mod'] = "inc/mod/"; }
-if($SettDir['themes']==null) { $SettDir['themes'] = "themes/"; }
-if($Settings['enable_rss']==false) {
-redirect("location",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); }
+if($Settings['enable_search']=="off"||$GroupInfo['CanSearch']=="no") {
+@header("Content-Type: text/plain; charset=".$Settings['charset']); 
+ob_clean(); echo "Sorry you can not search on this board."; 
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+if($Settings['enable_rss']=="off") {
+@header("Content-Type: text/plain; charset=".$Settings['charset']); 
+ob_clean(); echo "Sorry RSS Feeds are not enabled for this board."; 
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
 if($_GET['act']==null) { $_GET['act'] = "rss"; }
-if($_GET['act']=="rss"||$_GET['act']=="atom") {
+if($_GET['act']=="rss"||$_GET['act']=="oldrss"||$_GET['act']=="atom"||$_GET['act']=="opensearch") {
        $_GET['feedtype'] = $_GET['act']; $Feed['Feed']="Done";
        require($SettDir['inc'].'rssfeed.php'); }
 ?>
\ No newline at end of file