Go to User Dashboard if it is present

see - https://github.com/fusionpbx/fusionpbx/issues/1284
This commit is contained in:
Matthew Vale 2015-12-14 09:13:18 +00:00
parent 349f6df103
commit cd5390ffd9
1 changed files with 3 additions and 0 deletions

View File

@ -58,6 +58,9 @@ include "root.php";
if (strlen($_SESSION["username"]) > 0) {
if (strlen($_SESSION['login']['destination']['url']) > 0) {
header("Location: ".$_SESSION['login']['destination']['url']);
}elseif(file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."core/user_settings/user_dashboard.php"))
{
header("Location: ".$_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."core/user_settings/user_dashboard.php");
}
else {
require_once "resources/header.php";