OSDN Git Service

Add files via upload
[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-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
13
14     $FileInfo: category.php - Last Update: 08/02/2019 SVN 905 - Author: cooldude2k $
15 */
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");
25 ?>
26 <?php $iWrappers['EXTRALINKS'] = null;
27 ob_start("idb_suboutput_handler");
28 $title_html = htmlentities($Settings['board_name'].$idbpowertitle, ENT_QUOTES, $Settings['charset']);
29 ?>
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 <title> <?php echo $Settings['board_name'].$idbpowertitle; ?> </title>
34 <?php $iWrappers['TITLETAG'] = ob_get_clean(); 
35 ob_start("idb_suboutput_handler"); ?>
36 </head>
37 <body>
38 <?php $iWrappers['BODYTAG'] = ob_get_clean();
39 ob_start("idb_suboutput_handler");
40 if($_GET['act']!="lowview") {
41 require($SettDir['inc'].'navbar.php'); }
42 $iWrappers['NAVBAR'] = ob_get_clean();
43 ob_start("idb_suboutput_handler");
44 $CatCheck = null;
45 if($_GET['act']==null)
46 { $_GET['act']="view"; }
47 if(!in_array($_GET['act'], $idbactcheck))
48 { $_GET['act']="view"; }
49 if(!is_numeric($_GET['id'])) { $_GET['id']="1"; }
50 if($_GET['act']=="view")
51 { require($SettDir['inc'].'categories.php'); }
52 if($_GET['act']=="lowview")
53 { require($SettDir['inc'].'lowcategories.php'); }
54 if($_GET['act']=="view"||$_GET['act']=="stats")
55 { require($SettDir['inc'].'stats.php'); }
56 $iWrappers['CONTENT'] = ob_get_clean();
57 ob_start("idb_suboutput_handler");
58 require($SettDir['inc'].'endpage.php');
59 $iWrappers['COPYRIGHT'] = ob_get_clean();
60 ob_start("idb_suboutput_handler");
61 if(!isset($CategoryName)) { $CategoryName = null; }
62 ?>
63 </body>
64 </html>
65 <?php
66 $iWrappers['HTMLEND'] = ob_get_clean();
67 require($SettDir['inc'].'iwrapper.php');
68 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." ".$CategoryName,$Settings['use_gzip'],$GZipEncode['Type']);
69 ?>