nav.php 1.1 KB

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