Small bug fix. :o
[iDB.git] / subcategory.php
blob2dd7a12a6a2d4dba2e5cdb7c26ef92c8bc622c07
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.
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-2011 iDB Support - http://idb.berlios.de/
12 Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/
14 $FileInfo: subcategory.php - Last Update: 07/21/2011 SVN 725 - Author: cooldude2k $
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['category'].$usefileext.$_SERVER['PATH_INFO'];
23 if(!is_numeric($_GET['id'])) { $_GET['id']="1"; }
24 $idbactcheck = array("view", "lowview", "stats");
27 <title> <?php echo $Settings['board_name'].$idbpowertitle; ?> </title>
28 </head>
29 <body>
30 <?php if($_GET['act']!="lowview") {
31 require($SettDir['inc'].'navbar.php'); }
32 $CatCheck = null;
33 if($_GET['act']==null)
34 { $_GET['act']="view"; }
35 if(!in_array($_GET['act'], $idbactcheck))
36 { $_GET['act']="view"; }
37 if(!is_numeric($_GET['id'])) { $_GET['id']="1"; }
38 if($_GET['act']=="view")
39 { require($SettDir['inc'].'subcategories.php'); }
40 if($_GET['act']=="lowview")
41 { require($SettDir['inc'].'lowsubcategories.php'); }
42 if($_GET['act']=="view"||$_GET['act']=="stats")
43 { require($SettDir['inc'].'stats.php'); }
44 require($SettDir['inc'].'endpage.php');
45 if(!isset($CategoryName)) { $CategoryName = null; }
46 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." ".$CategoryName,$Settings['use_gzip'],$GZipEncode['Type']);