forked from abdel/stationwagon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
oil
56 lines (43 loc) · 1.52 KB
/
oil
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
/**
* Set all the paths
*/
$app_path = './fuel/app/';
$package_path = './fuel/packages/';
$core_path = './fuel/core/';
/**
* If you wish to display all errors for debugging purposes set this to true. Leave this as false when in production.
*/
define('DEBUG', false);
/**
* If you your server does not have a default timezone set, E_WARNING messages will be generated by PHP. To resolve this
* issue uncomment this line and change the timezone to fit your needs.
*/
//date_default_timezone_set('UTC');
/**
* Define the internal encoding to use.
*
* @todo Re-evaluate how to handle this.
*/
define('INTERNAL_ENC', 'ISO-8859-1');
/**
* Website docroot
*/
define('DOCROOT', __DIR__.DIRECTORY_SEPARATOR);
( ! is_dir($app_path) and is_dir(DOCROOT.$app_path)) and $app_path = DOCROOT.$app_path;
( ! is_dir($core_path) and is_dir(DOCROOT.$core_path)) and $core_path = DOCROOT.$core_path;
( ! is_dir($package_path) and is_dir(DOCROOT.$package_path)) and $package_path = DOCROOT.$package_path;
define('APPPATH', realpath($app_path).DIRECTORY_SEPARATOR);
define('PKGPATH', realpath($package_path).DIRECTORY_SEPARATOR);
define('COREPATH', realpath($core_path).DIRECTORY_SEPARATOR);
// Bootup the core
require_once COREPATH.'bootstrap.php';
// Register the autoloader
Fuel\Core\Autoloader::register();
// Initialize the framework with the config file.
Fuel::init(include(APPPATH.'config/config.php'));
\Fuel::add_package('oil');
// Fire up the command line interfact
Oil\Cli::init($_SERVER['argv']);
echo PHP_EOL;
/* End of file oil */