-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
34 lines (27 loc) · 838 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
<?php
session_start();
require "application/classe.php";
$_SESSION['lieu'] = "collab";
if(isset($_GET['view']))
{
$view = $_GET['view'];
}else{
$view = "dashboard";
}
ob_start();
if($view === 'dashboard'){require "view/index.php";}
if($view === 'error'){require "view/error.php";}
if($view === 'notification'){require "view/notification.php";}
if($view === 'profil'){require "view/profil.php";}
if($view === 'calendar'){require "view/calendar.php";}
if($view === 'mailbox'){require "view/mailbox.php";}
if($view === 'test'){require "view/test.php";}
if($view === 'gestion'){header("Location: view/gestion/index.php?view=dashboard");}
$content = ob_get_clean();
if($view === 'login'){
require "view/login.php";
}elseif($view === 'lockscreen'){
require "view/lockscreen.php";
}else{
require "view/default.php";
}