Update killglobals.php
[iDB.git] / category.php
blobc78380dbed300066809f8c55fb629874b4205d6d
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-2023 iDB Support - https://idb.osdn.jp/support/category.php?act=view&id=1
12 Copyright 2004-2023 Game Maker 2k - https://idb.osdn.jp/support/category.php?act=view&id=2
14 $FileInfo: category.php - Last Update: 6/22/2023 SVN 984 - 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_html = htmlentities($Settings['board_name'].$idbpowertitle, ENT_QUOTES, $Settings['charset']);
30 <meta itemprop="title" property="og:title" content="<?php echo $title_html; ?>" />
31 <meta itemprop="sitename" property="og:site_name" content="<?php echo $title_html; ?>" />
32 <meta itemprop="title" property="twitter:title" content="<?php echo $title_html; ?>" />
33 <meta name="title" content="<?php echo $title_html; ?>" />
34 <title> <?php echo $Settings['board_name'].$idbpowertitle; ?> </title>
35 <?php $iWrappers['TITLETAG'] = ob_get_clean();
36 ob_start("idb_suboutput_handler"); ?>
37 </head>
38 <body>
39 <?php $iWrappers['BODYTAG'] = ob_get_clean();
40 ob_start("idb_suboutput_handler");
41 if($_GET['act']!="lowview") {
42 require($SettDir['inc'].'navbar.php'); }
43 $iWrappers['NAVBAR'] = ob_get_clean();
44 ob_start("idb_suboutput_handler");
45 $CatCheck = null;
46 if($_GET['act']==null)
47 { $_GET['act']="view"; }
48 if(!in_array($_GET['act'], $idbactcheck))
49 { $_GET['act']="view"; }
50 if(!is_numeric($_GET['id'])) { $_GET['id']="1"; }
51 if($_GET['act']=="view")
52 { require($SettDir['inc'].'categories.php'); }
53 if($_GET['act']=="lowview")
54 { require($SettDir['inc'].'lowcategories.php'); }
55 if($_GET['act']=="view"||$_GET['act']=="stats")
56 { require($SettDir['inc'].'stats.php'); }
57 $iWrappers['CONTENT'] = ob_get_clean();
58 ob_start("idb_suboutput_handler");
59 require($SettDir['inc'].'endpage.php');
60 $iWrappers['COPYRIGHT'] = ob_get_clean();
61 ob_start("idb_suboutput_handler");
62 if(!isset($CategoryName)) { $CategoryName = null; }
64 </body>
65 </html>
66 <?php
67 $iWrappers['HTMLEND'] = ob_get_clean();
68 require($SettDir['inc'].'iwrapper.php');
69 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." ".$CategoryName,$Settings['use_gzip'],$GZipEncode['Type']);