wp-config.php 784 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. header_remove("X-Powered-By");
  3. call_user_func(
  4. function($dir) {
  5. ini_set("open_basedir", $dir);
  6. set_include_path($dir);
  7. },
  8. dirname(__DIR__)
  9. );
  10. if (extension_loaded("libxml")) {
  11. libxml_disable_entity_loader();
  12. }
  13. /** Absolute path to the WordPress directory. */
  14. if (!defined("ABSPATH")) {
  15. define("ABSPATH", __DIR__ . "/");
  16. }
  17. define("APPLICATION_ENV", call_user_func(
  18. function() {
  19. $environment = getenv("APPLICATION_ENV");
  20. if (in_array($environment, [
  21. "development",
  22. "testing",
  23. "staging",
  24. "production",
  25. ])) {
  26. return $environment;
  27. }
  28. return "production";
  29. }
  30. ));
  31. if ((include ABSPATH . "../config/huisvanherstel-" . APPLICATION_ENV . ".php") === false) {
  32. include ABSPATH . "../config/huisvanherstel.php";
  33. }
  34. /* vi:set ts=4 sw=4 noet: */