OSDN Git Service

Small bug fix to Low View (Lo-Fi).
[idb/iDB.git.git] / category.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-2009 Cool Dude 2k - http://idb.berlios.de/
12     Copyright 2004-2009 Game Maker 2k - http://intdb.sourceforge.net/
13
14     $FileInfo: category.php - Last Update: 5/01/2009 SVN 247 - Author: cooldude2k $
15 */
16 if(@ini_get("register_globals")) {
17 require_once('inc/misc/killglobals.php'); }
18 require('preindex.php');
19 $usefileext = $Settings['file_ext'];
20 if($ext=="noext"||$ext=="no ext"||$ext=="no+ext") { $usefileext = ""; }
21 $filewpath = $exfile['category'].$usefileext.$_SERVER['PATH_INFO'];
22 if(!is_numeric($_GET['id']))
23 { $_GET['id']="1"; }
24 ?>
25
26 <title> <?php echo $Settings['board_name'].$idbpowertitle; ?> </title>
27 </head>
28 <body>
29 <?php require($SettDir['inc'].'navbar.php');
30 if($_GET['act']==null)
31 { $_GET['act']="view"; }
32 if(!is_numeric($_GET['id']))
33 { $_GET['id']="1"; }
34 if($_GET['act']=="view")
35 { require($SettDir['inc'].'categories.php'); }
36 if($_GET['act']=="view"||$_GET['act']=="stats")
37 { require($SettDir['inc'].'stats.php'); }
38 require($SettDir['inc'].'endpage.php');
39 if(!isset($CategoryName)) { $CategoryName = null; }
40 ?>
41
42 </body>
43 </html>
44 <?php
45 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." ".$CategoryName,$Settings['use_gzip'],$GZipEncode['Type']);
46 ?>