OSDN Git Service

Another small update to apache like request logger.
[idb/iDB.git.git] / subforum.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-2011 iDB Support - http://idb.berlios.de/
12     Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/
13
14     $FileInfo: subforum.php - Last Update: 06/14/2011 SVN 672 - Author: cooldude2k $
15 */
16 if(ini_get("register_globals")) {
17 require_once('inc/misc/killglobals.php'); }
18 $checklowview = true;
19 require('preindex.php');
20 $usefileext = $Settings['file_ext'];
21 if($ext=="noext"||$ext=="no ext"||$ext=="no+ext") { $usefileext = ""; }
22 $filewpath = $exfile['subforum'].$usefileext.$_SERVER['PATH_INFO'];
23 if(!is_numeric($_GET['id'])) { $_GET['id']="1"; }
24 if($Settings['enable_rss']=="on") {
25 ?>
26
27 <link rel="alternate" type="application/xml" title="SubForum Topics RSS 1.0 Feed" href="<?php echo url_maker($exfile['rss'],$Settings['rss_ext'],"act=rss&id=".$_GET['id'],$Settings['qstr'],$Settings['qsep'],$prexqstr['rss'],$exqstr['rss']); ?>" />
28 <link rel="alternate" type="application/rss+xml" title="SubForum Topics RSS 2.0 Feed" href="<?php echo url_maker($exfile['rss'],$Settings['rss_ext'],"act=rss&id=".$_GET['id'],$Settings['qstr'],$Settings['qsep'],$prexqstr['rss'],$exqstr['rss']); ?>" />
29 <link rel="alternate" type="application/atom+xml" title="SubForum Topics Atom Feed" href="<?php echo url_maker($exfile['rss'],$Settings['rss_ext'],"act=atom&id=".$_GET['id'],$Settings['qstr'],$Settings['qsep'],$prexqstr['rss'],$exqstr['rss']); ?>" />
30 <?php } ?>
31 <title> <?php echo $Settings['board_name'].$idbpowertitle; ?> </title>
32 </head>
33 <body>
34 <?php if($_GET['act']!="lowview") {
35 require($SettDir['inc'].'navbar.php'); }
36 $ForumCheck = null;
37 if($_GET['act']==null)
38 { $_GET['act']="view"; }
39 if(!is_numeric($_GET['id'])) { $_GET['id']="1"; }
40 if($_GET['act']=="view")
41 { require($SettDir['inc'].'subforums.php'); }
42 if($_GET['act']=="lowview")
43 { require($SettDir['inc'].'lowsubforums.php'); }
44 if($_GET['act']=="oldrss"||$_GET['act']=="rss"||$_GET['act']=="atom") {
45 redirect("location",$rbasedir.url_maker($exfile['rss'],$Settings['file_ext'],"act=".$_GET['act']."&id=".$_GET['id'],$Settings['qstr'],$Settings['qsep'],$prexqstr['rss'],$exqstr['rss'],FALSE));
46 ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302;
47 gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
48 require($SettDir['inc'].'endpage.php');
49 if(!isset($ForumName)) { $ForumName = null; }
50 ?>
51
52 </body>
53 </html>
54 <?php change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." ".$ForumName,$Settings['use_gzip'],$GZipEncode['Type']); ?>