bootstrap.php 537 B

12345678910111213141516
  1. <?php
  2. // Defined some constants and load Dolibarr env to reduce PHPStan bootstrap that fails to load a lot of things.
  3. //define('DOL_DOCUMENT_ROOT', __DIR__ . '/../../htdocs');
  4. //define('DOL_DATA_ROOT', __DIR__ . '/../../documents');
  5. //define('DOL_URL_ROOT', '/');
  6. // Load the main.inc.php file to have functions env defined
  7. if (!defined("NOLOGIN")) {
  8. define("NOLOGIN", '1');
  9. }
  10. if (!defined("NOHTTPSREDIRECT")) {
  11. define("NOHTTPSREDIRECT", '1');
  12. }
  13. global $conf, $langs, $user, $db;
  14. include_once __DIR__ . '/../../htdocs/main.inc.php';