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-08-16 17:41:06 +0400
committerrobocoder <anthon.pang@gmail.com>2009-08-16 17:41:06 +0400
commitca5adbf3c9d2d48ed36f345eb5b3a4467440cd1c (patch)
tree6bcc0a298f9148edcf53c5f4122cb4ba52a36693 /index.php
parentc81a75dd0b715f3de74ed423360c8af1bdf00e6d (diff)
refs #889 - add PIWIK_USER_PATH to relocate config & tmp folders per user/account where Piwik installation is shared
git-svn-id: http://dev.piwik.org/svn/trunk@1401 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'index.php')
-rw-r--r--index.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/index.php b/index.php
index 366c655878..e613bb7741 100644
--- a/index.php
+++ b/index.php
@@ -26,11 +26,15 @@ if(ini_get('session.save_handler') == 'user')
@ini_set('session.save_path', '');
}
+define('PIWIK_DOCUMENT_ROOT', dirname(__FILE__));
+if(!defined('PIWIK_USER_PATH'))
+{
+ define('PIWIK_USER_PATH', PIWIK_DOCUMENT_ROOT);
+}
if(!defined('PIWIK_INCLUDE_PATH'))
{
- define('PIWIK_INCLUDE_PATH', dirname(__FILE__));
+ define('PIWIK_INCLUDE_PATH', PIWIK_DOCUMENT_ROOT);
}
-define('PIWIK_DOCUMENT_ROOT', dirname(__FILE__));
if(!defined('PIWIK_INCLUDE_SEARCH_PATH'))
{