-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcumulative.php
58 lines (48 loc) · 1.74 KB
/
cumulative.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
<!DOCTYPE html>
<html lang="en">
<?php
include 'head.php';
include 'config.php';
session_start();
?>
<body>
<!--HEADER, no header needed -->
<!-- BODY -->
<div class="container-fluid">
<div class="row">
<div class="jumbotron">
<h2 class="text-center">
<?php
$qus = $_SESSION['counter'];
if($_SESSION['actual'] == '1'){
$actualvalue = "Phishing";
}
elseif($_SESSION['actual'] == '0'){
$actualvalue = "Genuine";
}
if($qus== 10){
?>
<h1><center><b>Cumulative Feedback</b></center></h1><br><br>
<p>Your score after Phase 1 is: <strong><?php echo $_SESSION['reward'];?></strong> </p>
</h2></div></div></div> <?php
echo "<a href='game.php'><button class='btn btn-warning'>Return To Game</button></a>"; ?>
<?php mysqli_close($conn);
}
else if($_SESSION['counter']== 33){?>
<h1><center><b>Cumulative Feedback</b></center></h1><br><br>
<p>Your score after Phase 2 is: <strong><?php echo $_SESSION['reward'];?></strong> </p>
</h2></div></div></div> <?php
echo "<a href='game.php'><button class='btn btn-warning'>Return To Game</button></a>"; ?>
<?php mysqli_close($conn);
}
else{?>
<h1><center><b>Cumulative Feedback</b></center></h1><br><br>
<p>Your score after Phase 3 is: <strong><?php echo $_SESSION['reward'];?></strong> </p>
</h2></div></div></div> <?php
echo "<a href='end.php'><button class='btn btn-warning'>Submit</button></a>"; ?>
<?php mysqli_close($conn);
} ?>
<!-- <FOOTER -->
<?php include 'footer.php';?>
</body>
</html>