-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlv14.php
65 lines (65 loc) · 1.88 KB
/
lv14.php
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
date_default_timezone_set("Asia/Taipei");
if(isset($_GET['token']) && $_GET['token'] !== "5371") {
$token = '5371';
$input = $_GET['token'];
for($i=0; $i<4; $i++) {
if ($token[$i] === $input[$i]) {
usleep(1000 * 1000);
}
}
die("回來了?");
}
?>
<html>
<head>
<title> r3:0 lv14 </title>
<meta charset='utf-8' />
<link rel='stylesheet' href='css/main.css' />
<link href="https://fonts.googleapis.com/css?family=Noto+Serif+TC|Overpass+Mono&display=swap" rel="stylesheet">
</head>
<body>
<nav class='nav'>
<div> r3:0 異世界網站挑戰 </div>
<div> 關卡: 14 </div>
<?php
if(isset($_GET['hint'])){
if($_GET['hint']==='help'){
echo "<div class='nav__help'>[大賢者] response 的時間好像越來越慢?</div>";
}
}
?>
</nav>
<?php if(isset($_GET['token']) && $_GET['token'] === "5371") { ?>
<div class='main'>
<!-- secret logic
function isTokenValid($token) {
$h = date('H');
$m = date('i');
$a = $h * $m + 42;
$count = 0;
for($i = 0; $i < 8; $i++) {
$count += ord($token[$i]) - 65;
}
if ($count <= 100) {
return false;
}
return $a % $count === 0;
}
-->
<div id="time"></div>
<?php include_once('template/board.html') ?>
<?php include_once('template/controller.html') ?>
</div>
<script src='js/main.js'></script>
<script src='js/lv14.js'></script>
<?php } else { ?>
<div class='main'>
<?php include_once('template/board.html') ?>
<?php include_once('template/controller.html') ?>
</div>
<script src='js/main.js'></script>
<script src='js/failmsg.js'></script>
<?php } ?>
</body>
</html>