1. 1.12.x authorize.php BACKDROP_ROOT
  2. 1.12.x cron.php BACKDROP_ROOT
  3. 1.12.x install.php BACKDROP_ROOT
  4. 1.12.x update.php BACKDROP_ROOT
  5. 1.10.x install.php BACKDROP_ROOT
  6. 1.10.x update.php BACKDROP_ROOT
  7. 1.10.x authorize.php BACKDROP_ROOT
  8. 1.10.x cron.php BACKDROP_ROOT
  9. 1.11.x modules/simpletest/tests/http.php BACKDROP_ROOT
  10. 1.11.x modules/simpletest/tests/https.php BACKDROP_ROOT
  11. 1.11.x update.php BACKDROP_ROOT
  12. 1.11.x authorize.php BACKDROP_ROOT
  13. 1.11.x cron.php BACKDROP_ROOT
  14. 1.11.x install.php BACKDROP_ROOT
  15. 1.7.x authorize.php BACKDROP_ROOT
  16. 1.7.x update.php BACKDROP_ROOT
  17. 1.7.x install.php BACKDROP_ROOT
  18. 1.7.x cron.php BACKDROP_ROOT
  19. 1.8.x cron.php BACKDROP_ROOT
  20. 1.8.x authorize.php BACKDROP_ROOT
  21. 1.8.x update.php BACKDROP_ROOT
  22. 1.8.x install.php BACKDROP_ROOT
  23. 1.9.x cron.php BACKDROP_ROOT
  24. 1.9.x update.php BACKDROP_ROOT
  25. 1.9.x authorize.php BACKDROP_ROOT
  26. 1.9.x install.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

./update.php, line 24
Administrative page for handling updates from one Backdrop version to another.

Code

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