diff options
Diffstat (limited to 'piwik.php')
-rw-r--r-- | piwik.php | 18 |
1 files changed, 12 insertions, 6 deletions
@@ -5,8 +5,6 @@ * @link http://piwik.org * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later * @version $Id$ - * - * @package Piwik */ if(file_exists('bootstrap.php')) @@ -15,8 +13,8 @@ if(file_exists('bootstrap.php')) } $GLOBALS['PIWIK_TRACKER_DEBUG'] = false; -$GLOBALS['PIWIK_TRACKER_MODE'] = true; -define('PIWIK_ENABLE_TRACKING', true); + +define('PIWIK_TRACKER_MODE', true); error_reporting(E_ALL|E_NOTICE); define('PIWIK_DOCUMENT_ROOT', dirname(__FILE__)=='/'?'':dirname(__FILE__)); @@ -31,7 +29,15 @@ if(!defined('PIWIK_INCLUDE_PATH')) @ignore_user_abort(true); -require_once PIWIK_INCLUDE_PATH .'/libs/upgradephp/common.php'; +if(!defined('PIWIK_INCLUDE_SEARCH_PATH')) +{ + define('PIWIK_INCLUDE_SEARCH_PATH', PIWIK_INCLUDE_PATH . '/core' + . PATH_SEPARATOR . PIWIK_INCLUDE_PATH . '/libs' + . PATH_SEPARATOR . PIWIK_INCLUDE_PATH . '/plugins'); + @ini_set('include_path', PIWIK_INCLUDE_SEARCH_PATH); + @set_include_path(PIWIK_INCLUDE_SEARCH_PATH); +} + require_once PIWIK_INCLUDE_PATH .'/libs/Event/Dispatcher.php'; require_once PIWIK_INCLUDE_PATH .'/libs/Event/Notification.php'; require_once PIWIK_INCLUDE_PATH .'/core/PluginsManager.php'; @@ -48,9 +54,9 @@ require_once PIWIK_INCLUDE_PATH .'/core/Cookie.php'; session_cache_limiter('nocache'); ob_start(); -@date_default_timezone_set('UTC'); if($GLOBALS['PIWIK_TRACKER_DEBUG'] === true) { + @date_default_timezone_set(date_default_timezone_get()); require_once PIWIK_INCLUDE_PATH .'/core/Loader.php'; require_once PIWIK_INCLUDE_PATH .'/core/ErrorHandler.php'; require_once PIWIK_INCLUDE_PATH .'/core/ExceptionHandler.php'; |