Initial commit
Création de tous les dossiers et fichiers avec mise à part des constantes
This commit is contained in:
commit
4c71fb59b4
42 changed files with 2544 additions and 0 deletions
23
controleurs/cConnexion.php
Normal file
23
controleurs/cConnexion.php
Normal file
|
@ -0,0 +1,23 @@
|
|||
<?php
|
||||
|
||||
$typePage = 0;
|
||||
|
||||
if(isset($_POST['motdepasse'])){
|
||||
if(crypt($_POST['motdepasse'],SEL) == HASHED_PASSWORD){
|
||||
$typePage = 1;
|
||||
$_SESSION['auth'] = true;
|
||||
}
|
||||
else{
|
||||
$typePage = -1;
|
||||
}
|
||||
}
|
||||
|
||||
if(isset($_POST['deconnexion'])){
|
||||
$_SESSION['auth'] = false;
|
||||
}
|
||||
|
||||
if($_SESSION['auth']){
|
||||
$typePage = 1;
|
||||
}
|
||||
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue