/adei/trunk

To get this branch, use:
bzr branch http://darksoft.org/webbzr/adei/trunk

« back to all changes in this revision

Viewing changes to setups/ipe/config.php

  • Committer: Suren A. Chilingaryan
  • Date: 2012-07-14 17:44:09 UTC
  • Revision ID: csa@dside.dyndns.org-20120714174409-cuzsy4vupyjx9lia
Update of setups

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?php
2
 
$TITLE = "";
3
 
$MODULES = array("config", "graph", "wiki");
4
 
 
5
 
 
6
 
$EXPORT_FORMATS = array (
7
 
        "csv" => array(
8
 
            'title' => "CSV",
9
 
        ),
10
 
        "xls" => array(
11
 
            'title' => "Excel",
12
 
            'handler' => "EXCEL",
13
 
        )
14
 
);
15
 
 
16
 
 
17
 
$READER_DB_TOSKA = array(
18
 
        "ipe" => array (
19
 
            "title" => _("IPETOSKANADB"),
20
 
            "reader" => "DBReader",
21
 
            "driver" => "odbc",
22
 
            "sqldrv" => "mssql",
23
 
            "subdrv" => "FreeTDS",
24
 
            "host" => "192.168.8.6",
25
 
            "port" => 0,
26
 
            "user" => "souren",
27
 
            "password" => '$souren$',
28
 
            "database" => array("womisaDB")
29
 
//          "disconnected" => true
30
 
        )
31
 
);
32
 
 
33
 
if (is_array($READER_DB)) $READER_DB = array_merge($READER_DB_TOSKA, $READER_DB);
34
 
else $READER_DB = $READER_DB_TOSKA;
35
 
 
36
 
$OPTIONS["ipe__womisaDB"] = array(
37
 
            "groups" => array(
38
 
                "/^modul(\d+)$/" => 'mda.Wt$LiveData$ModulTest${1}',
39
 
            ),
40
 
            "tables" => array(
41
 
//              "/^.*ModulTest(\d+)$/" => array(
42
 
                "/^.*ModulTest(10)$/" => array(
43
 
                    'gid' => 'modul${1}',
44
 
                    'title' => 'Test ${1} Hz'
45
 
                ),
46
 
            ),
47
 
            "columns" => array(
48
 
                "time" => "WsDateTimeTicks",
49
 
                "data" => "/^((WsCh_\d+)|([^W.])|(.[^s]))/"
50
 
            ),
51
 
            "timezone" => "Europe/Berlin",
52
 
            "time_module" => "MSTICKS",
53
 
//          "time_options" => -36000000000,                     // correction
54
 
            "timesort" => 1,                                    // 0 - NATURAL, 1 - ASC, -1 - DESC, string whith request
55
 
            "date_limit" => array("2008-03-29 00:00:00", "2008-03-29 02:00:00"),
56
 
            "min_resolution" => 10,
57
 
            "ignore_subseconds" => false,
58
 
            "optimize_empty_cache" => true,
59
 
            "use_cache_timewindow" => true,
60
 
//          "use_cache_reader" => true,
61
 
            "use_md5_postfix" => false,
62
 
//          "fill_raw_first" => true,
63
 
//          "trace_timings" => true,
64
 
            "trace_timings" => array(
65
 
                "limit_interval" => 600,                /* s */
66
 
//              "limit_processing_time" => 0.5,         /* s */
67
 
                "limit_percentage" => 50,               /* % */
68
 
                "overall_only" => false,
69
 
                "raise_exception" => 90         /* if percentage is above % */
70
 
            ),
71
 
            "monitor_timings" => array(
72
 
                "query_limit" => 500000,                /* us */
73
 
//              "raise_exception" => true
74
 
            ),
75
 
//          "emit_delays" => 2000000                    /* us */
76
 
);
77
 
 
78
 
// Enable in release
79
 
#    $SOURCE_KEEP_WINDOW = true;
80
 
 
81
 
?>
 
 
b'\\ No newline at end of file'