-
Notifications
You must be signed in to change notification settings - Fork 0
/
game_index.php
75 lines (70 loc) · 1.97 KB
/
game_index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<?php
// Changed to PDO 2018-12-15 by Karsten Maske
// Changes 2019-01-02 by Karsten Maske: added defines due to install script and some changes that came with it.
define('INCLUDESDIR','/includes/');
define('CONNECTDATAFILE','dbConnectData.php');
define('CONNECTDBFILE',INCLUDESDIR.CONNECTDATAFILE);
define('CONNECTFILE',INCLUDESDIR.'dbConnect.php');
session_start();
date_default_timezone_set('Europe/Berlin');
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
include "engine/redirect.php";
include "common/common_functions.php";
include "common/generator_functions.php";
include "common/player_functions.php";
//include "includes/dbConfig.php";
include "includes/dbConnect.php";
include "engine/lock.php";
// url validation
fixGameView();
// update last action
updateLastAction();
// fix location ship if empty
assignMotherShip();
?>
<html>
<!--
Open Source Browser Game ~ Space Exploration
Nomads @ 2018. | by Alphabetus
-->
<?php include "includes/head.php" ?>
<body>
<div id="topper">
<?php include "includes/topper.php"; ?>
</div>
<div id="menu">
<?php include "includes/menu.php"; ?>
</div>
<div class="resDisplay">
<?php include "includes/resDisplay.php"; ?>
</div>
<div class="display">
<?php
$view = $_GET['gameView'];
switch($view){
case 'wiki':
include "views/game/wiki.php";
break;
case 'accountSettings':
include "views/game/accountSettings.php";
break;
case 'overview':
include "views/game/overview.php";
break;
case 'navigate':
include "views/game/navigate.php";
break;
case 'galactic_market':
include "views/game/galactic_market.php";
break;
default:
print "<br><br>404 NOT FOUND";
}
?>
<br><br>
</div>
</body>
<?php include "includes/footer.php" ?>
</html>