-
Notifications
You must be signed in to change notification settings - Fork 8
/
homeIn.php
45 lines (38 loc) · 1.1 KB
/
homeIn.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
<?php
require_once 'utils/functions.php';
require_once 'classes/User.php';
require_once 'classes/Location.php';
require_once 'classes/LocationTableGateway.php';
require_once 'classes/Event.php';
require_once 'classes/EventTableGateway.php';
require_once 'classes/Connection.php';
$connection = Connection::getInstance();
$gateway1 = new LocationTableGateway($connection);
$gateway2 = new EventTableGateway($connection);
$statement1 = $gateway1->getLocations();
$statement2 = $gateway2->getEvents();
start_session();
if (!is_logged_in()) {
header("Location: login_form.php");
}
$user = $_SESSION['user'];
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<?php require 'utils/styles.php'; ?>
<?php require 'utils/scripts.php'; ?>
</head>
<body>
<?php require 'utils/header.php'; ?>
<?php require 'utils/toolbar.php'; ?>
<?php
if (isset($message)) {
echo '<p>'.$message.'</p>';
}
?>
<?php require 'utils/footer.php'; ?>
</body>
</html>