|
@@ -30,6 +30,11 @@
|
|
require_once "resources/check_auth.php";
|
|
require_once "resources/check_auth.php";
|
|
|
|
|
|
//redirect
|
|
//redirect
|
|
- header("Location: ".PROJECT_PATH."/core/dashboard/");
|
|
|
|
|
|
+ if (isset($_SESSION['login']['destination']['text'])) {
|
|
|
|
+ header("Location: ".$_SESSION['login']['destination']['text']);
|
|
|
|
+ }
|
|
|
|
+ else {
|
|
|
|
+ header("Location: ".PROJECT_PATH."/core/dashboard/");
|
|
|
|
+ }
|
|
|
|
|
|
?>
|
|
?>
|