OSDN Git Service

Update main.php
[idb/iDB.git.git] / category.php
index deab6b6..b08ede3 100644 (file)
@@ -8,10 +8,10 @@
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     Revised BSD License for more details.
 
-    Copyright 2004-2009 iDB Support - http://idb.berlios.de/
-    Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
+    Copyright 2004-2017 iDB Support - http://idb.berlios.de/
+    Copyright 2004-2017 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: category.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
+    $FileInfo: category.php - Last Update: 01/26/2017 SVN 810 - Author: cooldude2k $
 */
 if(ini_get("register_globals")) {
 require_once('inc/misc/killglobals.php'); }
@@ -20,32 +20,45 @@ require('preindex.php');
 $usefileext = $Settings['file_ext'];
 if($ext=="noext"||$ext=="no ext"||$ext=="no+ext") { $usefileext = ""; }
 $filewpath = $exfile['category'].$usefileext.$_SERVER['PATH_INFO'];
-if(!is_numeric($_GET['id']))
-{ $_GET['id']="1"; }
+if(!is_numeric($_GET['id'])) { $_GET['id']="1"; }
+$idbactcheck = array("view", "lowview", "stats");
 ?>
-
+<?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");
 $CatCheck = null;
 if($_GET['act']==null)
 { $_GET['act']="view"; }
-if(!is_numeric($_GET['id']))
-{ $_GET['id']="1"; }
+if(!in_array($_GET['act'], $idbactcheck))
+{ $_GET['act']="view"; }
+if(!is_numeric($_GET['id'])) { $_GET['id']="1"; }
 if($_GET['act']=="view")
 { require($SettDir['inc'].'categories.php'); }
 if($_GET['act']=="lowview")
 { require($SettDir['inc'].'lowcategories.php'); }
 if($_GET['act']=="view"||$_GET['act']=="stats")
 { require($SettDir['inc'].'stats.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($CategoryName)) { $CategoryName = null; }
 ?>
-
 </body>
 </html>
 <?php
+$iWrappers['HTMLEND'] = ob_get_clean();
+require($SettDir['inc'].'iwrapper.php');
 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." ".$CategoryName,$Settings['use_gzip'],$GZipEncode['Type']);
 ?>