diff options
| author | polo <ordipolo@gmx.fr> | 2026-10-23 00:47:32 +0200 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2026-10-23 00:47:32 +0200 |
| commit | f27cca08ff786ceff1870147f6d6bad14d71117f (patch) | |
| tree | d36597a72025313d6faf4ed228755fa267ebe2f6 /src/view/templates/user_create.php | |
| parent | c7309f900ef05bd5cb313110ec159b761af394ec (diff) | |
| download | cms-f27cca08ff786ceff1870147f6d6bad14d71117f.tar.gz cms-f27cca08ff786ceff1870147f6d6bad14d71117f.tar.bz2 cms-f27cca08ff786ceff1870147f6d6bad14d71117f.zip | |
dossiers avec majuscule, namespace pour toutes les classes, autoload psr-4, UserDataService::createZip déplacé dans Backup
Diffstat (limited to 'src/view/templates/user_create.php')
| -rw-r--r-- | src/view/templates/user_create.php | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/src/view/templates/user_create.php b/src/view/templates/user_create.php deleted file mode 100644 index 870b904..0000000 --- a/src/view/templates/user_create.php +++ /dev/null | |||
| @@ -1,53 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | declare(strict_types=1); | ||
| 3 | |||
| 4 | $error_messages = [ | ||
| 5 | 'error_non_valid_captcha' => 'Erreur au test anti-robot, veuillez saisir un nombre entier.', | ||
| 6 | 'captcha_server_error' => 'captcha_server_error', | ||
| 7 | 'bad_solution_captcha' => 'Erreur au test anti-robot, veuillez réessayer.', | ||
| 8 | 'bad_login_or_password' => 'Mauvais identifiant ou mot de passe, veuillez réessayer.', | ||
| 9 | 'different_passwords' => 'Les deux mots de passe saisis sont différents', | ||
| 10 | 'forbidden_characters' => 'Caractères interdits: espaces, tabulations, sauts CR/LF.' | ||
| 11 | ]; | ||
| 12 | $error = isset($_GET['error']) ? $error_messages[$_GET['error']] : ''; | ||
| 13 | |||
| 14 | $captcha = new Captcha; | ||
| 15 | $_SESSION['captcha'] = $captcha->getSolution(); // enregistrement de la réponse du captcha pour vérification | ||
| 16 | ?> | ||
| 17 | <!DOCTYPE html> | ||
| 18 | <html lang="fr"> | ||
| 19 | <head> | ||
| 20 | <meta charset="utf-8"> | ||
| 21 | <title>Bienvenue</title> | ||
| 22 | <link rel="icon" type="image/png" href="assets/favicon48x48.png"> | ||
| 23 | <link rel="stylesheet" href="css/body.css"> | ||
| 24 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
| 25 | </head> | ||
| 26 | <body> | ||
| 27 | <main> | ||
| 28 | <section> | ||
| 29 | <h3>Bienvenue.</h3> | ||
| 30 | <p style="text-align: center;">Pour commencer, veuillez créer un compte administrateur.</p> | ||
| 31 | <div class="basic_div"> | ||
| 32 | <p style="color: red; font-style: italic;"><?= $error ?></p> | ||
| 33 | <form method="post" action="index.php?action=create_user" > | ||
| 34 | <p><label for="login" >Identifiant:</label> | ||
| 35 | <input id="login" type="text" name="login" autofocus required></p> | ||
| 36 | <p><label for="password" >Mot de passe:</label> | ||
| 37 | <input id="password" type="password" name="password" required></p> | ||
| 38 | <p><label for="password_confirmation" >Confirmer le mot de passe:</label> | ||
| 39 | <input id="password_confirmation" type="password" name="password_confirmation" required></p> | ||
| 40 | <input type="hidden" name="create_user_hidden"> | ||
| 41 | |||
| 42 | <p>Montrez que vous n'êtes pas un robot.<br> | ||
| 43 | <label for="captcha" >Combien font <?= $captcha->getA() ?> fois <?= $captcha->getB() ?>?</label> | ||
| 44 | <input required type="text" id="captcha" name="captcha" autocomplete="off" size="1"> | ||
| 45 | </p> | ||
| 46 | |||
| 47 | <input type="submit" value="Valider"> | ||
| 48 | </form> | ||
| 49 | </div> | ||
| 50 | </section> | ||
| 51 | </main> | ||
| 52 | </body> | ||
| 53 | </html> \ No newline at end of file | ||
