1. 1.15.x authorize.php BACKDROP_ROOT
  2. 1.15.x cron.php BACKDROP_ROOT
  3. 1.15.x install.php BACKDROP_ROOT
  4. 1.15.x modules/simpletest/tests/http.php BACKDROP_ROOT
  5. 1.15.x modules/simpletest/tests/https.php BACKDROP_ROOT
  6. 1.15.x update.php BACKDROP_ROOT
  7. 1.12.x authorize.php BACKDROP_ROOT
  8. 1.12.x cron.php BACKDROP_ROOT
  9. 1.12.x install.php BACKDROP_ROOT
  10. 1.12.x update.php BACKDROP_ROOT
  11. 1.14.x authorize.php BACKDROP_ROOT
  12. 1.14.x cron.php BACKDROP_ROOT
  13. 1.14.x install.php BACKDROP_ROOT
  14. 1.14.x update.php BACKDROP_ROOT
  15. 1.10.x authorize.php BACKDROP_ROOT
  16. 1.10.x cron.php BACKDROP_ROOT
  17. 1.10.x install.php BACKDROP_ROOT
  18. 1.10.x update.php BACKDROP_ROOT
  19. 1.11.x authorize.php BACKDROP_ROOT
  20. 1.11.x cron.php BACKDROP_ROOT
  21. 1.11.x install.php BACKDROP_ROOT
  22. 1.11.x modules/simpletest/tests/http.php BACKDROP_ROOT
  23. 1.11.x modules/simpletest/tests/https.php BACKDROP_ROOT
  24. 1.11.x update.php BACKDROP_ROOT
  25. 1.13.x authorize.php BACKDROP_ROOT
  26. 1.13.x cron.php BACKDROP_ROOT
  27. 1.13.x install.php BACKDROP_ROOT
  28. 1.13.x update.php BACKDROP_ROOT
  29. 1.7.x authorize.php BACKDROP_ROOT
  30. 1.7.x cron.php BACKDROP_ROOT
  31. 1.7.x install.php BACKDROP_ROOT
  32. 1.7.x update.php BACKDROP_ROOT
  33. 1.8.x authorize.php BACKDROP_ROOT
  34. 1.8.x cron.php BACKDROP_ROOT
  35. 1.8.x install.php BACKDROP_ROOT
  36. 1.8.x update.php BACKDROP_ROOT
  37. 1.9.x authorize.php BACKDROP_ROOT
  38. 1.9.x cron.php BACKDROP_ROOT
  39. 1.9.x install.php BACKDROP_ROOT
  40. 1.9.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/https.php, line 18
Fake an HTTPS request, for use during testing.

Code

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