Update defines.php

This commit is contained in:
Roman Kelesidis 2023-05-21 11:26:26 +07:00
commit 16e07952e8

View file

@ -11,6 +11,11 @@ if (!defined('BB_ROOT')) {
die(basename(__FILE__)); die(basename(__FILE__));
} }
// Root path
$rootPath = __DIR__;
if (DIRECTORY_SEPARATOR != '/') $rootPath = str_replace(DIRECTORY_SEPARATOR, '/', $rootPath);
define('BB_PATH', dirname($rootPath));
// System // System
define('CHECK_REQIREMENTS', [ define('CHECK_REQIREMENTS', [
'status' => true, 'status' => true,
@ -29,11 +34,6 @@ define('CHECK_REQIREMENTS', [
], ],
]); ]);
// Root path
$rootPath = __DIR__;
if (DIRECTORY_SEPARATOR != '/') $rootPath = str_replace(DIRECTORY_SEPARATOR, '/', $rootPath);
define('BB_PATH', dirname($rootPath));
// Path (trailing slash '/' at the end: XX_PATH - without, XX_DIR - with) // Path (trailing slash '/' at the end: XX_PATH - without, XX_DIR - with)
define('ADMIN_DIR', BB_PATH . '/admin'); define('ADMIN_DIR', BB_PATH . '/admin');
define('DATA_DIR', BB_PATH . '/data'); define('DATA_DIR', BB_PATH . '/data');