diff --git a/install/index.php b/install/index.php index c222fc494..3d98e1c99 100644 --- a/install/index.php +++ b/install/index.php @@ -9,8 +9,13 @@ HB9HIL - First refactoring - January 2024 DJ7NT - Docker Readiness - April 2024 HB9HIL - Big UX and backend upgrade - July 2024 */ +require_once('includes/install_config/install_lib.php'); +$http_scheme = is_https() ? "https" : "http"; -if (!file_exists('.lock')) { +$directory = ltrim(str_replace('/install', '', dirname($_SERVER['SCRIPT_NAME'])), '/'); +$base_url = $http_scheme . '://' . $_SERVER['HTTP_HOST'] . "/" . $directory . "/"; + +if (!file_exists('.lock') && !file_exists('../application/config/config.php') && !file_exists('../application/config/docker/config.php')) { include 'includes/interface_assets/header.php'; @@ -344,10 +349,6 @@ if (!file_exists('.lock')) {

-
@@ -1996,8 +1997,8 @@ if (!file_exists('.lock')) {