<?php
session_start();
if (!isset($_SESSION['loggedin'])) {
	header("location:"."index.php");
	exit();
}
?>
<!DOCTYPE html>
<html lang="en">

<head>

  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <meta name="description" content="">
  <meta name="author" content="">

  <title>Perfect Player Panel</title>

<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">

  <!-- Custom styles for this template-->
  <link href="css/sb-admin.css" rel="stylesheet">
  <link rel="stylesheet" type="text/css" href="css/jquery.datetimepicker.min.css"/>

</head>

<body id="page-top">

  <nav class="navbar navbar-expand navbar-dark bg-dark sticky-top">

    <a class="navbar-brand mr-1" href="perfectManager.php">Perfect Player Panel</a>

    <button class="btn btn-link btn-sm text-white order-1 order-sm-0" id="sidebarToggle" href="#">
      <i class="fa fa-bars"></i>
    </button>
	<form class="d-none d-md-inline-block form-inline ml-auto mr-0 mr-md-3 my-2 my-md-0">
		<div class="form-group">
			<div>
				<a href="logout.php" text-white >Perfect Player Logout</a>
			</div>
		</div>
	</form>
  </nav>

  <div id="wrapper">
    <!-- Sidebar -->
    <ul class="sidebar navbar-nav">
	  <li class="nav-item <?php if(basename($_SERVER["SCRIPT_FILENAME"], '.php') == 'perfectManager'){echo('active');}?>">
        <a class="nav-link" href="perfectManager.php">
         <span>Edit Dns</span></a>
      </li>
	  <li class="nav-item <?php if(basename($_SERVER["SCRIPT_FILENAME"], '.php') == 'user'){echo('active');}?>">
        <a class="nav-link" href="user.php">
          <span>Update User / Pass</span></a>
      </li>    </ul>



