summaryrefslogtreecommitdiff
path: root/manager/library/global/defines.php
blob: 4e90ac5c962b29ede5393ca87b27de4ae177a31f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
/**
 * @author markus
 * $Id: defines.php 95 2010-03-19 14:14:39Z markus $
 */

// Define path to application directory
defined('APPLICATION_PATH')
    || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../../application'));
defined('LIBARARY_PATH')
    || define('LIBRARY_PATH', realpath(dirname(__FILE__) . '/..'));
defined('FWACTIONS_PATH')
    || define('FWACTIONS_PATH', LIBRARY_PATH . '/actions');
defined('LOCALE_PATH')
    || define('LOCALE_PATH', realpath(dirname(__FILE__) . '/../../locale'));

// Define application environment
defined('APPLICATION_ENV')
    || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));

define('SYSTEM_CONFIG', 'system_config');
define('SYSTEM_LOG', 'log');

// Ensure library/ is on include_path
set_include_path(implode(PATH_SEPARATOR, array(
    LIBRARY_PATH,
    get_include_path(),
)));