Initial commit

Création de tous les dossiers et fichiers avec mise à part des constantes
This commit is contained in:
Timothée Huneau 2023-04-11 19:11:26 +02:00
commit 4c71fb59b4
42 changed files with 2544 additions and 0 deletions

View 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;
}
?>