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":