From cd5390ffd9098616c0ad43f5355bc2000b124a86 Mon Sep 17 00:00:00 2001 From: Matthew Vale Date: Mon, 14 Dec 2015 09:13:18 +0000 Subject: [PATCH] Go to User Dashboard if it is present see - https://github.com/fusionpbx/fusionpbx/issues/1284 --- index.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.php b/index.php index d8b23953cb..936ef17ed5 100644 --- a/index.php +++ b/index.php @@ -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";