-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
50 lines (46 loc) · 1.24 KB
/
header.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
<?php
session_start();
?>
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Samplitek</title>
<link rel="icon" type="image/x-icon" href="Custom/Images/favicon.png">
<link rel="stylesheet" href="Custom/css/styles.css">
</head>
<body>
<header>
<a class="logo" href="index.php"><img src="Custom/Images/Samplitek.png" alt="c le logo"></a>
<div class="Links">
<a href="index.php">Home</a>
<a href="samples.php">Samples</a>
<a href="songs.php">Songs</a>
<?php
if (isset($_SESSION['rights'])) {
if($_SESSION['rights']==3)
{
echo '<a href="admin.php">Admin</a>';
}
if ($_SESSION['rights']==2) {
echo '<a href="modo.php">Modo</a>';
}
if ($_SESSION['rights']==1) {
echo '<a href="profile.php">Profile</a>';
}
}
else {
echo '<a href="profile.php">Profile</a>';
}
?>
<?php if (!isset($_SESSION['username']))
{
echo '<a href="login.php">Login</a>';
} else {
echo '<a href="logout.php">Logout</a>';
}
?>
</div>
</header>
</body>
</html>