-
Notifications
You must be signed in to change notification settings - Fork 0
/
rep_verified.php
47 lines (37 loc) · 1.14 KB
/
rep_verified.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
<!-- Header file -->
<?php include_once 'api/header.php'; ?>
<?php require_once 'controller/authController.php'; ?>
<!-- Navbar file -->
<?php include_once 'api/navbar.php'; ?>
<?php
// Check if the user is logged in, if not then redirect him to login page
if($_SESSION['userrole'] !== 'course_rep') {
header('location: index.php');
exit();
} elseif($_SESSION['verified']==false) {
header('location: login.php');
}
?>
<div class="container ">
<div class="row">
<div class="col-md-4 offset-md-4 form-div">
<div class="alert alert-success">
<?php echo $_SESSION['registered_message']; ?>
</div>
<br><br>
<?php session_unset();
session_destroy(); ?>
</div>
</div>
</div>
<!-- SCRIPTS -->
<!-- JQuery -->
<script src="assets/js/jquery-3.4.1.min.js"></script>
<!-- Bootstrap tooltips popper -->
<script src="assets/js/popper.min.js"></script>
<!-- Bootstrap core JavaScript -->
<script src="assets/js/bootstrap.min.js"></script>
<!-- My custom JavaScript -->
<script src="assets/js/main.js"></script>
</body>
</html>