summaryrefslogtreecommitdiffstats
path: root/index.php
blob: 16084c3985f317eab2978e7c8e9270334049c520 (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
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<?php

error_reporting(E_ALL);

/*
|------------------------------------------------
| SYSTEM FOLDER NAME
|------------------------------------------------
|
| This variable must contain the name of your "system"
| folder. Include the path if the folder is not in the same 
| directory as this file.  No trailing slash
*/

	$system_folder = "system";

/*
|------------------------------------------------
| APPLICATION FOLDER NAME
|------------------------------------------------
|
| If you want this front controller to use a specific
| "application" folder you can set its name here.
| By doing so you can have multiple applications share
| a common set of Code Igniter system files.
| Note: It is assumed that your application folder will
| be located within the main system/application folder.
| For example, lets say you have two applications, 
| "foo" and "bar":
|
|  system/application/foo/
|  system/application/foo/config/
|  system/application/foo/controllers/
|  system/application/foo/errors/
|  system/application/foo/scripts/
|  system/application/foo/views/
|  system/application/bar/
|  system/application/bar/config/
|  system/application/bar/controllers/
|  system/application/bar/errors/
|  system/application/bar/scripts/
|  system/application/bar/views/
|
| If you would like to use the "foo" application you'll
| set the variable like this:
|
|	$application_folder = "foo";
|
*/

	$application_folder = "";

/*
|================================================
| END OF USER CONFIGURABLE SETTINGS
|================================================
*/

if (function_exists('realpath') AND @realpath(dirname(__FILE__)) !== FALSE)
{
	$system_folder = str_replace("\\", "/", realpath(dirname(__FILE__))).'/'.$system_folder;
}

if ($application_folder != '')
{
	$application_folder .= '/';
}

// Older versions of PHP don't support this so we'll explicitly define it
if ( ! defined('E_STRICT'))
{
	define('E_STRICT', 2048);
}

define('EXT', '.'.pathinfo(__FILE__, PATHINFO_EXTENSION));
define('SELF', pathinfo(__FILE__, PATHINFO_BASENAME));
define('BASEPATH', $system_folder.'/');
define('APPPATH', BASEPATH.'application/'.$application_folder);
define('FCPATH', __FILE__);

require_once BASEPATH.'codeigniter/CodeIgniter'.EXT;
?>