summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
Diffstat (limited to 'www')
-rw-r--r--www/index.html7
-rw-r--r--www/login.php12
-rw-r--r--www/page.php2
3 files changed, 15 insertions, 6 deletions
diff --git a/www/index.html b/www/index.html
index af33466..05c23a4 100644
--- a/www/index.html
+++ b/www/index.html
@@ -8,13 +8,11 @@
border: solid black 1px;
padding: 1em;
margin:1em;
+ color: #808080;
}
- #titre {
+ h1 {
color:blue;
}
- .formulaire {
- color: #808080;
- }
</style>
</head>
<body>
@@ -42,6 +40,7 @@
<p id="demo">La méthode est GET.<br>&nbsp;</p>
</div>
<p><a href="login.php">Login</a>
+ <p><a href="cesar.php">César</a>
<script>
function changeMethod() {
document.getElementById("monform").method = "post";
diff --git a/www/login.php b/www/login.php
index 5e2c2af..75fa223 100644
--- a/www/login.php
+++ b/www/login.php
@@ -15,7 +15,17 @@ else {
<head>
<meta charset="utf-8" />
<title>Login</title>
-<meta name="generator" content="Geany 1.38" />
+<style>
+ form {
+ border: solid black 1px;
+ padding: 1em;
+ margin:1em;
+ color: #808080;
+ }
+ h1 {
+ color:blue;
+ }
+</style>
</head>
<body>
diff --git a/www/page.php b/www/page.php
index 7eab917..f88fa3a 100644
--- a/www/page.php
+++ b/www/page.php
@@ -15,7 +15,7 @@
{
echo "<p>Votre OS favori est ".$_REQUEST['os']." !</p>";
}
- if (preg_match( "/[Ll][Ii][Nn][Uu][Xx]/",$_REQUEST['os']))
+ if (preg_match( "/[Ll][Ii][Nn][Uu][Xx]/",$_POST['os'])) //trop facile en get !
{
if(getenv('FLAG0')){
echo "<strong>Bien joué ! Ton flag est ".getenv('FLAG0')."</strong>";