diff options
| author | jerome <jerome@xlinfo.fr> | 2024-09-17 15:41:31 +0200 |
|---|---|---|
| committer | jerome <jerome@xlinfo.fr> | 2024-09-17 15:41:31 +0200 |
| commit | cb1af4fa69b015b8ede43310151b51cc2720f88f (patch) | |
| tree | 61001ed65f1da8d2dc923a1293486698c1e13323 /login.php | |
| parent | 40234e4a1a1777cb65d35424236fac6f868fc450 (diff) | |
| download | http-cb1af4fa69b015b8ede43310151b51cc2720f88f.tar.gz http-cb1af4fa69b015b8ede43310151b51cc2720f88f.zip | |
login.php
Diffstat (limited to 'login.php')
| -rw-r--r-- | login.php | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/login.php b/login.php new file mode 100644 index 0000000..5ac4afe --- /dev/null +++ b/login.php @@ -0,0 +1,29 @@ +<?php +if ($_POST['username'] == "stagiaire" && $_POST['password'] == "password123"){ + $msg="Bien joué, Boloss, ton flag est 'ici'"; +} +else { + $msg="Erreur, Boloss !"; +} +?> +<!DOCTYPE html> +<html lang="fr"> + +<head> +<meta charset="utf-8" /> +<title>Login</title> +<meta name="generator" content="Geany 1.38" /> +</head> + +<body> + <h1>Login</h1> + <form method="post"> + <input type="text" name="username"><br> + <input type="password" name="password"><br> + <input type="submit"> + </form> + <br> + <div><?php if (isset($_POST['username'])){ echo $msg; } ?></div> +</body> + +</html> |
