SW/panel_admin/index.php
2021-04-30 20:49:21 +02:00

61 lines
1.3 KiB
PHP

<!DOCTYPE HTML>
<?php
//General Config File:
include_once('../assets/php/config.php');
require_once($prefix.'panel_admin/panelAdmin.php');
$login=false;
if(isset($_SESSION["login"]) && $_SESSION["rol"] == "admin") $login = true;
if(isset($_GET['state'])) {
$panel = new Panel($_GET['state'], $login);
}
else {
$panel = new Panel('', $login);
}
// IMPORTANTE:
// VERIFICAR QUE ES ADMIN, SI NO, MOSTRAR MENSAJE DE "ERROR"
?>
<!--
Práctica 2 - Sistemas Web | Grupo D
CompluCine - FDI-cines
-->
<html lang="es">
<!-- Head -->
<?php
$template->print_head();
?>
<body>
<!-- Header -->
<?php
$template->print_header();
?>
<!-- Main -->
<?php
$template->print_main();
?>
<!-- Panel -->
<div class="row">
<!-- Panel Menu -->
<?php
$template->print_panelMenu("admin");
?>
<!-- Contents -->
<div class="row">
<?php
$template->print_msg();
$panel->showPanel();
?>
</div>
</div>
<!-- Footer -->
<?php
$template->print_footer();
?>
</body>
</html>