-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdataHandler.php
79 lines (69 loc) · 1.55 KB
/
dataHandler.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?php
include("matchInput.php");
function filter($str)
{
return filter_var($str, FILTER_SANITIZE_STRING);
}
?>
<script>
console.log("No way9");
</script>
<?php
if (isset($_POST['matchNum'])) {
include("databaseLibrary.php");
$user = filter($_POST['userName']);
$matchNum = filter($_POST['matchNum']);
$teamNum = filter($_POST['teamNum']);
$ID = $matchNum . "-" . $teamNum;
$allianceColor = filter($_POST['allianceColor']);
$crossLineA = filter($_POST['crossLineA']);
$aCubeL = filter($_POST['aCubeL']);
$aCubeM = filter($_POST['aCubeM']);
$aCubeH = filter($_POST['aCubeH']);
$aConeL = filter($_POST['aConeL']);
$aConeM = filter($_POST['aConeM']);
$aConeH = filter($_POST['aConeH']);
$aDocked = filter($_POST['aDocked']);
$aEngaged = filter($_POST['aEngaged']);
$tCubeL = filter($_POST['tCubeL']);
$tCubeM = filter($_POST['tCubeM']);
$tCubeH = filter($_POST['tCubeH']);
$tConeL = filter($_POST['tConeL']);
$tConeM = filter($_POST['tConeM']);
$tConeH = filter($_POST['tConeH']);
$docked = filter($_POST['docked']);
$engaged = filter($_POST['engaged']);
$parked = filter($_POST['parked']);
$issues = filter($_POST['issues']);
$defenseBot = filter($_POST['defenseBot']);
$matchComments = filter($_POST['matchComments']);
matchInput(
$user,
$ID,
$matchNum,
$teamNum,
$allianceColor,
$crossLineA,
$aCubeL,
$aCubeM,
$aCubeH,
$aConeL,
$aConeM,
$aConeH,
$aDocked,
$aEngaged,
$tCubeL,
$tCubeM,
$tCubeH,
$tConeL,
$tConeM,
$tConeH,
$docked,
$engaged,
$parked,
$issues,
$defenseBot,
$matchComments
);
}
?>