-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
93 lines (84 loc) · 5.43 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Primary Meta Tags -->
<title>PassNest - Free Password Manager | Secure Alternative to LastPass, 1Password, Keepr & Dashlane</title>
<meta name="description" content="PassNest is a free, secure, and user-friendly password manager. A great alternative to LastPass, Dashlane, Keeper and 1Password. Store, manage, and autofill passwords effortlessly across all your devices.">
<meta name="keywords" content="free password manager, PassNest, LastPass alternative, Dashlane alternative, 1Password alternative, Keeper alterntive, secure password manager, password management, autofill passwords, cross-device password manager">
<meta name="author" content="PassNest">
<!-- Open Graph / Facebook Meta Tags (for social sharing) -->
<meta property="og:title" content="PassNest - Free Password Manager | Secure Alternative to LastPass & Dashlane">
<meta property="og:description" content="PassNest is a free, secure, and user-friendly password manager. A great alternative to LastPass, Dashlane, and 1Password. Store, manage, and autofill passwords effortlessly across all your devices.">
<meta property="og:type" content="website">
<meta property="og:url" content="https://www.passnest.com">
<meta property="og:image" content="https://www.passnest.com/images/passnest-og-image.jpg">
<!-- Twitter Meta Tags (for social sharing) -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="PassNest - Free Password Manager | Secure Alternative to LastPass, 1Password, Keepr & Dashlane">
<meta name="twitter:description" content="PassNest is a free, secure, and user-friendly password manager. A great alternative to LastPass, Dashlane, and 1Password. Store, manage, and autofill passwords effortlessly across all your devices.">
<meta name="twitter:image" content="https://www.passnest.com/images/passnest-twitter-image.jpg">
<!-- Canonical Link (to avoid duplicate content issues) -->
<link rel="canonical" href="https://www.passnest.com">
<!-- Favicon -->
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<!-- Stylesheets -->
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css">
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons/font/bootstrap-icons.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
<!-- Scripts -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark" style="border-bottom: 2px solid #0d6efd;">
<div class="container">
<a class="navbar-brand d-flex align-items-center" href="#">
<i class="fa fa-key fa-2x me-2"></i><span style="font-size: 1.5rem; font-weight: bold;">PassNest</span>
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ms-auto">
<?php
$current_page = basename($_SERVER['PHP_SELF']);
?>
<li class="nav-item">
<a class="nav-link <?= $current_page === 'dashboard.php' ? 'active' : '' ?>" href="dashboard.php">
<i class="fa fa-tachometer-alt me-2"></i> Dashboard
</a>
</li>
<?php if (isset($_SESSION['role']) && in_array($_SESSION['role'], ['admin', 'manager'])): ?>
<li class="nav-item">
<a class="nav-link <?= $current_page === 'users.php' ? 'active' : '' ?>" href="users.php">
<i class="fa fa-user-shield me-2"></i> Users
</a>
</li>
<li class="nav-item">
<a class="nav-link <?= $current_page === 'departments.php' ? 'active' : '' ?>" href="departments.php">
<i class="fa fa-list me-2"></i> Departments
</a>
</li>
<li class="nav-item">
<a class="nav-link <?= $current_page === 'logs.php' ? 'active' : '' ?>" href="logs.php">
<i class="fa fa-list me-2"></i> Logs
</a>
</li>
<?php endif; ?>
<li class="nav-item">
<a class="nav-link <?= $current_page === 'profile.php' ? 'active' : '' ?>" href="profile.php">
<i class="fa fa-user me-2"></i> Profile
</a>
</li>
<li class="nav-item">
<a class="nav-link <?= $current_page === 'logout.php' ? 'active' : '' ?>" href="logout.php">
<i class="fa fa-sign-out-alt me-2"></i> Logout
</a>
</li>
</ul>
</div>
</div>
</nav>