Subversion-Projekte lars-tiefland.nagios-php

Revision

Revision 85 | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 85 Revision 87
Zeile 2... Zeile 2...
2
 
2
 
3
    /**
3
    /**
4
     * @package nagios-php
4
     * @package nagios-php
5
     * @author Lars Tiefland <ltiefland@gmail.com>
5
     * @author Lars Tiefland <ltiefland@gmail.com>
6
     * @copyright 2013
6
     * @copyright 2013
7
     * @version $Rev: 85 $
7
     * @version $Rev: 87 $
Zeile 8... Zeile 8...
8
     */
8
     */
Zeile 9... Zeile 9...
9
 
9
 
10
    // $Id: common.php 85 2013-01-02 13:25:47Z lars $
10
    // $Id: common.php 87 2013-01-02 13:33:45Z lars $
11
 
11
 
12
    require_once "Config.php";
12
    require_once "Config.php";
Zeile 21... Zeile 21...
21
    $GLOBALS["ui"] = new Smarty();
21
    $GLOBALS["ui"] = new Smarty();
22
    $cfg = new Config();
22
    $cfg = new Config();
23
    $cfg = $cfg->parseConfig( "config.xml", "xml" );
23
    $cfg = $cfg->parseConfig( "config.xml", "xml" );
24
    $cfg = $cfg->toArray();
24
    $cfg = $cfg->toArray();
25
    $GLOBALS["cfg"] = $cfg["root"]["config"];
25
    $GLOBALS["cfg"] = $cfg["root"]["config"];
-
 
26
    $GLOBALS["cfg"]["refreshIntervallJs"] = $GLOBALS["cfg"]["refreshIntervall"] *
-
 
27
        1000;
26
    $opts = array(
28
    $opts = array(
27
        "persistent" => true,
29
        "persistent" => true,
28
        "portability" => MDB2_PORTABILITY_ALL ^ MDB2_PORTABILITY_EMPTY_TO_NULL ^
30
        "portability" => MDB2_PORTABILITY_ALL ^ MDB2_PORTABILITY_EMPTY_TO_NULL ^
29
            MDB2_PORTABILITY_FIX_CASE,
31
            MDB2_PORTABILITY_FIX_CASE,
30
        );
32
        );