Update index.php

This commit is contained in:
marian1010 2021-04-13 21:58:32 +02:00
parent a5f9863f22
commit 45d0570e62
1 changed files with 2 additions and 0 deletions

View File

@ -6,6 +6,8 @@
require_once('../panel_admin/panelAdmin.php');
$template = new Template();
if(isset($_SESSION["login"]) && $_SESSION["rol"] == "admin") $login = true;
if(isset($_REQUEST['state'])) {
$panel = new Panel($_REQUEST['state']);
}