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.

index.php 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. /**
  3. * Piwik - free/libre analytics platform
  4. *
  5. * @link http://piwik.org
  6. * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
  7. *
  8. * @package Piwik
  9. */
  10. if(!defined('PIWIK_DOCUMENT_ROOT')) {
  11. define('PIWIK_DOCUMENT_ROOT', dirname(__FILE__) == '/' ? '' : dirname(__FILE__));
  12. }
  13. if (file_exists(PIWIK_DOCUMENT_ROOT . '/bootstrap.php')) {
  14. require_once PIWIK_DOCUMENT_ROOT . '/bootstrap.php';
  15. }
  16. error_reporting(E_ALL | E_NOTICE);
  17. @ini_set('display_errors', defined('PIWIK_DISPLAY_ERRORS') ? PIWIK_DISPLAY_ERRORS : @ini_get('display_errors'));
  18. @ini_set('xdebug.show_exception_trace', 0);
  19. @ini_set('magic_quotes_runtime', 0);
  20. if (!defined('PIWIK_USER_PATH')) {
  21. define('PIWIK_USER_PATH', PIWIK_DOCUMENT_ROOT);
  22. }
  23. if (!defined('PIWIK_INCLUDE_PATH')) {
  24. define('PIWIK_INCLUDE_PATH', PIWIK_DOCUMENT_ROOT);
  25. }
  26. require_once PIWIK_INCLUDE_PATH . '/core/testMinimumPhpVersion.php';
  27. // NOTE: the code above this comment must be PHP4 compatible
  28. require_once PIWIK_INCLUDE_PATH . '/libs/upgradephp/upgrade.php';
  29. session_cache_limiter('nocache');
  30. @date_default_timezone_set('UTC');
  31. require_once file_exists(PIWIK_INCLUDE_PATH . '/vendor/autoload.php')
  32. ? PIWIK_INCLUDE_PATH . '/vendor/autoload.php' // Piwik is the main project
  33. : PIWIK_INCLUDE_PATH . '/../../autoload.php'; // Piwik is installed as a dependency
  34. if(!defined('PIWIK_PRINT_ERROR_BACKTRACE')) {
  35. define('PIWIK_PRINT_ERROR_BACKTRACE', false);
  36. }
  37. require_once PIWIK_INCLUDE_PATH . '/core/dispatch.php';