3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the Revised BSD License.
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.
11 Copyright 2004-2010 iDB Support - http://idb.berlios.de/
12 Copyright 2004-2010 Game Maker 2k - http://gamemaker2k.org/
14 $FileInfo: index.php - Last Update: 09/06/2010 SVN 578 - Author: cooldude2k $
16 if(ini_get("register_globals")) {
17 require_once('inc/misc/killglobals.php'); }
19 require('preindex.php');
20 $usefileext = $Settings['file_ext'];
21 if($ext=="noext"||
$ext=="no ext"||
$ext=="no+ext") { $usefileext = ""; }
22 $filewpath = $exfile['index'].$usefileext.$_SERVER['PATH_INFO'];
24 if(isset($_GET['showcategory'])&&is_numeric($_GET['showcategory'])) {
26 if($_GET['act']=="lowview") { $showact = "lowview"; }
27 redirect("location",$rbasedir.url_maker($exfile['category'],$Settings['file_ext'],"act=".$showact."&id=".$_GET['showcategory'],$Settings['qstr'],$Settings['qsep'],$prexqstr['category'],$exqstr['category'],FALSE));
28 ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
29 gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
31 if(isset($_GET['showforum'])&&is_numeric($_GET['showforum'])) {
33 if($_GET['act']=="lowview") { $showact = "lowview"; }
34 redirect("location",$rbasedir.url_maker($exfile['forum'],$Settings['file_ext'],"act=".$showact."&id=".$_GET['showforum'],$Settings['qstr'],$Settings['qsep'],$prexqstr['forum'],$exqstr['forum'],FALSE));
35 ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
36 gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
38 if(isset($_GET['showtopic'])&&is_numeric($_GET['showtopic'])) {
40 if($_GET['act']=="lowview") { $showact = "lowview"; }
41 if(isset($_GET['showpost'])&&is_numeric($_GET['showpost'])) {
42 redirect("location",$rbasedir.url_maker($exfile['topic'],$Settings['file_ext'],"act=".$showact."&id=".$_GET['showtopic']."&post=".$_GET['showpost'],$Settings['qstr'],$Settings['qsep'],$prexqstr['topic'],$exqstr['topic'],FALSE));
43 ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); }
44 if(!isset($_GET['showpost'])) { $_GET['showpost'] = null; }
45 if(!isset($_GET['showpost'])||
!is_numeric($_GET['showpost'])) {
46 if(!isset($_GET['showpage'])) { $_GET['showpage'] = 1; }
47 if(!isset($_GET['showpage'])||
!is_numeric($_GET['showpage'])) { $_GET['showpage'] = 1; }
48 redirect("location",$rbasedir.url_maker($exfile['topic'],$Settings['file_ext'],"act=".$showact."&id=".$_GET['showtopic']."&page=".$_GET['showpage'],$Settings['qstr'],$Settings['qsep'],$prexqstr['topic'],$exqstr['topic'],FALSE));
49 ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); }
50 gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
52 if(isset($_GET['showuser'])&&is_numeric($_GET['showuser'])) {
53 redirect("location",$rbasedir.url_maker($exfile['member'],$Settings['file_ext'],"act=view&id=".$_GET['showuser'],$Settings['qstr'],$Settings['qsep'],$prexqstr['member'],$exqstr['member'],FALSE));
54 ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
55 gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
57 if(isset($_GET['showevent'])&&is_numeric($_GET['showevent'])) {
58 redirect("location",$rbasedir.url_maker($exfile['event'],$Settings['file_ext'],"act=view&id=".$_GET['showevent'],$Settings['qstr'],$Settings['qsep'],$prexqstr['event'],$exqstr['event'],FALSE));
59 ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
60 gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
63 <title
> <?php
echo $Settings['board_name'].$idbpowertitle; ?
> </title
>
66 <?php
if($_GET['act']!="lowview") {
67 require($SettDir['inc'].'navbar.php'); }
69 if($_GET['act']==null)
70 { $_GET['act']="view"; }
71 if($_GET['act']=="view")
72 { require($SettDir['inc'].'forums.php'); }
73 if($_GET['act']=="lowview")
74 { require($SettDir['inc'].'lowforums.php'); }
75 if($_GET['act']=="view"||
$_GET['act']=="stats")
76 { require($SettDir['inc'].'stats.php'); }
77 require($SettDir['inc'].'endpage.php');
81 <?php
fix_amp($Settings['use_gzip'],$GZipEncode['Type']); ?
>