From fff6f2c6fd610b6703c9c16ccc955a5108118a6f Mon Sep 17 00:00:00 2001 From: OscarRui <79144467+OscarRui@users.noreply.github.com> Date: Thu, 27 May 2021 10:42:24 +0200 Subject: [PATCH] Add files via upload --- panel_manager/index.php | 45 ++++++++++++++++++++++++++++++++--------- 1 file changed, 35 insertions(+), 10 deletions(-) diff --git a/panel_manager/index.php b/panel_manager/index.php index f40a535..7341e90 100644 --- a/panel_manager/index.php +++ b/panel_manager/index.php @@ -12,39 +12,64 @@ $manager = false; $manager = new Manager(null, null, null, null, null); - $state = isset($_GET['state']) ? $_GET['state'] : ''; switch($state){ case "view_user": + $_SESSION["rol"] = null; + $panel .= "
+
+
+
+

¡ATENCIÓN!


+

Está viendo la web como un Usuario NO Registrado.

+ +
+
+
+
+ "; break; case "view_ruser": + $_SESSION["rol"] = "user"; + $panel .= "
+
+
+
+

¡ATENCIÓN!


+

Está viendo la web como un Usuario Registrado.

+ +
+
+
+
+ "; break; case "manage_halls": - $panel = Manager_panel::manage_halls($manager); + $panel .= Manager_panel::manage_halls($manager); break; case "new_hall": - $panel = Manager_panel::new_hall($manager); + $panel .= Manager_panel::new_hall($manager); break; case "edit_hall": - $panel = Manager_panel::edit_hall($manager); + $panel .= Manager_panel::edit_hall($manager); break; case "manage_sessions": - $panel = Manager_panel::manage_sessions($manager); + $panel .= Manager_panel::manage_sessions($manager); break; case "new_session": - $panel = Manager_panel::new_session($manager); + $panel .= Manager_panel::new_session($manager); break; case "edit_session": - $panel = Manager_panel::edit_session($manager); + $panel .= Manager_panel::edit_session($manager); break; case "select_film": - $panel = Manager_panel::select_film($template,$manager); + $panel .= Manager_panel::select_film($template,$manager); break; case "success": - $panel = Manager_panel::success(); + $panel .= Manager_panel::success(); break; default: - $panel = Manager_panel::welcomeAdmin($manager); + $panel .= Manager_panel::welcomeAdmin($manager); break; } }