OSDN Git Service

Spelling error fix.
[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-2007 Cool Dude 2k - http://intdb.sourceforge.net/
12     Copyright 2004-2007 Game Maker 2k - http://upload.idb.s1.jcink.com/
13
14     $FileInfo: rss.php - Last Update: 07/11/2007 SVN 40 - Author: cooldude2k $
15 */
16 @error_reporting(E_ALL ^ E_NOTICE);
17 if(@ini_get("register_globals")) {
18         require_once('inc/misc/killglobals.php'); }
19 require_once('mysql.php');
20 // Check to see if variables are set
21 if(!isset($SettDir['inc'])) { $SettDir['inc'] = "inc/"; }
22 if(!isset($SettDir['misc'])) { $SettDir['misc'] = "inc/misc/"; }
23 if(!isset($SettDir['admin'])) { $SettDir['admin'] = "inc/admin/"; }
24 if(!isset($SettDir['mod'])) { $SettDir['mod'] = "inc/mod/"; }
25 if(!isset($SettDir['themes'])) { $SettDir['themes'] = "themes/"; }
26 if($Settings['enable_rss']==false) {
27 redirect("location",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); }
28 if($_GET['act']==null) { $_GET['act'] = "rss"; }
29 if($_GET['act']=="rss"||$_GET['act']=="atom") {
30         $_GET['feedtype'] = $_GET['act']; $Feed['Feed']="Done";
31         require($SettDir['inc'].'rssfeed.php'); }
32 ?>