-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.php
44 lines (36 loc) · 1.13 KB
/
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
<?php
// globals
include_once('./_includes/config.php');
include_once('./_includes/functions.global.php');
include_once('./header.php');
//if there is no active session, start one
if (!isset($_SESSION)) {
session_start();
}
if (isset($_POST['newchar']) && $_POST['newchar'] != "") {require './operations/POST/newChar.php';}
?>
<div class="wsleft cell"></div>
<div class="main cell">
<div class="content">
<br />
<?php
$printresult = "";
//Trigger the new character screen
if (isset($_GET['newChar'])) {require './operations/GET/newChar.php';}
//Activate a character
else if (isset($_GET['activate']) && $_GET['activate'] != "") {require './operations/GET/activate.php';}
//View a character
else if (isset($_GET['viewChar']) && $_GET['viewChar'] != "") {require './operations/GET/viewChar.php';}
//List your characters
else {require './operations/GET/listChars.php';}
echo $printresult;
unset($printresult);
?>
<div class="row">
<div id="customForm"></div>
</div>
</div>
</div>
<div class="wsright cell"></div>
<?php
include_once('./footer.php');