Skip to content
Extraits de code Groupes Projets
Valider e8da9ee1 rédigé par robocoder's avatar robocoder
Parcourir les fichiers

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
parent 3fcf0229
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -18,9 +18,14 @@ if(ini_get('session.save_handler') == 'user') ...@@ -18,9 +18,14 @@ if(ini_get('session.save_handler') == 'user')
@ini_set('session.save_path', ''); @ini_set('session.save_path', '');
} }
define('PIWIK_DOCUMENT_ROOT', dirname(__FILE__));
if(!defined('PIWIK_INCLUDE_PATH')) if(!defined('PIWIK_INCLUDE_PATH'))
{ {
define('PIWIK_INCLUDE_PATH', dirname(__FILE__)); 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)) if((@include "Version.php") === false || !class_exists('Piwik_Version', false))
......
...@@ -11,10 +11,16 @@ $GLOBALS['PIWIK_TRACKER_DEBUG'] = false; ...@@ -11,10 +11,16 @@ $GLOBALS['PIWIK_TRACKER_DEBUG'] = false;
define('PIWIK_TRACKER_MODE', true); define('PIWIK_TRACKER_MODE', true);
error_reporting(E_ALL|E_NOTICE); error_reporting(E_ALL|E_NOTICE);
if(!defined('PIWIK_INCLUDE_PATH')) if(!defined('PIWIK_INCLUDE_PATH'))
{ {
define('PIWIK_INCLUDE_PATH', dirname(__FILE__)); 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); @ignore_user_abort(true);
if((@include "Version.php") === false || !class_exists('Piwik_Version', false)) if((@include "Version.php") === false || !class_exists('Piwik_Version', false))
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter