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: topic.php - Last Update: 08/02/2019 SVN 905 - Author: cooldude2k $
16 if(ini_get("register_globals")) {
17 require_once('inc/misc/killglobals.php'); }
19 require('preindex.php');
20 $usefileext = $Settings['file_ext'];
21 if($ext=="noext"||
$ext=="no ext"||
$ext=="no+ext") { $usefileext = ""; }
22 $filewpath = $exfile['topic'].$usefileext.$_SERVER['PATH_INFO'];
23 $idbactcheck = array("view", "create", "delete", "pin", "unpin", "move", "open", "close", "announce", "edit", "makereply", "editreply", "lowview");
25 <?php
$iWrappers['EXTRALINKS'] = null;
26 ob_start("idb_suboutput_handler"); ?
>
27 <title
> <?php
echo $Settings['board_name'].$idbpowertitle; ?
> </title
>
28 <?php
$iWrappers['TITLETAG'] = ob_get_clean();
29 ob_start("idb_suboutput_handler"); ?
>
32 <?php
$iWrappers['BODYTAG'] = ob_get_clean();
33 ob_start("idb_suboutput_handler");
34 if($_GET['act']!="lowview") {
35 require($SettDir['inc'].'navbar.php'); }
36 $iWrappers['NAVBAR'] = ob_get_clean();
37 ob_start("idb_suboutput_handler");
39 if($_GET['act']==null)
40 { $_GET['act']="view"; }
41 if(!in_array($_GET['act'], $idbactcheck))
42 { $_GET['act']="view"; }
43 if(!is_numeric($_GET['id']))
45 if($_GET['act']=="view"||
$_GET['act']=="create"||
$_GET['act']=="delete"||
46 $_GET['act']=="pin"||
$_GET['act']=="unpin"||
$_GET['act']=="move"||
47 $_GET['act']=="open"||
$_GET['act']=="close"||
$_GET['act']=="announce")
48 { require($SettDir['inc'].'replies.php'); }
49 if($_GET['act']=="edit"||
$_GET['act']=="makereply"||
$_POST['act']=="makereplies"||
50 $_GET['act']=="editreply"||
$_POST['act']=="editreplies")
51 { require($SettDir['inc'].'replies.php'); }
52 if($_GET['act']=="lowview")
53 { require($SettDir['inc'].'lowreplies.php'); }
54 $iWrappers['CONTENT'] = ob_get_clean();
55 ob_start("idb_suboutput_handler");
56 require($SettDir['inc'].'endpage.php');
57 $iWrappers['COPYRIGHT'] = ob_get_clean();
58 ob_start("idb_suboutput_handler");
59 if(!isset($TopicName)) { $TopicName = null; }
64 $iWrappers['HTMLEND'] = ob_get_clean();
65 require($SettDir['inc'].'iwrapper.php');
66 if($_GET['act']=="view") {
67 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." ".$TopicName,$Settings['use_gzip'],$GZipEncode['Type']); }
68 if($_GET['act']=="lowview") {
69 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." ".$TopicName,$Settings['use_gzip'],$GZipEncode['Type']); }
70 if($_GET['act']=="create") {
71 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." Replying to ".$TopicName,$Settings['use_gzip'],$GZipEncode['Type']); }
72 if($_GET['act']=="delete") {
73 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." Deleting a Post",$Settings['use_gzip'],$GZipEncode['Type']); }
74 if($_GET['act']=="edit") {
75 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." Editing a Post",$Settings['use_gzip'],$GZipEncode['Type']); }
76 if($_GET['act']=="editreply"&&$_POST['act']=="editreplies") {
77 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." Editing a Post",$Settings['use_gzip'],$GZipEncode['Type']); }
78 if($_GET['act']=="pin") {
79 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." Pinning a Topic",$Settings['use_gzip'],$GZipEncode['Type']); }
80 if($_GET['act']=="unpin") {
81 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." Unpinning a Topic",$Settings['use_gzip'],$GZipEncode['Type']); }
82 if($_GET['act']=="open") {
83 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." Opening a Topic",$Settings['use_gzip'],$GZipEncode['Type']); }
84 if($_GET['act']=="close") {
85 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." Closing a Topic",$Settings['use_gzip'],$GZipEncode['Type']); }
86 if($_GET['act']=="move") {
87 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." Moving a Topic",$Settings['use_gzip'],$GZipEncode['Type']); }
88 if($_GET['act']=="makereply"&&$_POST['act']=="makereplies") {
89 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." Replying to ".$TopicName,$Settings['use_gzip'],$GZipEncode['Type']); }