11 lines
294 B
PHP
11 lines
294 B
PHP
<?php
|
|
session_start();
|
|
if (!isset($_SESSION['rol'])) {
|
|
header("Location: ../html/Login.html");
|
|
exit();
|
|
}
|
|
$rol = $_SESSION['rol']; // admin, cancha, cantina
|
|
$usuario = $_SESSION['usuario'] ?? '';
|
|
$usuarioId = $_SESSION['id_usuario'] ?? null;
|
|
include __DIR__ . '/../html/Cantina.html';
|
|
?>
|