<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);

session_start();

if (!isset($_SESSION['loggedin']))
{
	header("location:"."login.php");
	exit();
}

?>

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
	<meta name="author" content="FTG">
	<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
	<link href="https://cdn.datatables.net/1.10.20/css/jquery.dataTables.min.css" rel="stylesheet" />
	<link rel="stylesheet" href="css/bootstrap-datetimepicker.css">
	<link href="css/themes/flatly/bootstrap.css" rel="stylesheet" title="main">
	<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.19/css/dataTables.bootstrap4.min.css">
	<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
	<link href="css/simple-sidebar.css" rel="stylesheet">
	<link href="css/switch.css" rel="stylesheet" /> 
</head>

<body>

  <div class="d-flex" id="wrapper">
	<!-- Sidebar -->
	<div class="" id="sidebar-wrapper">
	  <div class="sidebar-heading">Loja Apps Panel </div>
	  <span><a class="list-grup-item" href= target="_blank">&nbsp&nbsp&nbsp&nbsp&#169  <? echo date("Y")?> Loja Apps Panel </a> </span></center>
	  <div class="list-group list-group-flush">
	      
		<a class="list-group-item list-group-item-action " href="main.php">
		<i class="fa fa-cogs"></i>	Inserir Apps </a>
		
		<a class="list-group-item list-group-item-action " href= target="_blank">
		<i class="fa fa-cogs"></i>	+ Apks Scripts </a>
		
		<a class="list-group-item list-group-item-action " href="user_update.php">
		<i class="fa fa-user" ></i>	 Admin </a>
	  </div>
	</div>
	<!-- /#sidebar-wrapper -->

	<!-- Page Content -->
	<div id="page-content-wrapper">


	  <nav class="navbar navbar-expand-lg navbar-dark ">

		<button class="btn btn-primary" id="menu-toggle"><img src="http://lojaweb.jbrapk.com/jtec/img/banner.png" width="25" height="25" class="d-flex justify-content-center text-allign centre" alt=""></button>
		
	  &nbsp;&nbsp;

		<div class="btn-group">
		<button type="button" class="btn btn-warning dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Themes</button>
		<div class="dropdown-menu">
			<strong><h5><li><a href="#" class="change-style-menu-item" rel="cerulean"><i class="fa fa-pencil"> Cerulean</i></a></li>      </strong></h5>
			<strong><h5><li><a href="#" class="change-style-menu-item" rel="cosmo"><i class="fa fa-pencil"> Cosmo</i></a></li>            </strong></h5>
			<strong><h5><li><a href="#" class="change-style-menu-item" rel="cyborg"><i class="fa fa-pencil"> Cyborg</i></a></li>          </strong></h5>
			<strong><h5><li><a href="#" class="change-style-menu-item" rel="darkly"><i class="fa fa-pencil"> Darkly (default)</i></a></li></strong></h5>
			<strong><h5><li><a href="#" class="change-style-menu-item" rel="flatly"><i class="fa fa-pencil"> Flatly</i></a></li>          </strong></h5>
			<strong><h5><li><a href="#" class="change-style-menu-item" rel="journal"><i class="fa fa-pencil"> Journal</i></a></li>        </strong></h5>
			<strong><h5><li><a href="#" class="change-style-menu-item" rel="litera"><i class="fa fa-pencil"> Litera</i></a></li>          </strong></h5>
			<strong><h5><li><a href="#" class="change-style-menu-item" rel="lumen"><i class="fa fa-pencil"> Lumen</i></a></li>            </strong></h5>
			<strong><h5><li><a href="#" class="change-style-menu-item" rel="lux"><i class="fa fa-pencil"> Lux</i></a></li>                </strong></h5>
			<strong><h5><li><a href="#" class="change-style-menu-item" rel="materia"><i class="fa fa-pencil"> Materia</i></a></li>        </strong></h5>
			<strong><h5><li><a href="#" class="change-style-menu-item" rel="minty"><i class="fa fa-pencil"> Minty</i></a></li>            </strong></h5>
			<strong><h5><li><a href="#" class="change-style-menu-item" rel="pulse"><i class="fa fa-pencil"> Pulse</i></a></li>            </strong></h5>
			<strong><h5><li><a href="#" class="change-style-menu-item" rel="sandstone"><i class="fa fa-pencil"> Sandstone</i></a></li>    </strong></h5>
			<strong><h5><li><a href="#" class="change-style-menu-item" rel="simplex"><i class="fa fa-pencil"> Simplex</i></a></li>        </strong></h5>
			<strong><h5><li><a href="#" class="change-style-menu-item" rel="sketchy"><i class="fa fa-pencil"> Sketchy</i></a></li>        </strong></h5>
			<strong><h5><li><a href="#" class="change-style-menu-item" rel="slate"><i class="fa fa-pencil"> Slate</i></a></li>            </strong></h5>
			<strong><h5><li><a href="#" class="change-style-menu-item" rel="solar"><i class="fa fa-pencil"> Solar</i></a></li>            </strong></h5>
			<strong><h5><li><a href="#" class="change-style-menu-item" rel="spacelab"><i class="fa fa-pencil"> Spacelab</i></a></li>      </strong></h5>
			<strong><h5><li><a href="#" class="change-style-menu-item" rel="superhero"><i class="fa fa-pencil"> Superhero</i></a></li>    </strong></h5>
			<strong><h5><li><a href="#" class="change-style-menu-item" rel="united"><i class="fa fa-pencil"> United</i></a></li>          </strong></h5>
			<strong><h5><li><a href="#" class="change-style-menu-item" rel="yeti"><i class="fa fa-pencil"> Yeti</i></a></li>              </strong></h5>
		</div>
		</div>
		
		<a href="logout.php" class="btn btn-danger ml-auto mr-1">Logout</a>
	  </nav>



	  <div class="container-fluid"><br>


<?php

$message = '<div class="alert alert-success" id="success-alert"><center><h4 style="color:white!important"><i class="icon fa fa-check"></i>Updated!</h4></center></div>';
if(isset($_GET['status'])){
	if ($_GET['status'] == '1'){
		echo $message;
	}
}
?>