Commit afd1f261 by Roy Junedi Simamora

edit

parent d2e983a8
...@@ -19,15 +19,17 @@ ...@@ -19,15 +19,17 @@
</div> </div>
<ul class="nav navbar-nav"> <ul class="nav navbar-nav">
<li><a href="index.php"><span class="glyphicon glyphicon-home"></span>Home</a></li> <li><a href="index.php"><span class="glyphicon glyphicon-home"></span>Home</a></li>
<?php <?php
if(isset($_SESSION['admin'])){ if(!isset($_SESSION['user']) && !isset($_SESSION['admin'])){
echo'<li><a href="admin_menu.php" ><span class="glyphicon glyphicon-th-list"></span>Olah Menu</a></li>'; echo' <li><a href="member_menu.php" ><span class="glyphicon glyphicon-th-list"></span>List Menu</a></li>';
} }else if(isset($_SESSION['admin'])){
elseif(isset($_SESSION['user'])){ echo'<li><a href="admin_menu.php" ><span class="glyphicon glyphicon-th-list"></span>Olah Menu</a></li>';
echo' <li><a href="member_menu.php" ><span class="glyphicon glyphicon-th-list"></span>List Menu</a></li>'; }else if (isset($_SESSION['user'])){
$username = $_SESSION['username']; echo' <li><a href="member_menu.php" ><span class="glyphicon glyphicon-th-list"></span>List Menu</a></li>';
} $username = $_SESSION['username'];
}
?> ?>
<li><a href="profil_bulbul.php"><span class="glyphicon glyphicon-camera"></span> Profil BulBul</a></li> <li><a href="profil_bulbul.php"><span class="glyphicon glyphicon-camera"></span> Profil BulBul</a></li>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment