From 46b95461e25bb5f36f7ce91e23ed675f4e25a317 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Sat, 5 Jan 2013 05:59:09 +0000 Subject: [PATCH] Update the login to use user_dashboard as the default destination after login. --- login.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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";