OSDN Git Service

Fixed some more runtime errors. (PHP Notice errors)
[idb/iDB.git.git] / subcategory.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: subcategory.php - Last Update: 06/07/2007 SVN 20 - Author: cooldude2k $
15 */
16 require('preindex.php');
17 $usefileext = $Settings['file_ext'];
18 if($ext=="noext"||$ext=="no ext"||$ext=="no+ext") { $usefileext = ""; }
19 $filewpath = $exfile['category'].$usefileext.$_SERVER['PATH_INFO'];
20 if(!is_numeric($_GET['id']))
21 { $_GET['id']="1"; }
22 ?>
23
24 <title> <?php echo $Settings['board_name'].$idbpowertitle; ?> </title>
25 </head>
26 <body>
27 <?php require($SettDir['inc'].'navbar.php');
28 if($_GET['act']==null)
29 { $_GET['act']="view"; }
30 if(!is_numeric($_GET['id']))
31 { $_GET['id']="1"; }
32 if($_GET['act']=="view")
33 { require($SettDir['inc'].'subcategories.php'); }
34 require($SettDir['inc'].'endpage.php');
35 if(!isset($CategoryName)) { $CategoryName = null; }
36 ?>
37
38 </body>
39 </html>
40 <?php
41 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." Viewing SubCategory ".$CategoryName,$Settings['use_gzip'],$GZipEncode['Type']);
42 ?>