write-ups-challenges-2020-2021/break_the_gate/final.php

72 lines
1.5 KiB
PHP
Raw Normal View History

2022-11-24 17:03:20 +00:00
<?php
require('flags.php');
if(!isset($_COOKIE['currentLevel'])) {
setcookie("currentLevel", "Flags_will_appear_here_when_you_complete_a_level...", time()+24*60*60);
}
switch ($_COOKIE['currentLevel']) {
case $flag_1:
header('Location: 2.php');
break;
case $flag_2:
header('Location: 3.php');
break;
case $flag_3:
header('Location: 4.php');
break;
case $flag_4:
header('Location: 5.php');
break;
case $flag_5:
break;
default:
header('Location: 1.php');
break;
}
?>
<!DOCTYPE html>
<html>
<head>
<title>All done</title>
<meta charset="UTF-8">
<meta name="author" content="Benjamin Ver">
<link rel="stylesheet" type="text/css" href="css/jquery-ui.css">
<link rel="stylesheet" type="text/css" href="css/normalize.css">
<script type="text/javascript" src="script/jquery.js"></script>
<script type="text/javascript" src="script/jquery-ui.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('div').hide("fade", 2000)
})
</script>
<style type="text/css">
body {
background-color: black;
background-image: url("img/thatsall.gif");
background-repeat: no-repeat;
background-size: contain;
background-position: center;
}
html, body {
width: 100%;
height: 100%;
}
body div {
width: 100%;
height: 100%;
background-color: black;
}
</style>
<body>
<div>
<!-- No challenges here anymore -->
</div>
</body>
</html>