<?php
// tòmò web analytics
// Copyright since 2011 by Yves Goergen
// Website: http://unclassified.de/go/tomo
// Licence: GNU General Public License (GPL) Version 3
// Encoding: UTF-8 (without BOM) (auto-detect: °°°°°)
//
// This is the static configuration file that contains configuration settings
// that need to be available before the database connection is available.
// It is not written to by the application.

// Database driver. For now, this must be 'sqlite'.
//
$settings['database.driver'] = 'sqlite';

// SQLite database file name. This path is relative to the tomo database class file, or
// tomo.lib.php.
//
$settings['database.filename'] = 'tomo.db';

// SQLite setting. See <http://www.sqlite.org/pragma.html#pragma_synchronous> for the details. The
// preset value 'OFF' is the fastest.
//
$settings['database.synchronous'] = 'OFF';

// Visitor ID cookie name.
//
$settings['cookie.name.visitor'] = '_tid';

// Viewer access token cookie name.
//
$settings['cookie.name.access'] = 'tomo_access';

// Administrator opt-out cookie name.
//
$settings['cookie.name.optout'] = 'tomo_optout';

// Months to declare the visitor ID cookie valid.
//
$settings['cookie.months'] = 12;

// URL path to set the cookie for. Should be / or the common base path of the website on the
// domain.
//
$settings['cookie.path'] = '/';

// Shortcut icon to be displayed in the viewer. Customise this to easier distinguish multiple tòmò
// setups on different sites.
//
$settings['viewer.shortcut-icon'] = 'img/favicon.ico';

// Number of hours to limit the visitor log to by default when opening it.
//
$settings['viewer.visitorlog.default-hours'] = 2 * 24;

// Level of browser language storing.
// 1: Only store most-preferred language (e.g. "de").
// 2: Only store most-preferred language and locale (e.g. "de-DE").
// 3: Store complete language list (e.g. "de-DE,de,en").
//
$settings['track.language.level'] = 3;

// Use the first path level as page language indicator.
// If this setting is enabled and the top directory looks like a language identifier, it is removed
// from the URL path that is stored with the pageview. This allows treating the same page in
// different language as one page.
//
$settings['track.language.first-path'] = false;

// Level of reaction on the browser's DNT (Do-not-track) HTTP header.
// 0: Ignore DNT, always track fully.
// 1: If DNT=1, then reduce visitor cookie lifetime to 7 days.
// 2: If DNT=1, then do not set a visitor cookie. Session grouping will be done through other means.
// 3: If DNT=1, then do not track user activity inside a page (activity timespan, outlinks...).
// 4: If DNT=1, then do not track anything. Like administrator opt-out.
//
$settings['track.dnt.level'] = 2;

// Compute a hash value of the IP address and store it instead of the full address.
//
$settings['track.ip.hash'] = true;

// Password for the viewing access.
//
$settings['access.password'] = '1234';

// Administrator opt-out key. This should be kept secret so that no other user can escape the
// tracker by setting such a cookie for themselves.
//
$settings['optout.password'] = '1234';

// File path to the GeoIP database files, relative to the file that contains the GeoIP access
// library (normally the tòmò installation directory).
//
//$settings['geoip.path'] = '../geoip/';

// NOTE: This file does not contain all available configuration options. To find more options,
//       please search all PHP source code files for "UnbConfiguration::Get".

?>
