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:
authorrobocoder <anthon.pang@gmail.com>2009-07-29 04:16:42 +0400
committerrobocoder <anthon.pang@gmail.com>2009-07-29 04:16:42 +0400
commite8da9ee1a6775d4604343d2201802f7ec082af88 (patch)
tree25dab0239a7e79828eda97a8bfdf60733e77b69f /piwik.php
parent3fcf02294c3919963c44193ca2d6b8c64cca45fa (diff)
refs #886, #656, #8585 - add PIWIK_DOCUMENT_ROOT and optional inclusion of bootstrap.php
git-svn-id: http://dev.piwik.org/svn/trunk@1341 59fd770c-687e-43c8-a1e3-f5a4ff64c105
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 c9386a0ed3..fe64750728 100644
--- a/piwik.php
+++ b/piwik.php
@@ -11,10 +11,16 @@ $GLOBALS['PIWIK_TRACKER_DEBUG'] = false;
define('PIWIK_TRACKER_MODE', true);
error_reporting(E_ALL|E_NOTICE);
+
if(!defined('PIWIK_INCLUDE_PATH'))
{
define('PIWIK_INCLUDE_PATH', dirname(__FILE__));
+ if(file_exists(PIWIK_INCLUDE_PATH . '/bootstrap.php'))
+ {
+ require_once PIWIK_INCLUDE_PATH . '/bootstrap.php';
+ }
}
+
@ignore_user_abort(true);
if((@include "Version.php") === false || !class_exists('Piwik_Version', false))