summaryrefslogtreecommitdiff
path: root/Template/Include/incl_form_login.php
blob: e907635a06f106a88ad05031b9c0f069e8133433 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php

// ############################################################################
// #                                                                          #
// # Description: Formulaire de login                                         #
// #                                                                          #
// ############################################################################

// Import des textes en fonction de la langue définie dans la variable "lang" de la session.
require_once(dirname( __FILE__ )."./".$_SESSION["lang"]."/text.php");

// ****************************************************************************
// DIV PRINCIPALE AVEC TITRE ET FORM DE CONNEXION
// ****************************************************************************
echo('<!-- Div principale -->
<main id="mainLogin">
    <h2>'.$text[basename(__FILE__, ".php")]["h2"].'</h2>
        <form action="/../Core/wrapper.php" method="post">
        <label>
            <i class="fas fa-envelope-square"></i>
            <input type="email" name="email" id="email" maxlength="128" placeholder="'.$text[basename(__FILE__, ".php")]["email"].'" required>
        </label>
        <label>
            <i class="fas fa-lock"></i>
            <input type="password" name="password" id="password" maxlength="128" placeholder="'.$text[basename(__FILE__, ".php")]["password"].'" required>
        </label>
        <label>
            <input type="checkbox" name="rememberMe" id="rememberMe">
            '.$text[basename(__FILE__, ".php")]["rememberMe"].'
        </label>
        <input type="submit" value="'.$text[basename(__FILE__, ".php")]["submit"].'">
    </form>
</main>'.PHP_EOL);

?>