Update the login to use user_dashboard as the default destination after login.

This commit is contained in:
Mark Crane 2013-01-05 05:59:09 +00:00
parent e5282ea8df
commit 46b95461e2
1 changed files with 6 additions and 5 deletions

View File

@ -30,10 +30,10 @@ require_once "includes/require.php";
$path = check_str($_GET["path"]); $path = check_str($_GET["path"]);
$msg = check_str($_GET["msg"]); $msg = check_str($_GET["msg"]);
//set a default login url //set a default login destination
//if (strlen($_SESSION['login']['url']['text']) == 0) { if (strlen($_SESSION['login']['destination']['url']) == 0) {
// $_SESSION['login']['url']['text'] = PROJECT_PATH."/index2.php"; $_SESSION['login']['destination']['url'] = PROJECT_PATH."/user/user_dashboard.php";
//} }
//add the header //add the header
include "includes/header.php"; include "includes/header.php";
@ -84,7 +84,8 @@ require_once "includes/require.php";
//show the content //show the content
echo "<br><br>"; echo "<br><br>";
echo "<form name='login' METHOD=\"POST\" action=\"".PROJECT_PATH."/index2.php."\">\n"; echo "<div align='center'>\n";
echo "<form name='login' METHOD=\"POST\" action=\"".$_SESSION['login']['destination']['url']."\">\n";
echo "<input type='hidden' name='path' value='$path'>\n"; echo "<input type='hidden' name='path' value='$path'>\n";
echo "<table width='200' border='0'>\n"; echo "<table width='200' border='0'>\n";
echo "<tr>\n"; echo "<tr>\n";