-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdraft1846Cfrm.php
More file actions
79 lines (75 loc) · 2.49 KB
/
draft1846Cfrm.php
File metadata and controls
79 lines (75 loc) · 2.49 KB
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
/*
* The draft1846Cfrm page is called by a link in an email
* generated by the draft1846Start page. This page confirms
* the validity of a player's email address. It then checks
* if all players have passed this validity check.
* If they have then it kicks off the draft process.
*
* Copyright (c) 2019 Richard E. Price under the The MIT License.
* A copy of this license can be found in the LICENSE.text file.
*/
// Insure that the input parameters are integers.
$draftid = filter_input(INPUT_GET, 'draftid',FILTER_SANITIZE_NUMBER_INT);
$playerid = filter_input(INPUT_GET, 'playerid',FILTER_SANITIZE_NUMBER_INT);
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>DRAFT1846 - Private Company Draft Tool For 1846 Games</title>
<link rel="shortcut icon" href="images/favicon.ico" >
<link rel="stylesheet" href="style/draft1846Com.css" />
<link rel="stylesheet" href="style/draft1846Cfrm.css" />
<script type="text/javascript" src="scripts/jquery.js">
</script>
<script type="text/javascript" src="scripts/draft1846Com.js">
</script>
<script type="text/javascript" src="scripts/draft1846Config.js">
</script>
<script type="text/javascript" src="scripts/draft1846Cfrm.js">
</script>
<script>
$(function() {
D1846.draftid = parseInt(<?php echo "$draftid"; ?>);
D1846.player = parseInt(<?php echo "$playerid"; ?>);
$('#did').append(D1846.draftid, ".");
var cString = "draft_id=" + D1846.draftid + "&player_id=" + D1846.player;
$.post("php/updtCfrm.php", cString, updateCfrmResult);
});
</script>
</head>
<body>
<div id="topofpage">
<div id="logo">
<img src="images/logo.png" alt="Logo"/>
</div>
<div id="heading">
<h1>DRAFT1846</h1>
<h1>The Private Company Draft Tool For 1846 Games</h1>
</div>
</div>
<div id="restofpage">
<div id="content">
<div id="toptext">
<p id="did">
The draft id for this draft is
</p>
<p id="cfrm">
Your Email address has been confirmed.
</p>
<p id="confstat">
The current status of the draft is
</p>
<p id="confbox"></p>
<p id="done">
The draft confirmation process is completed.
</p>
<p id="next">
A next player email has been sent to
</p>
</div>
</div>
</div>
</body>
</html>