-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomplete.php
73 lines (63 loc) · 3.22 KB
/
complete.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
<?php
session_start();
if(!isset($_SESSION['loggedin']) && $_SESSION['loggedin']!=true){
header("location: ./index.php");
}
?>
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="./images/VITFAM.png" type="image/x-icon">
<link rel="stylesheet" href="./style/style.css">
<link rel="stylesheet" href="./style/congo.css">
<title>VITFAM | Thank You</title>
</head>
<body>
<div id="loader">
<div class="clock-loader"></div>
</div>
<?php
include './partials/_dbconnect.php';
$sid = $_SESSION['story_id'];
$uid = $_SESSION['user_id'];
$sql = "SELECT * FROM user_ques WHERE question_id = '$sid' AND user_id = '$uid'";
$result = mysqli_query($conn, $sql);
if (mysqli_num_rows($result)) {
while($row = mysqli_fetch_assoc($result)){
if($row['ques_increment'] >= 3){
echo '
<div class="wrapper">
<div class="modal modal--congratulations">
<div class="modal-top">
<lottie-player src="https://assets3.lottiefiles.com/packages/lf20_i4zw2ddg.json" background="transparent" speed="1" style="width: 100%; height: 250px;" loop autoplay></lottie-player>
<div class="modal-header">Congratulations <span>' . $_SESSION['username'] . '</span></div>
<div class="modal-subheader">You\'ve successfully <span>completed</span> the Game</div>
</div>
<div class="modal-bottom">
<a href="./index.php" role="button" class="modal-btn u-btn u-btn--share">Home</a>
<form action="./partials/_loggout.php" method="POST">
<button type="submit" name="congo" id="logoutbtn" class="modal-btn u-btn u-btn--danger">Logout</button>
</form>
</div>
</div>
</div>
</div>
';
}else{
header("location: ./index.php");
}
}
} else{
echo mysqli_error($conn);
}
?>
<script src="./js/main.js"></script>
<script src="https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js"></script>
<lottie-player src="https://assets2.lottiefiles.com/packages/lf20_rovf9gzu.json" background="transparent" speed="1" style="width: 100vw; height: 100vh; position: absolute; z-index:-10; top:50%; left:50%; transform:scale(2) translate(-50%, -50%);" autoplay></lottie-player>
<lottie-player src="https://assets2.lottiefiles.com/packages/lf20_rovf9gzu.json" background="transparent" speed="1" style="width: 100vw; height: 100vh; position: absolute; z-index:-10; top:50%; left:0%; transform:translate(-50%, -50%) scale(2) rotate(45deg);" autoplay></lottie-player>
<lottie-player src="https://assets2.lottiefiles.com/packages/lf20_rovf9gzu.json" background="transparent" speed="1" style="width: 100vw; height: 100vh; position: absolute; z-index:-10; top:50%; left:100%; transform:translate(-50%, -50%) scale(2) rotate(-45deg);" autoplay></lottie-player>
</body>
</html>