Small update
[iDB.git] / calendar.php
blob1838d4087c7ad8ed8b3c5237a779d360e24187d2
1 <?php
2 /*
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: calendar.php - Last Update: 08/02/2019 SVN 905 - Author: cooldude2k $
16 if(ini_get("register_globals")) {
17 require_once('inc/misc/killglobals.php'); }
18 require('preindex.php');
19 $usefileext = $Settings['file_ext'];
20 if($ext=="noext"||$ext=="no ext"||$ext=="no+ext") { $usefileext = ""; }
21 $filewpath = $exfile['calendar'].$usefileext.$_SERVER['PATH_INFO'];
22 $idbactcheck = array("view", "create");
24 <?php $iWrappers['EXTRALINKS'] = null;
25 ob_start("idb_suboutput_handler"); ?>
26 <title> <?php echo $Settings['board_name'].$idbpowertitle; ?> </title>
27 <?php $iWrappers['TITLETAG'] = ob_get_clean();
28 ob_start("idb_suboutput_handler"); ?>
29 </head>
30 <body>
31 <?php $iWrappers['BODYTAG'] = ob_get_clean();
32 ob_start("idb_suboutput_handler");
33 require($SettDir['inc'].'navbar.php');
34 $iWrappers['NAVBAR'] = ob_get_clean();
35 ob_start("idb_suboutput_handler");
36 if($_GET['act']==null) {
37 $_GET['act']="view"; }
38 if(!in_array($_GET['act'], $idbactcheck))
39 { $_GET['act']="view"; }
40 if($_GET['act']=="view")
41 { require($SettDir['inc'].'calendars.php'); }
42 if($_GET['act']=="create")
43 { require($SettDir['inc'].'events.php'); }
44 $iWrappers['CONTENT'] = ob_get_clean();
45 ob_start("idb_suboutput_handler");
46 require($SettDir['inc'].'endpage.php');
47 $iWrappers['COPYRIGHT'] = ob_get_clean();
48 ob_start("idb_suboutput_handler"); ?>
49 </body>
50 </html>
51 <?php
52 $iWrappers['HTMLEND'] = ob_get_clean();
53 require($SettDir['inc'].'iwrapper.php');
54 if($_GET['act']=="view") {
55 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." Viewing Calendar",$Settings['use_gzip'],$GZipEncode['Type']); }
56 if($_GET['act']=="create") {
57 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." Making a Event",$Settings['use_gzip'],$GZipEncode['Type']); }