Small bug.
[iDB.git] / calendar.php
blob6f79ac3a3b1b8d7997518fbdd88c70fc7a1b8a9e
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-2011 iDB Support - http://idb.berlios.de/
12 Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/
14 $FileInfo: calendar.php - Last Update: 06/17/2011 SVN 676 - 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");
25 <title> <?php echo $Settings['board_name'].$idbpowertitle; ?> </title>
26 </head>
27 <body>
28 <?php
29 require($SettDir['inc'].'navbar.php');
31 if($_GET['act']==null) {
32 $_GET['act']="view"; }
33 if(!in_array($_GET['act'], $idbactcheck))
34 { $_GET['act']="view"; }
35 if($_GET['act']=="view")
36 { require($SettDir['inc'].'calendars.php'); }
37 if($_GET['act']=="create")
38 { require($SettDir['inc'].'events.php'); }
39 require($SettDir['inc'].'endpage.php'); ?>
40 </body>
41 </html>
42 <?php
43 if($_GET['act']=="view") {
44 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." Viewing Calendar",$Settings['use_gzip'],$GZipEncode['Type']); }
45 if($_GET['act']=="create") {
46 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." Making a Event",$Settings['use_gzip'],$GZipEncode['Type']); }