17 lines
No EOL
628 B
PHP
17 lines
No EOL
628 B
PHP
|
|
<?php
|
|
#ceci est la partie "view" de la page de login, le header et le footer ne sont pour l'instant pas actif
|
|
error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED);
|
|
ini_set('display_errors', 1);
|
|
|
|
function login_form_view(?string $route) {
|
|
#require('header.php');
|
|
|
|
echo '<h2>Page d\'authentification</h2>';
|
|
echo '<form action="index.php?route=auth&ask=' . $route . '" method="post">';
|
|
echo '<p>Login<input type="text" name="login" /></p>';
|
|
echo '<p>Mot de passe<input type="passwd" name="password" /></p>';
|
|
echo '<p><input type="submit" value="Valider" /></form>';
|
|
|
|
#require('footer.php');
|
|
} |