diff options
| author | polo <ordipolo@gmx.fr> | 2021-04-20 21:46:33 +0200 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2021-04-20 21:46:33 +0200 |
| commit | 87798e5554eb0330cd2de255e5034f0472d410a4 (patch) | |
| tree | acd9e26a7d912c7575cb6dd1c7b42cc3e9f52993 /view/connexion.php | |
| download | melaine-87798e5554eb0330cd2de255e5034f0472d410a4.tar.gz melaine-87798e5554eb0330cd2de255e5034f0472d410a4.tar.bz2 melaine-87798e5554eb0330cd2de255e5034f0472d410a4.zip | |
mot de passe
Diffstat (limited to 'view/connexion.php')
| -rw-r--r-- | view/connexion.php | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/view/connexion.php b/view/connexion.php new file mode 100644 index 0000000..2187ecf --- /dev/null +++ b/view/connexion.php | |||
| @@ -0,0 +1,62 @@ | |||
| 1 | <?php | ||
| 2 | // view/connexion.php | ||
| 3 | // | ||
| 4 | // ce fichier contient le HTML de deux pages du site: | ||
| 5 | // - connexion au mode admin | ||
| 6 | // - changement de mot de passe | ||
| 7 | |||
| 8 | // formulaire connexion | ||
| 9 | ob_start(); | ||
| 10 | ?> | ||
| 11 | <form class="connexionFormulaire" method="post" action="index.php?page=connexion&from=<?= $_GET['from'] ?>" > | ||
| 12 | <label for="motdepasse" >Mot de passe:</label> | ||
| 13 | <input type="password" name="motdepasse" autofocus required > | ||
| 14 | <input type="submit" value="Valider" > | ||
| 15 | </form> | ||
| 16 | <?php | ||
| 17 | $formulaireConnexion = ob_get_clean(); | ||
| 18 | |||
| 19 | // formulaire changement de mot de passe | ||
| 20 | // vérification de l'ancien et choix du nouveau à taper deux fois dont une à l'aveugle | ||
| 21 | ob_start(); | ||
| 22 | ?> | ||
| 23 | |||
| 24 | <?php | ||
| 25 | $formulaireNouveauMDP = ob_get_clean(); | ||
| 26 | |||
| 27 | // en-tête | ||
| 28 | ob_start(); | ||
| 29 | ?> | ||
| 30 | <!DOCTYPE html> | ||
| 31 | |||
| 32 | <html lang="fr" > | ||
| 33 | <head> | ||
| 34 | <meta charset="utf-8" /> | ||
| 35 | <title><?= $title ?></title> | ||
| 36 | |||
| 37 | <!-- <link rel="shortcut icon" type="image/x-icon" href="favicon.ico" /> --> | ||
| 38 | <link rel="icon" type="image/png" href="public/mouette-logo.png" > | ||
| 39 | <link rel="stylesheet" type="text/css" href="public/normalize.css"> | ||
| 40 | <link rel="stylesheet" type="text/css" href="public/accueil.css" /> | ||
| 41 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
| 42 | </head> | ||
| 43 | |||
| 44 | <body> | ||
| 45 | <div id="bloc_page" > | ||
| 46 | <h2 class="connexionTitre" ><?= $title ?></h2> | ||
| 47 | <p class="connexionTitre" ><?= $subHeading ?></p> | ||
| 48 | <?php | ||
| 49 | $header = ob_get_clean(); | ||
| 50 | |||
| 51 | // pied de page | ||
| 52 | ob_start(); | ||
| 53 | ?> | ||
| 54 | <p class="connexionFooter" > | ||
| 55 | <i>N'oubliez de cliquer sur "déconnexion" quand vous aurez fini.</i><br /> | ||
| 56 | <a href="index.php?page=<?= $_GET['from'] ?>" >Retour à la page précédente</a> | ||
| 57 | </p> | ||
| 58 | </div> | ||
| 59 | </body> | ||
| 60 | </html> | ||
| 61 | <?php | ||
| 62 | $footer = ob_get_clean(); \ No newline at end of file | ||
