- 1 core/authorize.php BACKDROP_ROOT
- 1 core/cron.php BACKDROP_ROOT
- 1 core/install.php BACKDROP_ROOT
- 1 core/modules/simpletest/tests/http.php BACKDROP_ROOT
- 1 core/modules/simpletest/tests/https.php BACKDROP_ROOT
- 1 core/update.php BACKDROP_ROOT
- 1 index.php BACKDROP_ROOT
Defines the root directory of the Backdrop installation.
The dirname() function is used to get path to Backdrop root folder, which avoids resolving of symlinks. This allows the code repository to be a symlink and hosted outside of the web root. See issue #1297.
File
- core/
update.php, line 23 - Administrative page for handling updates from one Backdrop version to another.
Code
define('BACKDROP_ROOT', dirname(dirname($_SERVER['SCRIPT_FILENAME'])))