Update killglobals.php
[iDB.git] / event.php
blobad4f754be57602fdd453055e79ee350290c97482
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: event.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['event'].$usefileext.$_SERVER['PATH_INFO'];
22 $idbactcheck = array("view", "create", "makeevent");
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 if($_GET['act']==null)
40 { $_GET['act']="view"; }
41 if(!in_array($_GET['act'], $idbactcheck))
42 { $_GET['act']="view"; }
43 if(!is_numeric($_GET['id']))
44 { $_GET['id']="1"; }
45 require($SettDir['inc'].'navbar.php');
46 $iWrappers['NAVBAR'] = ob_get_clean();
47 ob_start("idb_suboutput_handler");
48 if($_GET['act']=="event"||$_GET['act']==null) {
49 $_GET['act']="view"; }
50 if($_GET['act']=="view"||$_GET['act']=="create"||
51 $_GET['act']=="makeevent"||$_POST['act']=="makeevents") {
52 require($SettDir['inc'].'events.php'); }
53 $iWrappers['CONTENT'] = ob_get_clean();
54 ob_start("idb_suboutput_handler");
55 require($SettDir['inc'].'endpage.php');
56 $iWrappers['COPYRIGHT'] = ob_get_clean();
57 ob_start("idb_suboutput_handler");
58 if(!isset($EventName)) { $EventName = null; }
60 </body>
61 </html>
62 <?php
63 $iWrappers['HTMLEND'] = ob_get_clean();
64 require($SettDir['inc'].'iwrapper.php');
65 if($_GET['act']=="view") {
66 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." ".$EventName,$Settings['use_gzip'],$GZipEncode['Type']); }
67 if($_GET['act']=="create"||$_GET['act']=="makeevent"||$_POST['act']=="makeevents") {
68 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." Making a Event",$Settings['use_gzip'],$GZipEncode['Type']); }