OSDN Git Service

Added iWrapper (Like IPB Board Wrappers). :P
[idb/iDB.git.git] / calendar.php
index 1a30019..ca22662 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2011 iDB Support - http://idb.berlios.de/
     Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: calendar.php - Last Update: 07/21/2011 SVN 725 - Author: cooldude2k $
+    $FileInfo: calendar.php - Last Update: 07/30/2011 SVN 729 - Author: cooldude2k $
 */
 if(ini_get("register_globals")) {
 require_once('inc/misc/killglobals.php'); }
@@ -21,13 +21,18 @@ if($ext=="noext"||$ext=="no ext"||$ext=="no+ext") { $usefileext = ""; }
 $filewpath = $exfile['calendar'].$usefileext.$_SERVER['PATH_INFO'];
 $idbactcheck = array("view", "create");
 ?>
-
+<?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
+<?php $iWrappers['BODYTAG'] = ob_get_clean();
+ob_start("idb_suboutput_handler");
 require($SettDir['inc'].'navbar.php');
-
+$iWrappers['NAVBAR'] = ob_get_clean();
+ob_start("idb_suboutput_handler");
 if($_GET['act']==null) {
 $_GET['act']="view"; }
 if(!in_array($_GET['act'], $idbactcheck))
@@ -36,7 +41,16 @@ if($_GET['act']=="view")
 { require($SettDir['inc'].'calendars.php'); }
 if($_GET['act']=="create") 
 { require($SettDir['inc'].'events.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"); ?>
+</body>
+</html>
+<?php
+$iWrappers['HTMLEND'] = ob_get_clean();
+require($SettDir['inc'].'iwrapper.php');
 if($_GET['act']=="view") {
 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." Viewing Calendar",$Settings['use_gzip'],$GZipEncode['Type']); }
 if($_GET['act']=="create") {