Update killglobals.php
[iDB.git] / calendar.php
blobdc8b841a08e1ac90210a475d167e7f44c3ec71f6
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-2023 iDB Support - https://idb.osdn.jp/support/category.php?act=view&id=1
12 Copyright 2004-2023 Game Maker 2k - https://idb.osdn.jp/support/category.php?act=view&id=2
14 $FileInfo: calendar.php - Last Update: 6/22/2023 SVN 984 - 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_html = htmlentities($Settings['board_name'].$idbpowertitle, ENT_QUOTES, $Settings['charset']);
28 <meta itemprop="title" property="og:title" content="<?php echo $title_html; ?>" />
29 <meta itemprop="sitename" property="og:site_name" content="<?php echo $title_html; ?>" />
30 <meta itemprop="title" property="twitter:title" content="<?php echo $title_html; ?>" />
31 <meta name="title" content="<?php echo $title_html; ?>" />
32 <title> <?php echo $Settings['board_name'].$idbpowertitle; ?> </title>
33 <?php $iWrappers['TITLETAG'] = ob_get_clean();
34 ob_start("idb_suboutput_handler"); ?>
35 </head>
36 <body>
37 <?php $iWrappers['BODYTAG'] = ob_get_clean();
38 ob_start("idb_suboutput_handler");
39 require($SettDir['inc'].'navbar.php');
40 $iWrappers['NAVBAR'] = ob_get_clean();
41 ob_start("idb_suboutput_handler");
42 if($_GET['act']==null) {
43 $_GET['act']="view"; }
44 if(!in_array($_GET['act'], $idbactcheck))
45 { $_GET['act']="view"; }
46 if($_GET['act']=="view")
47 { require($SettDir['inc'].'calendars.php'); }
48 if($_GET['act']=="create")
49 { require($SettDir['inc'].'events.php'); }
50 $iWrappers['CONTENT'] = ob_get_clean();
51 ob_start("idb_suboutput_handler");
52 require($SettDir['inc'].'endpage.php');
53 $iWrappers['COPYRIGHT'] = ob_get_clean();
54 ob_start("idb_suboutput_handler"); ?>
55 </body>
56 </html>
57 <?php
58 $iWrappers['HTMLEND'] = ob_get_clean();
59 require($SettDir['inc'].'iwrapper.php');
60 if($_GET['act']=="view") {
61 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." Viewing Calendar",$Settings['use_gzip'],$GZipEncode['Type']); }
62 if($_GET['act']=="create") {
63 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." Making a Event",$Settings['use_gzip'],$GZipEncode['Type']); }