-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.php
139 lines (58 loc) · 2.04 KB
/
home.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
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<?php Session_Start(); ?>
<?php
//check if logged in and valid
$AuthenLevel = $_SESSION['Access'];
if (!isset($_SESSION['username'])){
echo('you are not logged in! You will be redirected to login page in 3 seconds...');
header('refresh: 3; http://people.cis.ksu.edu/~krishane/login.php');
exit();
}
if ($AuthenLevel!=='1'){
if($AuthenLevel!=='2'){
echo('<img src="pictures/no.JPG"></img><br></br>');
echo('You horrible person how dare you try to tresspass without permission!!!');
echo('<br></br><strong>ERROR CODE: </strong> E503-'.$AuthenLevel.'');
exit();
}
}
?>
<?php include('include/header_plain.php');?>
<div class="nav_by">
<div class="pname">
<li><?php echo ('<a onclick="return display();">'.$_SESSION['FName'].' '.$_SESSION['LName'].'</a>');?></li>
</div>
<div class="headertitle">
<div class="container_main">
<h1>Dashboard</h1>
</div>
</div>
<div class="container">
<div class="nav_byx">
</div>
</div>
</div>
<script>
function display() {
$('#show').toggleClass('hide');
}
</script>
<div class="profile">
<ul id="show" class="hide" >
<li><a href=""><img src="pictures/Settings.png" style="height:15px;width:20px"></img> Profile Settings</a></li>
<li><a href="../php/Session_kill.php"><img src="pictures/logout.png" style="height:15px;width:20px"></img> Logout</a></li>
</ul>
<ul id="ksunav">
<li><a><img src="pictures/dashboard.png" style="height:15px;width:20px"></img> Dashboard</a></li>
<li><a href="Package_Registry.php"><img src="pictures/box.png" style="height:15px;width:20px"> Package Registry</a></li>
<li><a><img src="pictures/guestbook.png" style="height:15px;width:20px"> Guest Book<a></li>
</ul>
</div>
<div class="container_home">
<div id="page_content">
<div id="page_right" style="width:840px; float:left">
<h1>Dashboard</h1>
</div>
</div>
<span class="clear"></span>
</div>
<?php include('include/footer_plain.php'); ?>