source: branches/old/config.sample.php@ 50

Last change on this file since 50 was 50, checked in by chronos, 10 years ago
  • Modified: Show graph, table and other controls horizontally centered.
  • Added: Check for existence of config file.
  • Added: Check if database is accessible.
File size: 1.4 KB
Line 
1<?php
2
3// Toto je ukázkový konfigurační soubor. Zkopírujte si jej jako config.php do stejné složky a upravte podle potřeby.
4
5$Config = array(
6 'Database' => array(
7 'Host' => 'localhost',
8 'User' => 'root',
9 'Password' => '',
10 'Database' => 'statistic',
11 'Prefix' => '',
12 'Charset' => 'utf8',
13 ),
14 'AddNewValueUrl' => 'http://localhost/dev/statistic/add.php',
15 'Debug' => 0,
16 'Web' => array(
17 'Title' => 'Statistika',
18 'Charset' => 'utf-8',
19 'AdminEmail' => 'admin@domain',
20 'ShowError' => 0,
21 'ErrorLogFile' => 'php_script_error.log',
22 ),
23 'DivisionCount' => 500,
24 'LevelReducing' => 5,
25 'MaxLevel' => 4,
26 'ReferenceTime' => 0,
27 'ImageWidth' => 750,
28 'ImageHeight' => 200,
29 'ValueToImageHeigthCoefficient' => 0.9,
30 'FontFileName' => 'arial.ttf',
31 'FontSize' => 10,
32 'DefaultVariables' => array(
33 'TimeStart' => time() - 3600*24,
34 'TimeEnd' => time(),
35 'Measure' => 1,
36 'Period' => 'day',
37 'TimeSpecify' => 0,
38 'Differential' => 0,
39 ),
40);
41
42// For back compatibility during development
43$DivisionCount = $Config['DivisionCount'];
44$ReferenceTime = $Config['ReferenceTime'];
45$LevelReducing = $Config['LevelReducing'];
46$MaxLevel = $Config['MaxLevel'];
47$DefaultWidth = $Config['ImageWidth'];
48$DefaultHeight = $Config['ImageHeight'];
49$K = $Config['ValueToImageHeigthCoefficient'];
50$FontFile = $Config['FontFileName'];
51$FontSize = $Config['FontSize'];
Note: See TracBrowser for help on using the repository browser.