initial setup of framework code
[cacert-mgr.git] / manager / library / global / defines.php
1 <?php
2 /**
3 * @author markus
4 * $Id: defines.php 95 2010-03-19 14:14:39Z markus $
5 */
6
7 // Define path to application directory
8 defined('APPLICATION_PATH')
9 || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../../application'));
10 defined('LIBARARY_PATH')
11 || define('LIBRARY_PATH', realpath(dirname(__FILE__) . '/..'));
12 defined('FWACTIONS_PATH')
13 || define('FWACTIONS_PATH', LIBRARY_PATH . '/actions');
14 defined('LOCALE_PATH')
15 || define('LOCALE_PATH', realpath(dirname(__FILE__) . '/../../locale'));
16
17 // Define application environment
18 defined('APPLICATION_ENV')
19 || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));
20
21 define('SYSTEM_CONFIG', 'system_config');
22 define('SYSTEM_LOG', 'log');
23
24 // Ensure library/ is on include_path
25 set_include_path(implode(PATH_SEPARATOR, array(
26 LIBRARY_PATH,
27 get_include_path(),
28 )));