You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.4 KiB
48 lines
1.4 KiB
3 years ago
|
<!-- Page d'accueil du portail.
|
||
|
-- Impose une authentification du visiteur pour continuer.
|
||
|
-- Redirige les tentative d'identification pour traitement et test de légitimité.
|
||
|
-->
|
||
|
|
||
4 years ago
|
<div id="contenu" class="contenu">
|
||
|
<div id="contenu_auth">
|
||
|
</br>
|
||
|
<table id="authentification">
|
||
|
<form method="post" action="/services/utilisateurs/identification.php">
|
||
|
<tr>
|
||
|
<td><label for="identifiant">Votre nom d'utilisateur :</label><br/></td>
|
||
3 years ago
|
<td><input type="email" name="identifiant" id="identifiant" required/></td>
|
||
4 years ago
|
</tr>
|
||
|
<tr>
|
||
|
<td><label for="mdp">Votre mot de passe :</label><br/></td>
|
||
|
<td><input type="password" name="mdp" id="mdp" required/></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td><input class="envoyer" type="submit" value="envoyer"/></td>
|
||
|
</tr>
|
||
|
</form>
|
||
|
</table>
|
||
4 years ago
|
|
||
4 years ago
|
<?php
|
||
4 years ago
|
|
||
4 years ago
|
if (isset($_GET['erreur']) && !empty($_GET['erreur'])){
|
||
4 years ago
|
switch ($_GET['erreur']) {
|
||
|
case 1:
|
||
|
echo "<p class=\"messages_retour_ko\">Identifiant ou mot de passe incorrecte.</p>";
|
||
|
break;
|
||
|
case 2:
|
||
|
echo "<p class=\"messages_retour_ko\">Vous n'avez pas les privilèges nécessaires.</p>";
|
||
|
break;
|
||
|
}
|
||
4 years ago
|
}
|
||
|
elseif (isset($_GET['succes']) && !empty($_GET['succes'])){
|
||
4 years ago
|
switch ($_GET['succes']) {
|
||
|
case 1:
|
||
|
echo "<p class=\"messages_retour_ok\">Vous avez bien été déconnecté.</p>";
|
||
|
break;
|
||
|
}
|
||
4 years ago
|
}
|
||
4 years ago
|
|
||
4 years ago
|
?>
|
||
4 years ago
|
|
||
4 years ago
|
</div>
|
||
3 years ago
|
</div>
|