diff options
Diffstat (limited to 'view/password.php')
| -rw-r--r-- | view/password.php | 45 |
1 files changed, 25 insertions, 20 deletions
diff --git a/view/password.php b/view/password.php index 93cae95..6302950 100644 --- a/view/password.php +++ b/view/password.php | |||
| @@ -10,9 +10,9 @@ | |||
| 10 | // insertion du captcha | 10 | // insertion du captcha |
| 11 | ob_start(); | 11 | ob_start(); |
| 12 | ?> | 12 | ?> |
| 13 | <p>Montrez que vous n'êtes pas un robot.<br/> | 13 | <p>Montrez que vous n'êtes pas un robot.<br> |
| 14 | <label for="captcha" >Combien font <?= $captcha[0] ?> fois <?= $captcha[1] ?>?</label> | 14 | <label for="captcha" >Combien font <?= $captcha[0] ?> fois <?= $captcha[1] ?>?</label> |
| 15 | <input required type="text" id="captcha" name="captcha" autocomplete="off" size="1" /> | 15 | <input required type="text" id="captcha" name="captcha" autocomplete="off" size="1"> |
| 16 | </p> | 16 | </p> |
| 17 | <?php | 17 | <?php |
| 18 | $captchaHtml = ob_get_clean(); | 18 | $captchaHtml = ob_get_clean(); |
| @@ -23,11 +23,11 @@ ob_start(); | |||
| 23 | ?> | 23 | ?> |
| 24 | <form class="connexionFormulaire" method="post" action="index.php?page=connexion&from=<?= $_GET['from'] ?>" > | 24 | <form class="connexionFormulaire" method="post" action="index.php?page=connexion&from=<?= $_GET['from'] ?>" > |
| 25 | <label for="motdepasse" >Mot de passe:</label> | 25 | <label for="motdepasse" >Mot de passe:</label> |
| 26 | <input type="password" name="motdepasse" autofocus required > | 26 | <input id="motdepasse" type="password" name="motdepasse" autofocus required > |
| 27 | 27 | ||
| 28 | <?= $captchaHtml ?> | 28 | <?= $captchaHtml ?> |
| 29 | 29 | ||
| 30 | <input type="submit" value="Valider" > | 30 | <input type="submit" value="Valider"> |
| 31 | </form> | 31 | </form> |
| 32 | <?php | 32 | <?php |
| 33 | $formulaireConnexion = ob_get_clean(); | 33 | $formulaireConnexion = ob_get_clean(); |
| @@ -37,11 +37,11 @@ ob_start(); | |||
| 37 | ?> | 37 | ?> |
| 38 | <form class="connexionFormulaire" method="post" action="index.php" > | 38 | <form class="connexionFormulaire" method="post" action="index.php" > |
| 39 | <label for="motdepasse" >Mot de passe:</label> | 39 | <label for="motdepasse" >Mot de passe:</label> |
| 40 | <input type="password" name="motdepasse" autofocus required > | 40 | <input id="motdepasse" type="password" name="motdepasse" autofocus required> |
| 41 | 41 | ||
| 42 | <?= $captchaHtml ?> | 42 | <?= $captchaHtml ?> |
| 43 | 43 | ||
| 44 | <input type="submit" value="Valider" > | 44 | <input type="submit" value="Valider"> |
| 45 | </form> | 45 | </form> |
| 46 | <?php | 46 | <?php |
| 47 | $formulaireNouveauMDP = ob_get_clean(); | 47 | $formulaireNouveauMDP = ob_get_clean(); |
| @@ -51,14 +51,14 @@ $formulaireNouveauMDP = ob_get_clean(); | |||
| 51 | ob_start(); | 51 | ob_start(); |
| 52 | ?> | 52 | ?> |
| 53 | <form class="connexionFormulaire" method="post" action="index.php?from=<?= $_GET['from'] ?>&action=modif_mdp" > | 53 | <form class="connexionFormulaire" method="post" action="index.php?from=<?= $_GET['from'] ?>&action=modif_mdp" > |
| 54 | <label for="motdepasse" >Ancien mot de passe:</label> | 54 | <label for="ancien_motdepasse" >Ancien mot de passe:</label> |
| 55 | <input type="password" name="ancienMotdepasse" autofocus required ><br /><br /> | 55 | <input id="ancien_motdepasse" type="password" name="ancienMotdepasse" autofocus required ><br><br> |
| 56 | <label for="motdepasse" >Nouveau mot de passe:</label> | 56 | <label for="motdepasse" >Nouveau mot de passe:</label> |
| 57 | <input type="password" name="nouveauMotdepasse" required autocomplete="off" > | 57 | <input id="motdepasse" type="password" name="nouveauMotdepasse" required autocomplete="off"> |
| 58 | <br /><br /> | 58 | <br><br> |
| 59 | <input type="submit" value="Valider" > | 59 | <input type="submit" value="Valider" > |
| 60 | <a href="index.php?page=<?= $_GET['from'] ?>" > | 60 | <a href="index.php?page=<?= $_GET['from'] ?>" > |
| 61 | <input type="button" value="Annuler" /> | 61 | <input type="button" value="Annuler"> |
| 62 | </a> | 62 | </a> |
| 63 | </form> | 63 | </form> |
| 64 | <?php | 64 | <?php |
| @@ -70,17 +70,17 @@ ob_start(); | |||
| 70 | ?> | 70 | ?> |
| 71 | <!DOCTYPE html> | 71 | <!DOCTYPE html> |
| 72 | 72 | ||
| 73 | <html lang="fr" > | 73 | <html lang="fr"> |
| 74 | <head> | 74 | <head> |
| 75 | <meta charset="utf-8" /> | 75 | <meta charset="utf-8"> |
| 76 | <title><?= $title ?></title> | 76 | <title><?= $title ?></title> |
| 77 | 77 | ||
| 78 | <!-- <link rel="shortcut icon" type="image/x-icon" href="favicon.ico" /> --> | 78 | <!-- <link rel="shortcut icon" type="image/x-icon" href="favicon.ico" /> --> |
| 79 | <link rel="icon" type="image/png" href="public/mouette-logo.png" > | 79 | <link rel="icon" type="image/png" href="public/mouette-logo.png"> |
| 80 | <link rel="stylesheet" type="text/css" href="public/css/normalize.css"> | 80 | <link rel="stylesheet" type="text/css" href="public/css/normalize.css"> |
| 81 | <link rel="stylesheet" type="text/css" href="public/css/main.css" /> | 81 | <link rel="stylesheet" type="text/css" href="public/css/main.css"> |
| 82 | <script type="text/javascript" src="public/main.js" ></script> | 82 | <script src="public/main.js" ></script> |
| 83 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | 83 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 84 | </head> | 84 | </head> |
| 85 | 85 | ||
| 86 | <body> | 86 | <body> |
| @@ -105,10 +105,10 @@ $warning = '<p class="avertissement" >Rappel de sécurité<br />Vous n\'utilisez | |||
| 105 | // confirmation modification du mot de passe | 105 | // confirmation modification du mot de passe |
| 106 | ob_start(); | 106 | ob_start(); |
| 107 | ?> | 107 | ?> |
| 108 | <script type="text/javascript" >nouveauMotdepasse('<?= $_GET["from"] ?>');</script> | 108 | <script>nouveauMotdepasse('<?= $_GET["from"] ?>');</script> |
| 109 | <noscript> | 109 | <noscript> |
| 110 | <p class="avertissement" >Le mot de passe a été modifié<br /> | 110 | <p class="avertissement" >Le mot de passe a été modifié<br> |
| 111 | <a href="index.php" >Retour au site.</a><br/></p> | 111 | <a href="index.php" >Retour au site.</a><br></p> |
| 112 | </noscript> | 112 | </noscript> |
| 113 | <?php | 113 | <?php |
| 114 | $message = ob_get_clean(); | 114 | $message = ob_get_clean(); |
| @@ -116,12 +116,17 @@ $message = ob_get_clean(); | |||
| 116 | 116 | ||
| 117 | // pied de page | 117 | // pied de page |
| 118 | ob_start(); | 118 | ob_start(); |
| 119 | if(isset($_GET['page'])) // exclue la "création du mot de passe" | ||
| 120 | { | ||
| 119 | ?> | 121 | ?> |
| 120 | <p class="connexionP connexionFooter" > | 122 | <p class="connexionP connexionFooter" > |
| 121 | <a href="index.php?from=<?= $_GET['from'] ?>" > | 123 | <a href="index.php?from=<?= $_GET['from'] ?>" > |
| 122 | <button>Retour au site.</button> | 124 | <button>Retour au site.</button> |
| 123 | </a> | 125 | </a> |
| 124 | </p> | 126 | </p> |
| 127 | <?php | ||
| 128 | } | ||
| 129 | ?> | ||
| 125 | </div> | 130 | </div> |
| 126 | </body> | 131 | </body> |
| 127 | </html> | 132 | </html> |
