12345678910111213141516171819202122232425 |
- <?php
- require_once('app.php');
- if (!isset($_SESSION['user'])) {
- header("Location: /login?redirect=https://tankernn.eu/admin");
- }
- ?>
- <!DOCTYPE html>
- <html>
- <?php include 'pageparts/head.php'; ?>
- <body>
- <?php
- include 'pageparts/sidemenu.php';
- echo '<div id="page-wrapper">';
- echo '<div class="alert-wrapper">';
- list_messages();
- echo '</div>';
- if(isset($_GET['p']))
- include "pages/" . $_GET['p'] . ".php";
- else
- include "pages/dashboard.php";
- echo '</div>';
- ?>
- </body>
- </html>
|