Skip to content
Extraits de code Groupes Projets
Valider a7fb5efc rédigé par Tanguy CHARLES's avatar Tanguy CHARLES
Parcourir les fichiers

fix espace_perso.php?modal=chgtMdp

parent 50195a03
Branches
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -55,6 +55,7 @@ if (isset($_POST['connexion'])&&isset($_POST['page'])&&isset($_POST['pseudo']) & ...@@ -55,6 +55,7 @@ if (isset($_POST['connexion'])&&isset($_POST['page'])&&isset($_POST['pseudo']) &
$_SESSION["inscriptionHidden"] = true; $_SESSION["inscriptionHidden"] = true;
$_SESSION["connexionHidden"] = true; $_SESSION["connexionHidden"] = true;
$_SESSION["ok_mdp"] = 1; // mdp valide, pas d'erreur de mdp $_SESSION["ok_mdp"] = 1; // mdp valide, pas d'erreur de mdp
} }
else { // erreur de connexion else { // erreur de connexion
......
...@@ -17,19 +17,14 @@ function check_mdp(input) { ...@@ -17,19 +17,14 @@ function check_mdp(input) {
*/ */
function fenetreModalFermee(fenetreModal) function fenetreModalFermee(fenetreModal)
{ {
//console.log("JS: modalFermee appelée");
var modal = ""; var modal = "";
if (fenetreModal == 1) { if (fenetreModal == 1) {
modal = "inscription"; modal = "inscription";
//console.log("modal = inscription");
} }
if (fenetreModal == 2) { if (fenetreModal == 2) {
modal = "connexion"; modal = "connexion";
//console.log("modal = connexion");
} }
document.getElementById('logoPhp').setAttribute('href', 'index.php?modal=' + modal); document.getElementById('logoPhp').setAttribute('href', 'index.php?modal=' + modal);
document.getElementById('indexPhp').setAttribute('href', 'index.php?modal=' + modal); document.getElementById('indexPhp').setAttribute('href', 'index.php?modal=' + modal);
document.getElementById('imageRandomPhp').setAttribute('href', 'image_alea.php?modal=' + modal); document.getElementById('imageRandomPhp').setAttribute('href', 'image_alea.php?modal=' + modal);
...@@ -37,9 +32,7 @@ function fenetreModalFermee(fenetreModal) ...@@ -37,9 +32,7 @@ function fenetreModalFermee(fenetreModal)
if (fenetreModal == 3) { if (fenetreModal == 3) {
modal = "chgtMdp"; modal = "chgtMdp";
document.getElementById('logoPhp').setAttribute('href', 'espace_perso.php?modal=' + modal); console.log("choupinette");
document.getElementById('espacePersoPhp').setAttribute('href', 'espace_perso.php?modal=' + modal);
} }
}; };
\ No newline at end of file
...@@ -300,9 +300,9 @@ function fenetreModalChgtMdp() { ...@@ -300,9 +300,9 @@ function fenetreModalChgtMdp() {
'<div class="alert alert-danger"> '<div class="alert alert-danger">
<span class="invalid_submit">'; <span class="invalid_submit">';
if ($ok_mdp == 0) if ($ok_mdp == 0)
echo '<p>Vos mots de passe doivent être identiques !</p>'; echo '- Vos mots de passe doivent être identiques ! <br>';
if ($ok_mdp == -1) if ($ok_mdp == -1)
echo '<p>Votre mot de passe actuel est erroné !</p>'; echo '- Votre mot de passe actuel est erroné ! <br>';
echo echo
'</span> '</span>
</div>'; </div>';
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter