forked from MassimoSaianiBuonarroti/GestionePermessi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
49 lines (42 loc) · 1.31 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
45
46
47
48
49
<?php
/**
* This file is part of Gestione Permessi
* @author Massimo Saiani <[email protected]>
* @copyright (C) 2024 Massimo Saiani
* @license GPL-3.0+ <https://www.gnu.org/licenses/gpl-3.0.html>
*/
?>
<!DOCTYPE html>
<html>
<title>Permessi di uscita</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/stile.css">
<link rel="stylesheet" href="css/layout.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="css/fonts.css">
<link rel="icon" type="image/x-icon" href="./immagini/favicon.ico">
<!--<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Montserrat">-->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<body>
<?php
session_start();
if (isset($_SESSION["loggato"]) && $_SESSION["loggato"] == "si")
{
if ($_SESSION["ruolo"] == "admin")
{
header("Location:pagine/frontoffice.php");
}
else
{
header("Location: pagine/indexLogout.php");
}
}
else
{
header("Location: pagine/indexLogin.php");
}
?>
</body>
</html>