index.php 504 B

12345678910111213141516171819202122232425
  1. <?php
  2. require_once('app.php');
  3. if (!isset($_SESSION['user'])) {
  4. header("Location: /login?redirect=https://tankernn.eu/admin");
  5. }
  6. ?>
  7. <!DOCTYPE html>
  8. <html>
  9. <?php include 'pageparts/head.php'; ?>
  10. <body>
  11. <?php
  12. include 'pageparts/sidemenu.php';
  13. echo '<div id="page-wrapper">';
  14. echo '<div class="alert-wrapper">';
  15. list_messages();
  16. echo '</div>';
  17. if(isset($_GET['p']))
  18. include "pages/" . $_GET['p'] . ".php";
  19. else
  20. include "pages/dashboard.php";
  21. echo '</div>';
  22. ?>
  23. </body>
  24. </html>