aboutsummaryrefslogtreecommitdiff
path: root/config.php
blob: 3f930b1eb21ca2395f6e74317bd0b303ca48559c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php

$config = array(
    'db' => array(
        'dsn' => 'pgsql:dbname=bugtracker;host=localhost;port=5432',
        'username' => 'red',
        'password' => 'red'
    ),
    'urls' => array(
        'base' => 'http://' . $_SERVER['SERVER_NAME']
    )
);

if($config['urls']['base'] == 'http://localhost') {
    $config['urls']['base'] = 'http://' . $_SERVER['HTTP_HOST'];
}

define("LIBRARY_PATH", realpath(dirname(__FILE__) . '/library'));
define("TEMPLATES_PATH", realpath(dirname(__FILE__) . '/templates'));

?>