Small update
[iDB.git] / category.php
blobef03c2136c323030ae42eae450fd2d0a60bd833d
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-2024 iDB Support - https://idb.osdn.jp/support/category.php?act=view&id=1
12 Copyright 2004-2024 Game Maker 2k - https://idb.osdn.jp/support/category.php?act=view&id=2
14 $FileInfo: category.php - Last Update: 8/23/2024 SVN 1023 - Author: cooldude2k $
16 if (ini_get("register_globals")) {
17 require_once('inc/misc/killglobals.php');
19 $checklowview = true;
20 require('preindex.php');
21 $usefileext = $Settings['file_ext'];
22 if ($ext == "noext" || $ext == "no ext" || $ext == "no+ext") {
23 $usefileext = "";
25 $filewpath = $exfile['category'].$usefileext.$_SERVER['PATH_INFO'];
26 if (!is_numeric($_GET['id'])) {
27 $_GET['id'] = "1";
29 $idbactcheck = array("view", "lowview", "stats");
31 <?php $iWrappers['EXTRALINKS'] = null;
32 ob_start("idb_suboutput_handler");
33 $title_html = htmlentities($Settings['board_name'].$idbpowertitle, ENT_QUOTES, $Settings['charset']);
35 <meta itemprop="title" property="og:title" content="<?php echo $title_html; ?>" />
36 <meta itemprop="sitename" property="og:site_name" content="<?php echo $title_html; ?>" />
37 <meta itemprop="title" property="twitter:title" content="<?php echo $title_html; ?>" />
38 <meta name="title" content="<?php echo $title_html; ?>" />
39 <title> <?php echo $Settings['board_name'].$idbpowertitle; ?> </title>
40 <?php $iWrappers['TITLETAG'] = ob_get_clean();
41 ob_start("idb_suboutput_handler"); ?>
42 </head>
43 <body>
44 <?php $iWrappers['BODYTAG'] = ob_get_clean();
45 ob_start("idb_suboutput_handler");
46 if ($_GET['act'] != "lowview") {
47 require($SettDir['inc'].'navbar.php');
49 $iWrappers['NAVBAR'] = ob_get_clean();
50 ob_start("idb_suboutput_handler");
51 $CatCheck = null;
52 if ($_GET['act'] == null) {
53 $_GET['act'] = "view";
55 if (!in_array($_GET['act'], $idbactcheck)) {
56 $_GET['act'] = "view";
58 if (!is_numeric($_GET['id'])) {
59 $_GET['id'] = "1";
61 if ($_GET['act'] == "view" ||
62 $_GET['act'] == "lowview") {
63 require($SettDir['inc'].'categories.php');
65 if ($_GET['act'] == "view" || $_GET['act'] == "stats") {
66 require($SettDir['inc'].'stats.php');
68 $iWrappers['CONTENT'] = ob_get_clean();
69 ob_start("idb_suboutput_handler");
70 require($SettDir['inc'].'endpage.php');
71 $iWrappers['COPYRIGHT'] = ob_get_clean();
72 ob_start("idb_suboutput_handler");
73 if (!isset($CategoryName)) {
74 $CategoryName = null;
77 </body>
78 </html>
79 <?php
80 $iWrappers['HTMLEND'] = ob_get_clean();
81 require($SettDir['inc'].'iwrapper.php');
82 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." ".$CategoryName, $Settings['use_gzip'], $GZipEncode['Type']);