-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
executable file
·48 lines (42 loc) · 1.29 KB
/
index.php
File metadata and controls
executable file
·48 lines (42 loc) · 1.29 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
if( isset($_GET[ 'login' ]) ){
$login = $_GET[ 'login' ] ;
}
else {
$login = '' ;
}
?>
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8">
<title>Connexion</title>
</head>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-F3w7mX95PdgyTmZZMECAngseQB83DfGTowi0iMjiWaeVhAn4FJkqJByhZMI3AhiU" crossorigin="anonymous">
<body>
<h1>Connexion</h1>
<div class="mb-3 row">
<form action="controleurs/ctrl-connecter.php" method="GET">
<label>Nom de connexion</label>
<input type="text" name="login" value="<?php echo $login ; ?>"/>
<br>
<br>
<label>Mot de passe</label>
<input type="password" name="mdp" />
</div>
<br>
<button type="submit" class="btn btn-outline-dark">Valider</button>
<button type="reset" class="btn btn-outline-dark">Annuler</button><br><br>
<?php if( isset($_GET[ 'echec' ]) ){ ?>
<?php if( $_GET[ 'echec' ] == 1 ){ ?>
<div class="alert alert-dark" role="alert">
Nom de connexion ou mot de passe incorrect.
</div>
<?php } else if( $_GET[ 'echec' ] == 0 ){ ?>
<div class="alert alert-dark" role="alert">
Site momentanément indisponible.
</div>
<?php } ?>
<?php } ?>
</form>
</body>