From ebc7d4708c78a6e4843cf127b0da47c92173d42c Mon Sep 17 00:00:00 2001 From: marian1010 <79144276+marian1010@users.noreply.github.com> Date: Wed, 2 Jun 2021 12:17:18 +0200 Subject: [PATCH] update admin muestra de mensaje al usar la funciona de ver como --- panel_admin/index.php | 6 +++--- panel_admin/panelAdmin.php | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/panel_admin/index.php b/panel_admin/index.php index 1da8328..faa1cbb 100644 --- a/panel_admin/index.php +++ b/panel_admin/index.php @@ -71,13 +71,13 @@ }; break; case 'un': - AdminPanel::see_like_user(); + $reply=AdminPanel::see_like_user(); break; case 'ur': - AdminPanel::see_like_registed_user(); + $reply=AdminPanel::see_like_registed_user(); break; case 'ag': - AdminPanel::see_like_manager(); + $reply=AdminPanel::see_like_manager(); break; default: $reply=AdminPanel:: panel(); diff --git a/panel_admin/panelAdmin.php b/panel_admin/panelAdmin.php index 2786fbe..5e94113 100644 --- a/panel_admin/panelAdmin.php +++ b/panel_admin/panelAdmin.php @@ -434,8 +434,8 @@ $_SESSION["lastRol"] = $_SESSION["rol"]; //unset($_SESSION["rol"]); $_SESSION["rol"] = null; - header("Location: {$_SERVER['PHP_SELF']}"); - $_SESSION['message'] = "
+ //header("Location: {$_SERVER['PHP_SELF']}"); + return $reply = "
@@ -451,8 +451,8 @@ static function see_like_registed_user(){ $_SESSION["lastRol"] = $_SESSION["rol"]; $_SESSION["rol"] = "user"; - header("Location: {$_SERVER['PHP_SELF']}"); - $_SESSION['message'] = "
+ //header("Location: {$_SERVER['PHP_SELF']}"); + return $reply = "
@@ -468,8 +468,8 @@ static function see_like_manager(){ $_SESSION["lastRol"] = $_SESSION["rol"]; $_SESSION["rol"] = "manager"; - header("Location: {$_SERVER['PHP_SELF']}"); - $_SESSION['message'] = "
+ //header("Location: {$_SERVER['PHP_SELF']}"); + return $reply = "