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:
authorThomas Steur <thomas.steur@googlemail.com>2014-02-07 01:24:07 +0400
committerThomas Steur <thomas.steur@googlemail.com>2014-02-07 01:24:07 +0400
commitab6070fca5de90d1b645ae95a54e18a0c82f4be0 (patch)
tree36793dc2b3b96b8a72554ef2e3914b634defac39 /piwik.php
parent277af287ed7ea5a5d0effa847986711992940e0c (diff)
refs #4439 disable eAccelerator if enabled (just disabling optimizing did not work) and display a message in the admin UI. Also disabled eAccelerator during tracking. We might need to move the method to detect eAccelerator to another place, not sure if this is the best one
Diffstat (limited to 'piwik.php')
-rw-r--r--piwik.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/piwik.php b/piwik.php
index 8f9a68d637..263b3b0de7 100644
--- a/piwik.php
+++ b/piwik.php
@@ -35,6 +35,11 @@ if (!defined('PIWIK_INCLUDE_PATH')) {
@ignore_user_abort(true);
+require_once PIWIK_INCLUDE_PATH . '/core/Plugin/Controller.php';
+require_once PIWIK_INCLUDE_PATH . '/core/Plugin/ControllerAdmin.php';
+
+\Piwik\Plugin\ControllerAdmin::disableEacceleratorIfEnabled();
+
require_once PIWIK_INCLUDE_PATH . '/libs/upgradephp/upgrade.php';
require_once PIWIK_INCLUDE_PATH . '/core/testMinimumPhpVersion.php';
require_once PIWIK_INCLUDE_PATH . '/core/Singleton.php';
@@ -78,6 +83,7 @@ session_cache_limiter('nocache');
if (!defined('PIWIK_ENABLE_TRACKING') || PIWIK_ENABLE_TRACKING) {
ob_start();
}
+
if ($GLOBALS['PIWIK_TRACKER_DEBUG'] === true) {
require_once PIWIK_INCLUDE_PATH . '/core/Loader.php';