forked from Anenth/Buzzer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
team-A.php
31 lines (28 loc) · 1000 Bytes
/
team-A.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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="main.css" type="text/css"/>
<title></title>
</head>
<body>
<?php
if (isset($_GET['v']))
$id = $_GET['v'];
$myFile = "rank.txt";
$fh = fopen($myFile, 'a') or die("can't open file");
fwrite($fh, $id . "\n");
fclose($fh);
if ($id == 1)
echo "<script type='text/javascript'>window.location.href='team-A.html'</script>";
elseif ($id == 2)
echo "<script type='text/javascript'>window.location.href='team-B.html'</script>";
elseif ($id == 3)
echo "<script type='text/javascript'>window.location.href='team-C.html'</script>";
elseif ($id == 4)
echo "<script type='text/javascript'>window.location.href='team-D.html'</script>";
?>
<div id="buzzer">
</div>
</body>
</html>