-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnavigator.php
executable file
·29 lines (29 loc) · 1.04 KB
/
navigator.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
<?php
session_start();
?>
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href=".">SBnotes</a>
</div>
<ul class="nav navbar-nav">
<li><a href="index.php">Home</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="logout.php"><span class="glyphicon glyphicon-log-out"></span> Logout</a></li>
<li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="#"> <?php echo $_SESSION["username"]; ?><span class="caret glyphicon"></span></a>
<ul class="dropdown-menu">
<?php
if ($_SESSION["username"] === "admin") {
echo '<li><a href="invites.php">Show Invites</a></li>';
}
?>
<li><a href="actions/encnot.php">Encrypt Notes</a></li>
<li><a href="view.php">View Notes</a></li>
<li><a href="actions/setpassword.php">Set Notes Password</a></li>
<li><a href="actions/reset-password.php">Reset Account Password</a></li>
</ul>
</li>
</ul>
</div>
</nav>