-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage_template.php
44 lines (36 loc) · 934 Bytes
/
page_template.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
<?php
// *************************************************************
// file:
// created by: Alex Gordon, Elliott Staude
// date: 04-6-2014
// purpose:
//
// *************************************************************
// include nav bar and other default page items
include('header.php');
// check the session to see if the person is authenticated
if(!isset($_SESSION['user'])) {
header('Location: login.php');
}// Manager
if($_SESSION['access']==ADMIN_PERMISSION ) {
?>
<!-- Page html goes here -->
<!-- no need for html tags or body tags. Just raw page html. -->
<?php
}
// Faculty
if($_SESSION['access']==FACULTY_PERMISSION ) {
?>
<!-- Page html goes here -->
<!-- no need for html tags or body tags. Just raw page html. -->
<?php
}
// User
if($_SESSION['access']==USER_PERMISSION ) {
?>
<!-- Page html goes here -->
<!-- no need for html tags or body tags. Just raw page html. -->
<?php
}
include('footer.php')
?>