bootstrap.php 616 B

1234567891011121314
  1. <?php
  2. // Example to use PHPStan
  3. // cd git/dolibarr
  4. // /usr/bin/php7.2 ../phpstan.phar -l1 analyze htdocs/societe/website.php --memory-limit 2G
  5. // Defined some constants and load Dolibarr env to reduce PHPStan bootstrap that fails to load a lot of things.
  6. define('DOL_DOCUMENT_ROOT', __DIR__ . '/../../htdocs');
  7. define('DOL_DATA_ROOT', __DIR__ . '/../../documents');
  8. define('DOL_URL_ROOT', '/');
  9. // Load the main.inc.php file to have functions llx_Header and llx_Footer defined
  10. if (! defined("NOLOGIN")) define("NOLOGIN", '1');
  11. global $conf, $langs, $user, $db;
  12. include_once __DIR__ . '/../../htdocs/main.inc.php';