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