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 /index.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 'index.php')
-rw-r--r--index.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/index.php b/index.php
index e5c2554914..1a9d9603ee 100644
--- a/index.php
+++ b/index.php
@@ -18,9 +18,14 @@ if(ini_get('session.save_handler') == 'user')
@ini_set('session.save_path', '');
}
+define('PIWIK_DOCUMENT_ROOT', dirname(__FILE__));
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';
+ }
}
if((@include "Version.php") === false || !class_exists('Piwik_Version', false))