Another small fix to version number.
[iDB.git] / event.php
blob6ad27dfa7cae7c1e620cfe0e9c2a54af30c1b2f3
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-2009 iDB Support - http://idb.berlios.de/
12 Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
14 $FileInfo: event.php - Last Update: 11/23/2009 SVN 357 - 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'];
24 <title> <?php echo $Settings['board_name'].$idbpowertitle; ?> </title>
25 </head>
26 <body>
27 <?php if($_GET['act']==null)
28 { $_GET['act']="view"; }
29 if(!is_numeric($_GET['id']))
30 { $_GET['id']="1"; }
31 require($SettDir['inc'].'navbar.php');
32 if($_GET['act']=="event"||$_GET['act']==null) {
33 $_GET['act']="view"; }
34 if($_GET['act']=="view"||$_GET['act']=="create"||
35 $_GET['act']=="makeevent"||$_POST['act']=="makeevents") {
36 require($SettDir['inc'].'events.php'); }
37 require($SettDir['inc'].'endpage.php');
38 if(!isset($EventName)) { $EventName = null; }
41 </body>
42 </html>
43 <?php
44 if($_GET['act']=="view") {
45 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." ".$EventName,$Settings['use_gzip'],$GZipEncode['Type']); }
46 if($_GET['act']=="create"||$_GET['act']=="makeevent"||$_POST['act']=="makeevents") {
47 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." Making a Event",$Settings['use_gzip'],$GZipEncode['Type']); }