1. 1.17.x authorize.php BACKDROP_ROOT
  2. 1.17.x cron.php BACKDROP_ROOT
  3. 1.17.x install.php BACKDROP_ROOT
  4. 1.17.x modules/simpletest/tests/http.php BACKDROP_ROOT
  5. 1.17.x modules/simpletest/tests/https.php BACKDROP_ROOT
  6. 1.17.x update.php BACKDROP_ROOT
  7. 1.15.x authorize.php BACKDROP_ROOT
  8. 1.15.x cron.php BACKDROP_ROOT
  9. 1.15.x install.php BACKDROP_ROOT
  10. 1.15.x modules/simpletest/tests/http.php BACKDROP_ROOT
  11. 1.15.x modules/simpletest/tests/https.php BACKDROP_ROOT
  12. 1.15.x update.php BACKDROP_ROOT
  13. 1.16.x authorize.php BACKDROP_ROOT
  14. 1.16.x cron.php BACKDROP_ROOT
  15. 1.16.x install.php BACKDROP_ROOT
  16. 1.16.x modules/simpletest/tests/http.php BACKDROP_ROOT
  17. 1.16.x modules/simpletest/tests/https.php BACKDROP_ROOT
  18. 1.16.x update.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 and #1862.

File

modules/simpletest/tests/http.php, line 18
Fake an HTTP request, for use during testing.

Code

define('BACKDROP_ROOT', dirname(dirname(dirname(dirname(dirname($_SERVER['SCRIPT_FILENAME']))))))