forked from davprs/BigliettOne
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcrea_evento.php
32 lines (24 loc) · 872 Bytes
/
crea_evento.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
<?php
require_once 'config.php';
if(isset($_COOKIE["user"])){
$templateParams["title"] = "Crea Evento";
$templateParams["navbar"] = "minimalNavbar.php";
$templateParams["head"] = "head.php";
$templateParams["alert"] = "";
$templateParams["content"] = "template/crea_evento.php";
$templateParams["overlayMenu"] = "loggedOverlay.php";
} 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';
?>