Teknik is a suite of services with attractive and functional interfaces. https://www.teknik.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

console 907B

123456789101112131415161718192021222324252627282930
  1. #!/usr/bin/env php
  2. <?php
  3. if (!defined('PIWIK_DOCUMENT_ROOT')) {
  4. define('PIWIK_DOCUMENT_ROOT', dirname(__FILE__) == '/' ? '' : dirname(__FILE__));
  5. }
  6. if (!defined('PIWIK_INCLUDE_PATH')) {
  7. define('PIWIK_INCLUDE_PATH', PIWIK_DOCUMENT_ROOT);
  8. }
  9. if (!defined('PIWIK_USER_PATH')) {
  10. define('PIWIK_USER_PATH', PIWIK_DOCUMENT_ROOT);
  11. }
  12. require_once PIWIK_INCLUDE_PATH . '/core/testMinimumPhpVersion.php';
  13. @date_default_timezone_set('UTC');
  14. require_once file_exists(PIWIK_INCLUDE_PATH . '/vendor/autoload.php')
  15. ? PIWIK_INCLUDE_PATH . '/vendor/autoload.php' // Piwik is the main project
  16. : PIWIK_INCLUDE_PATH . '/../../autoload.php'; // Piwik is installed as a dependency
  17. require_once PIWIK_INCLUDE_PATH . '/libs/upgradephp/upgrade.php';
  18. Piwik\Translate::loadEnglishTranslation();
  19. if (!Piwik\Common::isPhpCliMode()) {
  20. exit;
  21. }
  22. $console = new Piwik\Console();
  23. $console->init();
  24. $console->run();