Admin.php: check privilege first
parent
67647de04a
commit
2230bf4222
13
Admin.php
13
Admin.php
|
@ -7,13 +7,12 @@ $page = "admin";
|
||||||
include 'Header.php';
|
include 'Header.php';
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<!-- <?php
|
<?php
|
||||||
// if ($_SESSION['user_type'] != "Lecturer") {
|
// Only Lecturer or Admin could access this page
|
||||||
// $_SESSION["info_login"] = "You must log in first.";
|
if ($_SESSION['user_type'] != "Lecturer" || $_SESSION['user_type'] != "Admin") {
|
||||||
// echo $_SESSION["info_login"];
|
die("Sorry. Nothing to see here.");
|
||||||
// header("Location: index.php");
|
}
|
||||||
// }
|
?>
|
||||||
?> -->
|
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.col-md-4 {
|
.col-md-4 {
|
||||||
|
|
Loading…
Reference in New Issue