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