bootstrap.php 517 B

12345678910111213141516171819202122
  1. <?php
  2. $engine = dirname(dirname(dirname(__FILE__)));
  3. date_default_timezone_set('America/Los_Angeles');
  4. error_reporting(E_ALL | E_STRICT);
  5. /**
  6. * This is here as a temporary solution only. Instead of adding more global
  7. * state to this file as we migrate tests, try to refactor the code to be
  8. * testable without global state.
  9. */
  10. global $CONFIG;
  11. $CONFIG = (object) array(
  12. 'dbprefix' => 'elgg_',
  13. 'boot_complete' => false,
  14. 'wwwroot' => 'http://localhost/',
  15. 'site_guid' => 1,
  16. );
  17. require_once "$engine/load.php";