summaryrefslogtreecommitdiff
path: root/page.php
blob: 87acfc5da7556444f8ef16ae146eaaf1480a5445 (plain)
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
<!DOCTYPE html>
<html lang="fr">
    <head>
        <meta charset="utf-8" />
        <title>Le meilleur OS</title>
    </head>
    <body>
 <div>
<?php
//if (isset($_GET['password']) && $_GET['password'] == "secret"){
  	if (isset($_GET['username']))
  	{
  echo "<p>Merci ".$_GET['username']." !</p>";
  	}
  	if (isset($_GET['os']))
  	{
  	echo "<p>Votre OS favori est ".$_GET['os']." !</p>";
  	}
  	if(isset($_COOKIE['date']))
  	{
          echo "<p>Nous sommes le ".date("Y-m-d H:i:s",$_COOKIE['date'])."</p>";
  	}
/*}
else {
	echo "Mauvais mot de passe";
}*/
?>
    </div>
</body>
</html>