-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
57 lines (54 loc) · 1.34 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
50
51
52
53
54
55
56
57
<?php
include "modele/Membre.php";
include "modele/createur.php";
include "modele/spot.php";
include "modele/SessionSurf.php";
include "template.php";
session_start();
/*header('Cache-Control: no-cache, must-revalidate');
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Content-type: application/json');*/
if (isset($_REQUEST['choix'])) {
switch ($_REQUEST['choix']) {
case 'session-inscription':
require_once 'participe.php';
$participe_form = new Participe_Form($_REQUEST);
$participe_form->sendRequest();
break;
case 'je_propose':
require_once 'propose.php';
$propose_form = new Propose_Form($_REQUEST);
$propose_form->sendRequest();
break;
case 'connection':
require_once 'auth.php';
$auth_form = new Auth_Form($_REQUEST);
$auth_form->sendRequest();
break;
case 'deconnection':
require_once 'auth.php';
deconnect();
break;
case 'inscription':
require_once 'inscription.php';
$insc_form = new Inscription_Form($_REQUEST);
$insc_form->sendRequest();
break;
default:
;
}
}
else
{
ecrireHead();
ecrireSlider();
ecrireNav();
ecrireJeChercheSection();
ecrireJeProposeSection();
// section CV
$tabCreateur = Createur::getCreateurArray();
ecrireCreateurs($tabCreateur);
// fin section CV
ecrireFooter();
}
?>