~chronoscz/estetistic/trunk

« back to all changes in this revision

Viewing changes to config.sample.php

  • Committer: chronos
  • Date: 2016-02-28 09:54:30 UTC
  • Revision ID: svn-v4:233a2d1c-c783-4dcf-9f2a-d37bcf656803:trunk:69
* Modified: Use object oriented approach for page drawing using Application class.
* Added: SQL updated will be automatic using UpdateTrace.php file.
* Added: Use generic setup page at URL /setup for SQL structure update.
* Modified: Update Common package to newer version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
 
$IsDeveloper = in_array($_SERVER['REMOTE_ADDR'], array('127.0.0.1'));
6
 
 
7
 
$Config = array(
8
 
  'Database' => array(
9
 
    'Host' => 'localhost',
10
 
    'User' => 'root',
11
 
    'Password' => '',
12
 
    'Database' => 'statistic',
13
 
    'Prefix' => '',
14
 
    'Charset' => 'utf8',
15
 
  ),
16
 
  'AddNewValueUrl' => 'http://localhost/dev/statistic/add.php',
17
 
  'Debug' => 0,
18
 
  'Web' => array(
19
 
    'Title' => 'Statistika',
20
 
    'Charset' => 'utf-8',
21
 
    'AdminEmail' => 'admin@domain',
22
 
    'ShowError' => 0,
23
 
    'ShowSQLError' => $IsDeveloper,
24
 
    'ShowSQLQuery' => $IsDeveloper,
25
 
    'ErrorLogFile' => 'php_script_error.log',
26
 
  ),
27
 
  'DivisionCount' => 500,
28
 
  'LevelReducing' => 5,
29
 
  'MaxLevel' => 4,
30
 
  'ReferenceTime' => 0,
31
 
  'ImageWidth' => 750,
32
 
  'ImageHeight' => 200,
33
 
  'ValueToImageHeigthCoefficient' => 0.9,
34
 
  'FontFileName' => './arial.ttf',
35
 
  'FontSize' => 10,
36
 
  'DefaultVariables' => array(
37
 
    'TimeStart' => time() - 3600*24,
38
 
    'TimeEnd' => time(),
39
 
    'Measure' => 1,
40
 
    'Period' => 'day',
41
 
    'TimeSpecify' => 0,
42
 
    'Differential' => 0,
43
 
  ),
44
 
);
45
 
 
46
 
// For back compatibility during development 
47
 
$DivisionCount = $Config['DivisionCount'];
48
 
$ReferenceTime = $Config['ReferenceTime'];
49
 
$LevelReducing = $Config['LevelReducing'];
50
 
$MaxLevel = $Config['MaxLevel'];
51
 
$DefaultWidth = $Config['ImageWidth'];
52
 
$DefaultHeight = $Config['ImageHeight'];
53
 
$K = $Config['ValueToImageHeigthCoefficient']; 
54
 
$FontFile = $Config['FontFileName'];
55
 
$FontSize = $Config['FontSize'];