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