-
Notifications
You must be signed in to change notification settings - Fork 0
/
profile.php
59 lines (51 loc) · 1.26 KB
/
profile.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
<?php
session_start();
?>
<!DOCTYPE html>
<head>
<link rel="stylesheet" type="text/css" href="css/cms.css">
<script type="text/javascript" src="js/angular.min.js"></script>
<script type="text/javascript" src="js/jQuery.js"></script>
<script type="text/javascript" src="js/jQueryCode.js"></script>
</head>
<body>
<?php
include_once "resources/strings.php";
include_once "resources/functions.php";
include_once "View/HostV.php";
include_once "View/AdminV.php";
include_once "View/UserV.php";
include_once "View/SupplierV.php"
?>
</body>
<div class="topLine">
CMS for Zderi.me
</div>
<div class="separateLine">
<a href="./" class="menu-item">
Home
</a>
<a href="./profile.php" class="menu-item">
Profile
</a>
<?php if($_SESSION["userType"]>1) {?>
<a href="cms.php" class="menu-item">
CMS
</a>
<?php } ?>
</div>
<?php
switch(intval($_SESSION["userType"]) ) {
case 1:
case 2:
case 3:
case 4:
$user = new UserV();
$user->displayView();
break;
default: ?>
<script>window.location.href="index.php?page=login"</script>
<?php
}
?>
</html>