Tracker['debug']; if ($GLOBALS['PIWIK_TRACKER_DEBUG'] === true) { require_once PIWIK_INCLUDE_PATH . '/core/Error.php'; \Piwik\Error::setErrorHandler(); require_once PIWIK_INCLUDE_PATH . '/core/ExceptionHandler.php'; \Piwik\ExceptionHandler::setUp(); $timer = new Timer(); Common::printDebug("Debug enabled - Input parameters: "); Common::printDebug(var_export($_GET, true)); \Piwik\Tracker\Db::enableProfiling(); } if (!defined('PIWIK_ENABLE_TRACKING') || PIWIK_ENABLE_TRACKING) { $process = new Tracker(); try { $process->main(); } catch (Exception $e) { echo "Error:" . $e->getMessage(); exit(1); } ob_end_flush(); if ($GLOBALS['PIWIK_TRACKER_DEBUG'] === true) { Common::printDebug($_COOKIE); Common::printDebug((string)$timer); } }