-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
50 lines (30 loc) · 816 Bytes
/
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
<?php
require_once 'core/init.php';
if(Session::exists('home')) {
echo '<p>'.Session::flash('home').'</p>';
}
$user = new User();
$userlist = new UserList(Session::get(Config::get('session/session_name')));
if($user->isLoggedIn()) {
if(isset($_GET['action'])) {
if($_GET['action'] == 'newSection') {
$request = new HTTP(Input::get('action'),$_POST);
}
}
if(isset($_POST['downloadJson'])) {
if(null !== $user->data()->id) {
$download = new Download($user->data()->id);
$download->downloadJson();
}
}
//session file upload
// HEADER
include("./components/header.php");
//BODY
include("./components/body.php");
//FOOTER
include("./components/footer.php");
} else {
Redirect::to('./logout.php');
}
?>