mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 05:43:55 -07:00
Update defines.php
This commit is contained in:
parent
553fd5c6e6
commit
16e07952e8
1 changed files with 5 additions and 5 deletions
|
@ -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');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue