diff --git a/login.php b/login.php index be1266b782..6a15d9d6b0 100644 --- a/login.php +++ b/login.php @@ -30,10 +30,10 @@ require_once "includes/require.php"; $path = check_str($_GET["path"]); $msg = check_str($_GET["msg"]); -//set a default login url - //if (strlen($_SESSION['login']['url']['text']) == 0) { - // $_SESSION['login']['url']['text'] = PROJECT_PATH."/index2.php"; - //} +//set a default login destination + if (strlen($_SESSION['login']['destination']['url']) == 0) { + $_SESSION['login']['destination']['url'] = PROJECT_PATH."/user/user_dashboard.php"; + } //add the header include "includes/header.php"; @@ -84,7 +84,8 @@ require_once "includes/require.php"; //show the content echo "

"; - echo "
\n"; + echo "
\n"; + echo "\n"; echo "\n"; echo "\n"; echo "\n";