diff --git a/be_login.php b/be_login.php index 25ff9e9..1202663 100644 --- a/be_login.php +++ b/be_login.php @@ -13,7 +13,10 @@ } if(isset($_SESSION['uToken_BE'])){ if($auth->CheckRole($_SESSION['uToken_BE']) == "administrator" || $auth->CheckRole($_SESSION['uToken_BE']) == "moderator") - header("location: be_panel.php"); + if(isset($_GET['goto'])) + header("location: {$_GET['goto']}"); + else + header("location: be_panel.php"); else header("location: index.php"); } diff --git a/be_panel.php b/be_panel.php index 2d9edda..05313c1 100644 --- a/be_panel.php +++ b/be_panel.php @@ -9,7 +9,7 @@ if(!isset($_COOKIE['uToken_BE'])) header("location: be_login.php"); - $site = ($_POST['site'] ?? "home"); + $site = ($_GET['s'] ?? "home"); $elements = array(); $dashboard_tabs_dir = "vendor/blog-engine/php/Dashboard/Tabs"; @@ -40,12 +40,12 @@