nav.php 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. if (check_login ()) {
  3. ?>
  4. <nav class="navbar navbar-default">
  5. <div class="container">
  6. <div class="navbar-header">
  7. <ul class="nav navbar-nav navbar-left">
  8. <a class="navbar-brand" href="index.php"><span
  9. class="glyphicon glyphicon-home">&nbsp;</span>
  10. <?php
  11. echo $ini['app_title'];
  12. ?>
  13. </a>
  14. <li><a href="adminpwd.php">Admin password</a></li>
  15. <li><a href="logout.php">Logout</a></li>
  16. <li><a href="selfservice.php">User Self Service</a></li>
  17. </ul>
  18. </div>
  19. </div>
  20. </nav>
  21. <?php
  22. } else {
  23. ?>
  24. <nav class="navbar navbar-default">
  25. <div class="container">
  26. <div class="navbar-header">
  27. <ul class="nav navbar-nav navbar-left">
  28. <a class="navbar-brand" href="index.php"><span
  29. class="glyphicon glyphicon-home">&nbsp;</span>
  30. <?php
  31. echo $ini['app_title'];
  32. ?>
  33. </a>
  34. <li><a href="login.php">Login</a></li>
  35. <li><a href="selfservice.php">User Self Service</a></li>
  36. <li><a href="forgotten.php">Password forgotten</a></li>
  37. </ul>
  38. </div>
  39. </div>
  40. </nav>
  41. <?php
  42. }
  43. ?>