Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Napoli <matthieu@mnapoli.fr>2014-12-22 05:32:45 +0300
committerMatthieu Napoli <matthieu@mnapoli.fr>2014-12-22 05:36:48 +0300
commitb4af652dd9284f5565ba658389840a47dac48211 (patch)
tree229f6e65e3112cd9f7ef6741666a7299e463c081 /index.php
parent939d1c1be832472204aa000f003d1eba20a1edbb (diff)
Moved common bootstrap code in a `core/bootstrap.php` file
This file is not in a class because it needs to be compatible with PHP 4.
Diffstat (limited to 'index.php')
-rw-r--r--index.php22
1 files changed, 3 insertions, 19 deletions
diff --git a/index.php b/index.php
index 3a26f9ff7c..4b92d7fe2b 100644
--- a/index.php
+++ b/index.php
@@ -14,33 +14,17 @@ if(!defined('PIWIK_DOCUMENT_ROOT')) {
if (file_exists(PIWIK_DOCUMENT_ROOT . '/bootstrap.php')) {
require_once PIWIK_DOCUMENT_ROOT . '/bootstrap.php';
}
-
-error_reporting(E_ALL | E_NOTICE);
-@ini_set('display_errors', defined('PIWIK_DISPLAY_ERRORS') ? PIWIK_DISPLAY_ERRORS : @ini_get('display_errors'));
-@ini_set('xdebug.show_exception_trace', 0);
-@ini_set('magic_quotes_runtime', 0);
-
-if (!defined('PIWIK_USER_PATH')) {
- define('PIWIK_USER_PATH', PIWIK_DOCUMENT_ROOT);
-}
if (!defined('PIWIK_INCLUDE_PATH')) {
define('PIWIK_INCLUDE_PATH', PIWIK_DOCUMENT_ROOT);
}
-require_once PIWIK_INCLUDE_PATH . '/core/testMinimumPhpVersion.php';
-
-// NOTE: the code above this comment must be PHP4 compatible
-
-session_cache_limiter('nocache');
-@date_default_timezone_set('UTC');
+require_once PIWIK_INCLUDE_PATH . '/core/bootstrap.php';
require_once PIWIK_INCLUDE_PATH . '/core/Loader.php';
\Piwik\Loader::init();
-require_once PIWIK_INCLUDE_PATH . '/libs/upgradephp/upgrade.php';
-
-if(!defined('PIWIK_PRINT_ERROR_BACKTRACE')) {
+if (!defined('PIWIK_PRINT_ERROR_BACKTRACE')) {
define('PIWIK_PRINT_ERROR_BACKTRACE', false);
}
-require_once PIWIK_INCLUDE_PATH . '/core/dispatch.php'; \ No newline at end of file
+require_once PIWIK_INCLUDE_PATH . '/core/dispatch.php';