forked from amit-420/Examportal
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrules.php
More file actions
98 lines (82 loc) · 4.32 KB
/
Copy pathrules.php
File metadata and controls
98 lines (82 loc) · 4.32 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<?php
include('config/db_connect.php');
include('config/session_verification.php');
if(isset($_POST['to_portal'])){
header('Location: portal.php');
}elseif (isset($_POST['loginpage'])){
session_unset();
session_destroy();
header('Location: login&signup/login.php');
}
?>
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Instructions</title>
<!-- Bootstrap -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
<!-- Google font -->
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@100;300;400;500;600;800&display=swap" rel="stylesheet">
<link rel="stylesheet" href="css/style.css" />
</head>
<?php
if($_SESSION['payment_status'] == True and $_SESSION['exam_status'] == false) {?>
<body id="rules-body">
<nav class="navbar navbar-expand-lg navbar-light ">
<a class="navbar-brand" href="#">
<img src="images/log.png" alt="NEO logo" style="height: 70px;"/>
</a>
</nav>
<h1 class=" pt-4">Exam Rules</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Pellentesque vitae tempus velit, sit amet condimentum lacus.
In et mi sit amet augue auctor cursus. Ut ultrices, risus
sit amet fermentum volutpat, purus purus eleifend ex, id
pharetra erat quam eget nibh. Ut facilisis eget felis
condimentum imperdiet. Mauris varius, sapien eget posuere
imperdiet, metus eros iaculis nunc, at lacinia ex augue non
orci. Proin vitae lobortis eros, laoreet consectetur quam. Orci
varius natoque penatibus et magnis dis parturient montes,
nascetur ridiculus mus. In quis hendrerit mi, nec feugiat
sem. Donec a ipsum eu nibh venenatis commodo. Sed non
interdum diam, vel scelerisque mi. </p>
<p>
<strong class="semi-bold">Make sure you understand the instructions before starting the exam.</strong>
</p>
<form action="rules.php" method="POST">
<input class="btn btn-primary" type="submit" name="to_portal" value="Start the Exam" >
</form>
</body>
<?php } else if($_SESSION['payment_status'] == false and $_SESSION['exam_status'] == false){?>
<body>
<nav class="navbar navbar-expand-lg navbar-light ">
<a class="navbar-brand" href="#">
<img src="images/log.png" alt="NEO logo" style="height: 70px;"/>
</a>
</nav>
<h4 class="text-center pt-4">Your payment is overdue.</h4>
<p class="text-center">Click the button below to pay the fee and resume with exam</p>
<form action="rules.php" method="POST" class="text-center">
<input type="submit" class="btn btn-primary" name="loginpage" value="Pay" >
</form>
</body>
<?php } else if($_SESSION['payment_status'] == true and $_SESSION['exam_status'] == true){?>
<body>
<nav class="navbar navbar-expand-lg navbar-light ">
<a class="navbar-brand" href="#">
<img src="images/log.png" alt="NEO logo" style="height: 70px;"/>
</a>
</nav>
<h4 class="text-center pt-4">We appreciate your enthusiasm but you can give the exam only once.</h4>
<form action="rules.php" class="text-center pt-4" method="POST">
<input type="submit" class="btn btn-primary" name="loginpage" value="Login Again" >
</form>
</body>
<?php }?>
<!-- Bootstrap javascript -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script>
</html>