<?php
include 'core/class/include.php';


// ID des admin
$admin_id_01 = 3;
$admin_id_02 = 4;
$admin_id_03 = 5;
$id_aut = $_SESSION['id'];

if($id_aut == $admin_id_01 OR $id_aut == $admin_id_02 OR $id_aut == $admin_id_03 OR $id_aut == 1) {
  $admin = true;
} else {
  $admin = false;
}

// Redirect the user if he does not authenticate
if (!Account::isAuthentified())
{
    header('Location: login.php');
}
?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
	<title>Dashboard</title>
	<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="css/font-awesome.min.css">
    <link rel="stylesheet" type="text/css" href="css/dataTables.bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="css/custom.css">
</head>
<style>
  .sorting_asc{
    background-color: #CD5C5C!important;
    color: white!important;
}

  .sorting_desc{
    background-color: #CD5C5C!important;
    color: white!important;
}


.modal-title{
  color: black!important;
}
.sorting{
    background-color: #CD5C5C!important;
    color: white!important;
}

.sorting_1{
    background-color: white!important;
    color: black!important;
}

td{
    background-color: white!important;
    color: black!important;
}

li{
    color: white!important;
}

label{
    color: white!important;
}

div{
    color: white!important;
}

select{
    color: black!important;
}

input{
    color: black!important;
}

a{
    color: white!important;
}

    body
    {
      background: url(https://i.imgur.com/unKavQO.gif) no-repeat center center fixed;
      background-size: cover;
    }

</style>
<body>
    <?php include('includes/navbar.php'); ?>
    <div class="container-fluid">
        <div class="row-fluid">
            <div class="col-md-2">
                <ul class="nav nav-pills nav-stacked">
                  <li class="active"><a data-toggle="tab" href="#logs"><i class="fa fa-list-alt"></i><font color="white">&nbsp;Logs</font></a></li>
                  <li><a data-toggle="tab" href="#server"><i class="fa fa-server"></i><font color="white">&nbsp;Serveurs</font></a></li>
                  <?php if($admin == true) { ?>
                  <li><a data-toggle="tab" href="#users"><i class="fa fa-user"></i><font color="white">&nbsp;Utilisateur</font></a></li>
                  <li><a data-toggle="tab" href="#payload"><i class="fa fa-file-code-o"></i><font color="white">&nbsp;Payload</font></a></li>
                  <li><a data-toggle="tab" href="#params"><i class="fa fa-wrench"></i><font color="white">&nbsp;Parametre</font></a></li>
                  <?php } ?>
                  <li><a data-toggle="tab" href="#obfuscation"><i class="fa fa-cogs"></i><font color="white">&nbsp;Obfuscation</font></a></li>
                  
                </ul>
            </div>
            
            <div class="col-md-10">
                <div class="tab-content">
                  <?php
                  include('includes/logs.php');
                  include('includes/server.php');
                  if($admin == true) {
                  include('includes/users.php');
                  include('includes/payload.php');
                  include('includes/params.php');
                  }
                  include('includes/obfuscation.php');
                  ?>
                </div>
            </div>
        </div>
    </div>
</body>

<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.dataTables.min.js"></script>
<script src="js/dataTables.bootstrap.min.js"></script>
<script src="js/custom.js"></script>
</html>