forked from davprs/BigliettOne
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheventi_creati.php
30 lines (24 loc) · 880 Bytes
/
eventi_creati.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
<?php
require_once 'config.php';
if(isset($_COOKIE['user'])){
$templateParams["title"] = "My Events";
$templateParams["navbar"] = "eventsNav.php";
$templateParams["head"] = "head.php";
$templateParams["alert"] = "";
$templateParams["overlayMenu"] = "loggedOverlay.php";
$templateParams["createdEvent"] = $dbh->getEventsByUser($_COOKIE['user']);
} else {
$templateParams["title"] = "Login";
$templateParams["navbar"] = "minimalNavbar.php";
$templateParams["head"] = "head.php";
if(isset($_COOKIE['alert'])){
$templateParams["alert"] = $_COOKIE['alert'];
unset($_COOKIE['alert']);
} else {
$templateParams["alert"] = '';
}
$templateParams["overlayMenu"] = "notLoggedOverlay.php";
$templateParams["content"] = "template/login.php";
}
require 'template/base.php';
?>