From c66e7e7dc9ab290c79f15da223da8fc0bdecf718 Mon Sep 17 00:00:00 2001 From: SeekDaSky Date: Thu, 3 Dec 2015 10:02:40 +0100 Subject: [PATCH] correction et ajout du snipet d'authentification pour le Dashboard --- Dashboard.php | 9 +++++++-- index.php | 22 +++------------------- 2 files changed, 10 insertions(+), 21 deletions(-) diff --git a/Dashboard.php b/Dashboard.php index 9ba739c..c9170bd 100755 --- a/Dashboard.php +++ b/Dashboard.php @@ -1,4 +1,9 @@ - + @@ -38,4 +43,4 @@ - \ No newline at end of file + diff --git a/index.php b/index.php index c07c582..7feb6de 100755 --- a/index.php +++ b/index.php @@ -29,30 +29,14 @@ if(Authentification::checkUser(0)){ - + - "; - - /* AFFICHAGE D'ERREURS */ - if( $postVariablesAreSet ){ // si formulaire soumis - if( !$postVariablesNEmpty ) - echo 'Certains champs requis sont vides.'; - elseif( !$usernameCheck ) - echo 'Nom d\'utilisateur incorrect. (3 car. min)'; - elseif( !$mailCheck ) - echo 'Adresse mail incorrecte.'; - elseif( !$passwordCheck ) - echo 'Mot de passe incorrect. (8 car. min)'; - elseif( connected($user) ) - echo 'Vous êtes connectés.'; - } - echo ""; echo ""; echo ""; @@ -62,4 +46,4 @@ if(Authentification::checkUser(0)){ - \ No newline at end of file +