-
Notifications
You must be signed in to change notification settings - Fork 0
/
viewer.php
38 lines (32 loc) · 864 Bytes
/
viewer.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
<?php
require './functions.php';
//Obtain seconds
$farol = lerSegundos($arquivo, 2);
if ($farol==0) {
$segFaltantes = lerSegundos($arquivo, 1);
$segundos = time()+$segFaltantes;
} else if ($farol==1) {
$segundos = lerSegundos($arquivo);
}
escreveHeader("continue");
$timeWatch = secondsToTime($segundos);
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Battlehack Time Counter - Stopwatch</title>
<script>
</script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="bhtimecounter.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="spacer"></div>
<div id="container">
<div id="stopwatch">
<?=$timeWatch?>
</div>
</div>
</body>
</html>