Ticket #889: bootstrap.php

File bootstrap.php, 1.5 KB (added by vipsoft, 5 years ago)

Sample bootstrap.php file

Line 
1<?php
2/**
3 * Piwik - Open source web analytics
4 *
5 * @link http://piwik.org
6 * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
7 * @version $Id: $
8 *
9 * @package Piwik
10 */
11
12// PIWIK_USER_PATH
13// - Override the default to relocate config and tmp files
14//   This facilitates a "best practice" of preventing direct access to php
15//   files.  Also useful with shared hosting to separate shared code from
16//   user/account-specific configuration.
17// - default is the same as PIWIK_DOCUMENT_ROOT
18define('PIWIK_USER_PATH', dirname(__FILE__));
19
20// PIWIK_INCLUDE_PATH
21// - Override the default to relocate files loaded by index.php and piwik.php.
22//   This facilitates a "best practice" of preventing direct access to php
23//   files.
24// - default is the same as PIWIK_DOCUMENT_ROOT
25define('PIWIK_INCLUDE_PATH', dirname(__FILE__));
26
27// PIWIK_ENABLE_SESSION_START
28// - Allows dashboard to parallel load widgets increasing responsiveness
29// - Note: requires more concurrent mysql connections (see my.cnf's max_connections)
30// - default is enabled; set to 0 to disable
31define('PIWIK_ENABLE_SESSION_START', 0);
32
33// PIWIK_DISPLAY_ERRORS
34// - When set to 0, no error will be output in the Piwik interface.
35//   This is useful for users that do not want Piwik to show any error.
36//   By default, we choose to display all PHP Warnings, Notices and Error
37//   messages because it helps us find and diagnose bugs.
38// - default is 1 (On); recommend 0 (Off) for production servers
39define('PIWIK_DISPLAY_ERRORS', 1);