Update index.php
This commit is contained in:
parent
0d276ac0c1
commit
c3b783663b
@ -1,11 +1,11 @@
|
|||||||
<!DOCTYPE HTML>
|
<!DOCTYPE HTML>
|
||||||
<?php
|
<?php
|
||||||
session_start();
|
|
||||||
|
|
||||||
include_once('../assets/php/config.php');
|
include_once('../assets/php/config.php');
|
||||||
|
|
||||||
require_once('../panel_admin/panelAdmin.php');
|
require_once('../panel_admin/panelAdmin.php');
|
||||||
|
|
||||||
$login=false;
|
$login=false;
|
||||||
if(isset($_SESSION["login"]) && $_SESSION["rol"] == "admin") $login = true;
|
if(isset($_SESSION["login"]) && $_SESSION["rol"] == "admin") $login = true;
|
||||||
if(isset($_GET['state'])) {
|
if(isset($_GET['state'])) {
|
||||||
|
Loading…
Reference in New Issue
Block a user