OSDN Git Service

Add files via upload
[idb/iDB.git.git] / event.php
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.
5
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.
10
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
13
14     $FileInfo: event.php - Last Update: 08/02/2019 SVN 905 - Author: cooldude2k $
15 */
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");
23 ?>
24 <?php $iWrappers['EXTRALINKS'] = null;
25 ob_start("idb_suboutput_handler");
26 $title_html = htmlentities($Settings['board_name'].$idbpowertitle, ENT_QUOTES, $Settings['charset']);
27 ?>
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 <title> <?php echo $Settings['board_name'].$idbpowertitle; ?> </title>
32 <?php $iWrappers['TITLETAG'] = ob_get_clean(); 
33 ob_start("idb_suboutput_handler"); ?>
34 </head>
35 <body>
36 <?php $iWrappers['BODYTAG'] = ob_get_clean();
37 ob_start("idb_suboutput_handler");
38 if($_GET['act']==null)
39 { $_GET['act']="view"; }
40 if(!in_array($_GET['act'], $idbactcheck))
41 { $_GET['act']="view"; }
42 if(!is_numeric($_GET['id']))
43 { $_GET['id']="1"; }
44 require($SettDir['inc'].'navbar.php');
45 $iWrappers['NAVBAR'] = ob_get_clean();
46 ob_start("idb_suboutput_handler");
47 if($_GET['act']=="event"||$_GET['act']==null) { 
48         $_GET['act']="view"; }
49 if($_GET['act']=="view"||$_GET['act']=="create"||
50         $_GET['act']=="makeevent"||$_POST['act']=="makeevents") {
51 require($SettDir['inc'].'events.php'); } 
52 $iWrappers['CONTENT'] = ob_get_clean();
53 ob_start("idb_suboutput_handler");
54 require($SettDir['inc'].'endpage.php');
55 $iWrappers['COPYRIGHT'] = ob_get_clean();
56 ob_start("idb_suboutput_handler");
57 if(!isset($EventName)) { $EventName = null; }
58 ?>
59 </body>
60 </html>
61 <?php 
62 $iWrappers['HTMLEND'] = ob_get_clean();
63 require($SettDir['inc'].'iwrapper.php');
64 if($_GET['act']=="view") {
65 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." ".$EventName,$Settings['use_gzip'],$GZipEncode['Type']); }
66 if($_GET['act']=="create"||$_GET['act']=="makeevent"||$_POST['act']=="makeevents") {
67 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." Making a Event",$Settings['use_gzip'],$GZipEncode['Type']); }
68 ?>