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: index.php - Last Update: 8/23/2024 SVN 1023 - Author: cooldude2k $
16 if (ini_get("register_globals")) {
17 require_once('inc/misc/killglobals.php');
20 require('preindex.php');
21 $usefileext = $Settings['file_ext'];
22 if ($ext == "noext" ||
$ext == "no ext" ||
$ext == "no+ext") {
25 $filewpath = $exfile['index'].$usefileext.$_SERVER['PATH_INFO'];
26 $idbactcheck = array("view", "lowview", "stats");
28 if (isset($_GET['showcategory']) && is_numeric($_GET['showcategory'])) {
30 if ($_GET['act'] == "lowview") {
33 redirect("location", $rbasedir.url_maker($exfile['category'], $Settings['file_ext'], "act=".$showact."&id=".$_GET['showcategory'], $Settings['qstr'], $Settings['qsep'], $prexqstr['category'], $exqstr['category'], false));
35 header("Content-Type: text/plain; charset=".$Settings['charset']);
37 gzip_page($Settings['use_gzip'], $GZipEncode['Type']);
38 session_write_close();
42 if (isset($_GET['showforum']) && is_numeric($_GET['showforum'])) {
44 if ($_GET['act'] == "lowview") {
47 redirect("location", $rbasedir.url_maker($exfile['forum'], $Settings['file_ext'], "act=".$showact."&id=".$_GET['showforum'], $Settings['qstr'], $Settings['qsep'], $prexqstr['forum'], $exqstr['forum'], false));
49 header("Content-Type: text/plain; charset=".$Settings['charset']);
51 gzip_page($Settings['use_gzip'], $GZipEncode['Type']);
52 session_write_close();
56 if (isset($_GET['showtopic']) && is_numeric($_GET['showtopic'])) {
58 if ($_GET['act'] == "lowview") {
61 if (isset($_GET['showpost']) && is_numeric($_GET['showpost'])) {
62 redirect("location", $rbasedir.url_maker($exfile['topic'], $Settings['file_ext'], "act=".$showact."&id=".$_GET['showtopic']."&post=".$_GET['showpost'], $Settings['qstr'], $Settings['qsep'], $prexqstr['topic'], $exqstr['topic'], false));
64 header("Content-Type: text/plain; charset=".$Settings['charset']);
66 if (!isset($_GET['showpost'])) {
67 $_GET['showpost'] = null;
69 if (!isset($_GET['showpost']) ||
!is_numeric($_GET['showpost'])) {
70 if (!isset($_GET['showpage'])) {
71 $_GET['showpage'] = 1;
73 if (!isset($_GET['showpage']) ||
!is_numeric($_GET['showpage'])) {
74 $_GET['showpage'] = 1;
76 redirect("location", $rbasedir.url_maker($exfile['topic'], $Settings['file_ext'], "act=".$showact."&id=".$_GET['showtopic']."&page=".$_GET['showpage'], $Settings['qstr'], $Settings['qsep'], $prexqstr['topic'], $exqstr['topic'], false));
78 header("Content-Type: text/plain; charset=".$Settings['charset']);
80 gzip_page($Settings['use_gzip'], $GZipEncode['Type']);
81 session_write_close();
85 if (isset($_GET['showuser']) && is_numeric($_GET['showuser'])) {
86 redirect("location", $rbasedir.url_maker($exfile['member'], $Settings['file_ext'], "act=view&id=".$_GET['showuser'], $Settings['qstr'], $Settings['qsep'], $prexqstr['member'], $exqstr['member'], false));
88 header("Content-Type: text/plain; charset=".$Settings['charset']);
90 gzip_page($Settings['use_gzip'], $GZipEncode['Type']);
91 session_write_close();
95 if (isset($_GET['showevent']) && is_numeric($_GET['showevent'])) {
96 redirect("location", $rbasedir.url_maker($exfile['event'], $Settings['file_ext'], "act=view&id=".$_GET['showevent'], $Settings['qstr'], $Settings['qsep'], $prexqstr['event'], $exqstr['event'], false));
98 header("Content-Type: text/plain; charset=".$Settings['charset']);
100 gzip_page($Settings['use_gzip'], $GZipEncode['Type']);
101 session_write_close();
106 <?php
$iWrappers['EXTRALINKS'] = null;
107 ob_start("idb_suboutput_handler");
108 $title_html = htmlentities($Settings['board_name'].$idbpowertitle, ENT_QUOTES
, $Settings['charset']);
110 <meta itemprop
="title" property
="og:title" content
="<?php echo $title_html; ?>" />
111 <meta itemprop
="sitename" property
="og:site_name" content
="<?php echo $title_html; ?>" />
112 <meta itemprop
="title" property
="twitter:title" content
="<?php echo $title_html; ?>" />
113 <meta name
="title" content
="<?php echo $title_html; ?>" />
114 <title
> <?php
echo $Settings['board_name'].$idbpowertitle; ?
> </title
>
115 <?php
$iWrappers['TITLETAG'] = ob_get_clean();
116 ob_start("idb_suboutput_handler"); ?
>
119 <?php
$iWrappers['BODYTAG'] = ob_get_clean();
120 ob_start("idb_suboutput_handler");
121 if ($_GET['act'] != "lowview") {
122 require($SettDir['inc'].'navbar.php');
124 $iWrappers['NAVBAR'] = ob_get_clean();
125 ob_start("idb_suboutput_handler");
126 if ($_GET['act'] == null) {
127 $_GET['act'] = "view";
129 if (!in_array($_GET['act'], $idbactcheck)) {
130 $_GET['act'] = "view";
132 if ($_GET['act'] == "view" ||
133 $_GET['act'] == "lowview") {
134 require($SettDir['inc'].'forums.php');
136 if ($_GET['act'] == "view" ||
$_GET['act'] == "stats") {
137 require($SettDir['inc'].'stats.php');
139 $iWrappers['CONTENT'] = ob_get_clean();
140 ob_start("idb_suboutput_handler");
141 require($SettDir['inc'].'endpage.php');
142 $iWrappers['COPYRIGHT'] = ob_get_clean();
143 ob_start("idb_suboutput_handler");
147 <?php
$iWrappers['HTMLEND'] = ob_get_clean();
148 require($SettDir['inc'].'iwrapper.php');
149 fix_amp($Settings['use_gzip'], $GZipEncode['Type']); ?
>