From b9a7f053dd1d2090c91ff46e1c7ab90c2e33b4fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20M=C3=A9ndez?= <45081533+FerMdez@users.noreply.github.com> Date: Sun, 9 May 2021 20:44:13 +0200 Subject: [PATCH] Add files via upload --- assets/php/common/manager.php | 7 ------- assets/php/common/manager_dao.php | 4 +--- panel_manager/index.php | 3 --- 3 files changed, 1 insertion(+), 13 deletions(-) diff --git a/assets/php/common/manager.php b/assets/php/common/manager.php index 69d5e48..ccde476 100644 --- a/assets/php/common/manager.php +++ b/assets/php/common/manager.php @@ -18,13 +18,6 @@ } //Methods: - public static function getManager($id){ - $bd = new Manager_DAO('complucine'); - if($bd ) { - return $bd->GetManager($id); - } - return ""; - } //Getters && Setters: public function setId($id){ $this->_id = $id; } diff --git a/assets/php/common/manager_dao.php b/assets/php/common/manager_dao.php index 8e1a727..a3a9284 100644 --- a/assets/php/common/manager_dao.php +++ b/assets/php/common/manager_dao.php @@ -1,8 +1,6 @@ get_prefix(); - include_once($prefix.'assets/php/dao.php'); class Manager_DAO extends DAO { diff --git a/panel_manager/index.php b/panel_manager/index.php index c9de885..0d6b56b 100644 --- a/panel_manager/index.php +++ b/panel_manager/index.php @@ -11,9 +11,6 @@ if($_SESSION["login"] && $_SESSION["rol"] === "manager"){ - if(!$_SESSION["cinema"]) - $_SESSION["cinema"] = Manager::getManager(unserialize($_SESSION['user'])->getId())->getIdcinema(); - switch($_GET["state"]){ case "view_ruser": case "view_user":