-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathbootstrap-ee2.php
54 lines (38 loc) · 1.31 KB
/
bootstrap-ee2.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
if (!isset($system_path)) {
$system_path = "system";
}
$assign_to_config['enable_query_strings'] = TRUE;
$assign_to_config['subclass_prefix'] = 'EE_';
if (realpath($system_path) !== FALSE)
{
$system_path = realpath($system_path).'/';
}
// ensure there's a trailing slash
$system_path = rtrim($system_path, '/').'/';
define('SELF', pathinfo(__FILE__, PATHINFO_BASENAME));
define('EXT', '.php');
define('BASEPATH', str_replace("\\", "/", $system_path.'codeigniter/system/'));
define('APPPATH', $system_path.'expressionengine/');
define('FCPATH', str_replace(SELF, '', __FILE__));
define('SYSDIR', trim(strrchr(trim(str_replace("\\", "/", $system_path), '/'), '/'), '/'));
define('UTF8_ENABLED', false);
define('CI_VERSION', '2.0');
//define('AJAX_REQUEST',false);
define('DEBUG',false);
require(BASEPATH.'core/Common'.EXT);
require(BASEPATH.'core/Compat'.EXT);
require(APPPATH.'config/constants'.EXT);
$CFG =& load_class('Config', 'core');
$URI =& load_class('URI', 'core');
$IN =& load_class('Input', 'core');
$OUT =& load_class('Output', 'core');
$LANG =& load_class('Lang', 'core');
require(BASEPATH.'core/Base5'.EXT);
$loader = load_class('Loader', 'core');
// Load the base controller class
require BASEPATH.'core/Controller'.EXT;
class A extends Controller {
}
$EE = new A;
$EE->core->_initialize_core();