summaryrefslogtreecommitdiff
path: root/www/page.php
diff options
context:
space:
mode:
authorjerome <jerome@xlinfo.fr>2025-10-12 12:26:58 +0200
committerjerome <jerome@xlinfo.fr>2025-10-12 12:26:58 +0200
commitc0939701729529e1910f0ff138f97dabd8b8411a (patch)
tree4d6b31ca9df29fe85da0cdc7f9cd2d1ad103cf97 /www/page.php
parentca7a1a2a894b1d0b02109f3c50934d333a27742a (diff)
downloadhttp-c0939701729529e1910f0ff138f97dabd8b8411a.tar.gz
http-c0939701729529e1910f0ff138f97dabd8b8411a.zip
flag
Diffstat (limited to 'www/page.php')
-rw-r--r--www/page.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/www/page.php b/www/page.php
index e7ac2f2..92c6efb 100644
--- a/www/page.php
+++ b/www/page.php
@@ -15,10 +15,12 @@
{
echo "<p>Votre OS favori est ".$_REQUEST['os']." !</p>";
}
- if(isset($_COOKIE['date']))
- {
- echo "<p>Nous sommes le ".date("Y-m-d H:i:s",$_COOKIE['date'])."</p>";
- }
+ if (preg_match( "/[Ll][Ii][Nn][Uu][Xx]/",$_REQUEST['os']))
+ {
+ if(getenv('FLAG')){
+ echo "<strong>Bien joué ! Ton flag est ".getenv('FLAG')."</strong>";
+ }
+ }
?>
</div>
<p><a href="javascript:history.back()">Retour</a></p>