-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
77 lines (63 loc) · 1.65 KB
/
index.php
File metadata and controls
77 lines (63 loc) · 1.65 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<?php
include_once('modele/core/connexion_sql.php');
require_once('controleur/core/cas.php');
include_once ('config.php');
session_start();
if ( isset($_GET['ticket']) AND !isset($_SESSION['user']))
{
include('controleur/core/login.php');
}
if ( isset($_GET['section']) AND $_GET['section'] == 'login')
{
if(isset($_SESSION['user']))
{
header("Location: ./" );
}
else
{
include('controleur/core/login.php');
}
}
if (!isset($_SESSION['user']))
{
include_once('controleur/core/index.php');
}
else
{
//Tests d'affichage de page
if ( isset($_GET['section']) AND $_GET['section'] == 'test')
{
include_once('controleur/core/test.php');
}
if ( isset($_GET['section']) AND $_GET['section'] == 'admin')
{
include_once('controleur/admin/admin.php');
}
if ( isset($_GET['section']) AND $_GET['section'] == 'profil')
{
include_once('controleur/user/profil.php');
}
if ( isset($_GET['section']) AND $_GET['section'] == 'admin_ajout'){
include_once('controleur/admin/ajoutcup.php');
}
if ( isset($_GET['section']) AND $_GET['section'] == 'logout')
{
include_once('controleur/core/logout.php');
}
if ( isset($_GET['section']) AND $_GET['section'] == 'cup')
{
include_once('controleur/cup/cup.php');
}
if ( isset($_GET['section']) AND $_GET['section'] == 'collection')
{
include_once('controleur/core/collection.php');
}
if ( isset($_GET['section']) AND $_GET['section'] == 'offres')
{
include_once('controleur/core/offres.php');
}
if ( !isset($_GET['section']) OR $_GET['section'] == 'accueil')
{
include_once('controleur/core/accueil.php');
}
}