-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
40 lines (32 loc) · 1023 Bytes
/
index.php
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
29
30
31
32
33
34
35
36
37
38
39
<?php
// Define path to root directory
defined('ROOT_PATH')
|| define('ROOT_PATH',
realpath(dirname(__FILE__) . DIRECTORY_SEPARATOR . '..'));
defined('ROOT_URI')
|| define('ROOT_URI', '');
// Define path to application directory
defined('APP_PATH')
|| define('APP_PATH', realpath(ROOT_PATH . DIRECTORY_SEPARATOR . 'apps'));
// Define application environment
defined('APP_ENV')
|| define('APP_ENV',
(getenv('APP_ENV') ? getenv('APP_ENV') : 'production'));
if( APP_ENV != "production" ) {
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
}
// Add libs to php path
set_include_path(
implode(
PATH_SEPARATOR,
array(
realpath(ROOT_PATH . DIRECTORY_SEPARATOR . 'includes'),
APP_PATH,
get_include_path()
)
)
);
require_once 'Autonomic' . DIRECTORY_SEPARATOR . 'Bootstrap.php';
$ab = Autonomic_Bootstrap::getInstance();
$ab->run();