bootstrap.php 462 B

12345678910
  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")) define("NOLOGIN", '1');
  8. global $conf, $langs, $user, $db;
  9. include_once __DIR__ . '/../../htdocs/main.inc.php';