OSDN Git Service

Add files via upload
[idb/iDB.git.git] / topic.php
index 4ebb294..f5a119c 100644 (file)
--- a/topic.php
+++ b/topic.php
@@ -8,45 +8,61 @@
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     Revised BSD License for more details.
 
-    Copyright 2004-2009 Cool Dude 2k - http://idb.berlios.de/
-    Copyright 2004-2009 Game Maker 2k - http://intdb.sourceforge.net/
+    Copyright 2004-2017 iDB Support - http://idb.berlios.de/
+    Copyright 2004-2017 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: topic.php - Last Update: 5/04/2009 SVN 249 - Author: cooldude2k $
+    $FileInfo: topic.php - Last Update: 01/26/2017 SVN 810 - Author: cooldude2k $
 */
-if(@ini_get("register_globals")) {
+if(ini_get("register_globals")) {
 require_once('inc/misc/killglobals.php'); }
 $checklowview = true;
 require('preindex.php');
 $usefileext = $Settings['file_ext'];
 if($ext=="noext"||$ext=="no ext"||$ext=="no+ext") { $usefileext = ""; }
 $filewpath = $exfile['topic'].$usefileext.$_SERVER['PATH_INFO'];
+$idbactcheck = array("view", "create", "delete", "pin", "unpin", "move", "open", "close", "announce", "edit", "makereply", "editreply", "lowview");
 ?>
-
+<?php $iWrappers['EXTRALINKS'] = null;
+ob_start("idb_suboutput_handler"); ?>
 <title> <?php echo $Settings['board_name'].$idbpowertitle; ?> </title>
+<?php $iWrappers['TITLETAG'] = ob_get_clean(); 
+ob_start("idb_suboutput_handler"); ?>
 </head>
 <body>
-<?php if($_GET['act']!="lowview") {
+<?php $iWrappers['BODYTAG'] = ob_get_clean();
+ob_start("idb_suboutput_handler");
+if($_GET['act']!="lowview") {
 require($SettDir['inc'].'navbar.php'); }
+$iWrappers['NAVBAR'] = ob_get_clean();
+ob_start("idb_suboutput_handler");
+$ForumCheck = null;
 if($_GET['act']==null)
 { $_GET['act']="view"; }
+if(!in_array($_GET['act'], $idbactcheck))
+{ $_GET['act']="view"; }
 if(!is_numeric($_GET['id']))
 { $_GET['id']="1"; }
 if($_GET['act']=="view"||$_GET['act']=="create"||$_GET['act']=="delete"||
-       $_GET['act']=="pin"||$_GET['act']=="unpin"||
-       $_GET['act']=="open"||$_GET['act']=="close")
+       $_GET['act']=="pin"||$_GET['act']=="unpin"||$_GET['act']=="move"||
+       $_GET['act']=="open"||$_GET['act']=="close"||$_GET['act']=="announce")
 { require($SettDir['inc'].'replies.php'); }
 if($_GET['act']=="edit"||$_GET['act']=="makereply"||$_POST['act']=="makereplies"||
        $_GET['act']=="editreply"||$_POST['act']=="editreplies")
 { require($SettDir['inc'].'replies.php'); }
 if($_GET['act']=="lowview")
 { require($SettDir['inc'].'lowreplies.php'); }
+$iWrappers['CONTENT'] = ob_get_clean();
+ob_start("idb_suboutput_handler");
 require($SettDir['inc'].'endpage.php');
+$iWrappers['COPYRIGHT'] = ob_get_clean();
+ob_start("idb_suboutput_handler");
 if(!isset($TopicName)) { $TopicName = null; }
 ?>
-
 </body>
 </html>
 <?php 
+$iWrappers['HTMLEND'] = ob_get_clean();
+require($SettDir['inc'].'iwrapper.php');
 if($_GET['act']=="view") {
 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." ".$TopicName,$Settings['use_gzip'],$GZipEncode['Type']); } 
 if($_GET['act']=="lowview") {
@@ -67,6 +83,8 @@ if($_GET['act']=="open") {
 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." Opening a Topic",$Settings['use_gzip'],$GZipEncode['Type']); }
 if($_GET['act']=="close") {
 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." Closing a Topic",$Settings['use_gzip'],$GZipEncode['Type']); }
+if($_GET['act']=="move") {
+change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." Moving a Topic",$Settings['use_gzip'],$GZipEncode['Type']); }
 if($_GET['act']=="makereply"&&$_POST['act']=="makereplies") {
 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." Replying to ".$TopicName,$Settings['use_gzip'],$GZipEncode['Type']); }
 ?>