mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Redirect to login
login.php has been deprecated.
This commit is contained in:
13
index.php
13
index.php
@@ -35,9 +35,11 @@
|
|||||||
//if config.conf file does not exist then redirect to the install page
|
//if config.conf file does not exist then redirect to the install page
|
||||||
if (file_exists("/usr/local/etc/fusionpbx/config.conf")) {
|
if (file_exists("/usr/local/etc/fusionpbx/config.conf")) {
|
||||||
//BSD
|
//BSD
|
||||||
} elseif (file_exists("/etc/fusionpbx/config.conf")) {
|
}
|
||||||
|
elseif (file_exists("/etc/fusionpbx/config.conf")) {
|
||||||
//Linux
|
//Linux
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
header("Location: /core/install/install.php");
|
header("Location: /core/install/install.php");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
@@ -49,7 +51,8 @@
|
|||||||
if (isset($_SESSION["username"])) {
|
if (isset($_SESSION["username"])) {
|
||||||
if (isset($_SESSION['login']['destination']['text'])) {
|
if (isset($_SESSION['login']['destination']['text'])) {
|
||||||
header("Location: ".$_SESSION['login']['destination']['text']);
|
header("Location: ".$_SESSION['login']['destination']['text']);
|
||||||
} elseif (file_exists($_SERVER["PROJECT_ROOT"]."/core/dashboard/app_config.php")) {
|
}
|
||||||
|
elseif (file_exists($_SERVER["PROJECT_ROOT"]."/core/dashboard/app_config.php")) {
|
||||||
header("Location: ".PROJECT_PATH."/core/dashboard/");
|
header("Location: ".PROJECT_PATH."/core/dashboard/");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@@ -61,11 +64,9 @@
|
|||||||
//use custom index, if present, otherwise use custom login, if present, otherwise use default login
|
//use custom index, if present, otherwise use custom login, if present, otherwise use default login
|
||||||
if (file_exists($_SERVER["PROJECT_ROOT"]."/themes/".$_SESSION['domain']['template']['name']."/index.php")) {
|
if (file_exists($_SERVER["PROJECT_ROOT"]."/themes/".$_SESSION['domain']['template']['name']."/index.php")) {
|
||||||
require_once "themes/".$_SESSION['domain']['template']['name']."/index.php";
|
require_once "themes/".$_SESSION['domain']['template']['name']."/index.php";
|
||||||
} else if (file_exists($_SERVER["PROJECT_ROOT"]."/themes/".$_SESSION['domain']['template']['name']."/login.php")) {
|
|
||||||
require_once "themes/".$_SESSION['domain']['template']['name']."/login.php";
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
require_once "resources/login.php";
|
header("Location: ".PROJECT_PATH."/core/dashboard/");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user