<?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>PAINEL ADM XCIPTV V4</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">

      <button class="btn btn-link btn-sm text-white order-1 order-sm-0" id="sidebarToggle" href="#">
      <i class="fa fa-bars"></i>
    </button>
    
    <a class="navbar-brand mr-1" href="app.php">PAINEL ADM XCIPTV V4</a>

	<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">SAIR</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') == 'app'){echo('active');}?>">
        <a class="nav-link" href="app.php"><span>MEU APLICATIVO</span></a>
      </li>
	  <li class="nav-item <?php if(basename($_SERVER["SCRIPT_FILENAME"], '.php') == 'announcement'){echo('active');}?>">
        <a class="nav-link" href="announcement.php">
                    <span>ANUNCIOS</span></a>
      </li>
	  <li class="nav-item <?php if(basename($_SERVER["SCRIPT_FILENAME"], '.php') == 'maintenance'){echo('active');}?>">
        <a class="nav-link" href="maintenance.php"><span>MANUTENÇÃO</span></a>
      </li>
	  <li class="nav-item <?php if(basename($_SERVER["SCRIPT_FILENAME"], '.php') == 'send_message'){echo('active');}?>">
        <a class="nav-link" href="send_message.php"><span>ENVIAR MENSAGEM</span></a>
      </li>
      <li class="nav-item <?php if(basename($_SERVER["SCRIPT_FILENAME"], '.php') == 'player'){echo('active');}?>">
        <a class="nav-link" href="player.php"><span>OPÇÕES DE PLAYER</span></a>
      </li>
      <li class="nav-item <?php if(basename($_SERVER["SCRIPT_FILENAME"], '.php') == 'theme'){echo('active');}?>">
        <a class="nav-link" href="theme.php"><span>TEMAS</span></a>
      </li> 
       <li class="nav-item <?php if(basename($_SERVER["SCRIPT_FILENAME"], '.php') == 'cloud'){echo('active');}?>">
        <a class="nav-link" href="cloud.php"><span>Cloud Backup</span></a>
      </li>	  
      <li class="nav-item <?php if(basename($_SERVER["SCRIPT_FILENAME"], '.php') == 'update'){echo('active');}?>">
        <a class="nav-link" href="update.php"><span>FORÇAR ATUALIZAÇÃO</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>ATUALIZAR USUARIO / SENHA</span></a>
      </li>
       <li class="nav-item <?php if(basename($_SERVER["SCRIPT_FILENAME"], '.php') == 'FileLinked'){echo('active');}?>"> 
         <a class="nav-link" href="https://www.filelinked.com/login">
          <span>FileLinked</span></a>
      </li>
      <li class="nav-item <?php if(basename($_SERVER["SCRIPT_FILENAME"], '.php') == 'DropBox'){echo('active');}?>"> 
         <a class="nav-link" href="https://db.tt/hFLES2rZ">
          <span>DropBox</span></a>
      </li>
      <li class="nav-item <?php if(basename($_SERVER["SCRIPT_FILENAME"], '.php') == 'Mega'){echo('active');}?>"> 
         <a class="nav-link" href="https://mega.nz/aff=zqNIqqi1niM">
          <span>Mega</span></a>
      </li>




   </ul>

