-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_verify.php
More file actions
70 lines (69 loc) · 1.66 KB
/
Copy path_verify.php
File metadata and controls
70 lines (69 loc) · 1.66 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
<?php
include("_header.php");
?>
<div class="d-flex container justify-content-center text-light p-4">
<?php
if(!empty($_GET['u']))
{
$bchan_username_base64 = base64_decode($_GET['u']);
$bchan_username = $utils->realString($conn, $bchan_username_base64);
$query_check_user = $bchan_class->q($conn, $utils->checkUser($bchan_username));
if(mysqli_num_rows($query_check_user) == 1)
{
if($bchan_class->q($conn, $utils->verifyUser($bchan_username)))
{
?>
<div class="p-3 card text-light bg-success">
<div class="card-body">
<p>Your account has been Verified!</p>
Page will be redirect in 3 second.
</div>
</div>
<script>
var delay = 2000;
setTimeout(function(){
window.location.href = "/login";
}, delay);
</script>
<?php
}
else
{
?>
<div class="p-3 card text-light bg-danger">
<div class="card-body">
<p>Can't verify your Account!</p>
Page will be redirect in 3 second.
</div>
</div>
<script>
var delay = 2000;
setTimeout(function(){
window.location.href = "/login";
}, delay);
</script>
<?php
}
}
else
{
?>
<script>
window.location.href = "/";
</script>
<?php
}
?>
</div>
<?php
}
else
{
?>
<script>
window.location.href = "/";
</script>
<?php
}
include("_footer.php");
?>