Update index.php
This commit is contained in:
parent
a5f9863f22
commit
45d0570e62
@ -6,6 +6,8 @@
|
|||||||
require_once('../panel_admin/panelAdmin.php');
|
require_once('../panel_admin/panelAdmin.php');
|
||||||
$template = new Template();
|
$template = new Template();
|
||||||
|
|
||||||
|
if(isset($_SESSION["login"]) && $_SESSION["rol"] == "admin") $login = true;
|
||||||
|
|
||||||
if(isset($_REQUEST['state'])) {
|
if(isset($_REQUEST['state'])) {
|
||||||
$panel = new Panel($_REQUEST['state']);
|
$panel = new Panel($_REQUEST['state']);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user