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-2017 iDB Support - http://idb.berlios.de/
12 Copyright 2004-2017 Game Maker 2k - http://gamemaker2k.org/
14 $FileInfo: event.php - Last Update: 01/26/2017 SVN 810 - 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"); ?
>
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']))
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; }
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']); }