config
3 months ago
core
2 days ago
js
3 months ago
lang
2 weeks ago
libs
1 month ago
node_modules
4 months ago
plugins
2 days ago
vendor
2 days ago
.htaccess
6 years ago
AGENTS.md
2 weeks ago
DIObject.php
2 years ago
LEGALNOTICE
6 months ago
LICENSE
2 years ago
LegacyAutoloader.php
2 years ago
PRIVACY.md
5 years ago
README.md
6 months ago
SECURITY.md
2 years ago
bootstrap.php
1 month ago
console
6 years ago
favicon.ico
2 years ago
index.php
2 years ago
matomo.js
3 months ago
matomo.php
2 years ago
offline-service-worker.js
5 years ago
piwik.js
3 months ago
piwik.php
6 months ago
robots.txt
5 years ago
index.php
25 lines
| 1 | <?php |
| 2 | |
| 3 | namespace { |
| 4 | /** |
| 5 | * Matomo - free/libre analytics platform |
| 6 | * |
| 7 | * @link https://matomo.org |
| 8 | * @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later |
| 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 | if (!\defined('PIWIK_INCLUDE_PATH')) { |
| 17 | \define('PIWIK_INCLUDE_PATH', \PIWIK_DOCUMENT_ROOT); |
| 18 | } |
| 19 | require_once \PIWIK_INCLUDE_PATH . '/core/bootstrap.php'; |
| 20 | if (!\defined('PIWIK_PRINT_ERROR_BACKTRACE')) { |
| 21 | define('PIWIK_PRINT_ERROR_BACKTRACE', false); |
| 22 | } |
| 23 | require_once \PIWIK_INCLUDE_PATH . '/core/dispatch.php'; |
| 24 | } |
| 25 |