-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathverify.php
More file actions
32 lines (22 loc) · 703 Bytes
/
verify.php
File metadata and controls
32 lines (22 loc) · 703 Bytes
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
<?php
require 'headers.php';
require_once 'token.php';
$value = $_POST['token'];
if(isset($_POST['token'])){
if(token::check_token($value, $_COOKIE['csrfCookie'])){
echo '
<div class=outer_div>
<h1 class=welcome align=center>Cookie Accepted!</h1>
<p class=congrats align=center>Congratulations!</p>
</div>
';
}
}else{
echo '
<div class=outer_div>
<h1 class=welcome align=center>Cookie Rejected!</h1>
<p class=congrats align=center>You Cheater!</p>
</div>
';
}
?>