Эх сурвалжийг харах

Merge pull request #1330 from mafoo/Enhance-home

Go to User Dashboard if it is present
FusionPBX 9 жил өмнө
parent
commit
87798c6f34
1 өөрчлөгдсөн 3 нэмэгдсэн , 0 устгасан
  1. 3 0
      index.php

+ 3 - 0
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";