Small update
[iDB.git] / category.php
blobc25c1eb7a3eee53adf8bc525f7d2e8756263ae2a
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-2019 iDB Support - https://idb.osdn.jp/support/category.php?act=view&id=1
12 Copyright 2004-2019 Game Maker 2k - https://idb.osdn.jp/support/category.php?act=view&id=2
14 $FileInfo: category.php - Last Update: 08/02/2019 SVN 905 - 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");
26 <?php $iWrappers['EXTRALINKS'] = null;
27 ob_start("idb_suboutput_handler"); ?>
28 <title> <?php echo $Settings['board_name'].$idbpowertitle; ?> </title>
29 <?php $iWrappers['TITLETAG'] = ob_get_clean();
30 ob_start("idb_suboutput_handler"); ?>
31 </head>
32 <body>
33 <?php $iWrappers['BODYTAG'] = ob_get_clean();
34 ob_start("idb_suboutput_handler");
35 if($_GET['act']!="lowview") {
36 require($SettDir['inc'].'navbar.php'); }
37 $iWrappers['NAVBAR'] = ob_get_clean();
38 ob_start("idb_suboutput_handler");
39 $CatCheck = null;
40 if($_GET['act']==null)
41 { $_GET['act']="view"; }
42 if(!in_array($_GET['act'], $idbactcheck))
43 { $_GET['act']="view"; }
44 if(!is_numeric($_GET['id'])) { $_GET['id']="1"; }
45 if($_GET['act']=="view")
46 { require($SettDir['inc'].'categories.php'); }
47 if($_GET['act']=="lowview")
48 { require($SettDir['inc'].'lowcategories.php'); }
49 if($_GET['act']=="view"||$_GET['act']=="stats")
50 { require($SettDir['inc'].'stats.php'); }
51 $iWrappers['CONTENT'] = ob_get_clean();
52 ob_start("idb_suboutput_handler");
53 require($SettDir['inc'].'endpage.php');
54 $iWrappers['COPYRIGHT'] = ob_get_clean();
55 ob_start("idb_suboutput_handler");
56 if(!isset($CategoryName)) { $CategoryName = null; }
58 </body>
59 </html>
60 <?php
61 $iWrappers['HTMLEND'] = ob_get_clean();
62 require($SettDir['inc'].'iwrapper.php');
63 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." ".$CategoryName,$Settings['use_gzip'],$GZipEncode['Type']);