-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
45 lines (33 loc) · 826 Bytes
/
index.php
File metadata and controls
45 lines (33 loc) · 826 Bytes
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
<!-- INDEX -->
<!-- List Menu -->
<?php require 'controller/menuController.php';
/*Model BDD */
require "model/bddModel.php";
/* Login session
* Her can test the login user if we have connetion exist we test him.
* Else we request to login.
*/
session_start();
if(isset($_SESSION['login']) && isset($_SESSION['password'])){
require 'controller/authentificationManaging/loginController.php';
}
else{
if(isset($_GET['menu'])){
if ($_GET['menu'] == "LOGIN") {
$affiche = "controller/authentificationManaging/loginController.php";
$titre = "M2L - Login";
}
else {
header('Location: ?menu=LOGIN');
}
}
else{
header('Location: ?menu=LOGIN');
}
}
/* Add Header */
require 'vue/header.php';
require $affiche;
?>
<?php require 'vue/footer.php' ?>
<!-- END ROUTEUR -->