3 |---------------------------------------------------------------
4 | PHP ERROR REPORTING LEVEL
5 |---------------------------------------------------------------
7 | By default CI runs with error reporting set to ALL. For security
8 | reasons you are encouraged to change this when your site goes live.
9 | For more info visit: http://www.php.net/error_reporting
12 error_reporting(E_ALL);
15 |---------------------------------------------------------------
17 |---------------------------------------------------------------
19 | This variable must contain the name of your "system" folder.
20 | Include the path if the folder is not in the same directory
29 |---------------------------------------------------------------
30 | APPLICATION FOLDER NAME
31 |---------------------------------------------------------------
33 | If you want this front controller to use a different "application"
34 | folder then the default one you can set its name here. The folder
35 | can also be renamed or relocated anywhere on your server.
36 | For more info please see the user guide:
37 | http://codeigniter.com/user_guide/general/managing_apps.html
43 $application_folder = "application";
46 |===============================================================
47 | END OF USER CONFIGURABLE SETTINGS
48 |===============================================================
53 |---------------------------------------------------------------
55 |---------------------------------------------------------------
57 | Let's attempt to determine the full-server path to the "system"
58 | folder in order to reduce the possibility of path problems.
59 | Note: We only attempt this if the user hasn't specified a
63 if (strpos($system_folder, '/') === FALSE)
65 if (function_exists('realpath') AND @realpath(dirname(__FILE__)) !== FALSE)
67 $system_folder = realpath(dirname(__FILE__)).'/'.$system_folder;
72 // Swap directory separators to Unix style for consistency
73 $system_folder = str_replace("\\", "/", $system_folder);
77 |---------------------------------------------------------------
78 | DEFINE APPLICATION CONSTANTS
79 |---------------------------------------------------------------
81 | EXT - The file extension. Typically ".php"
82 | FCPATH - The full server path to THIS file
83 | SELF - The name of THIS file (typically "index.php")
84 | BASEPATH - The full server path to the "system" folder
85 | APPPATH - The full server path to the "application" folder
88 define('EXT', '.'.pathinfo(__FILE__, PATHINFO_EXTENSION));
89 define('FCPATH', __FILE__);
90 define('SELF', pathinfo(__FILE__, PATHINFO_BASENAME));
91 define('BASEPATH', $system_folder.'/');
93 if (is_dir($application_folder))
95 define('APPPATH', $application_folder.'/');
99 if ($application_folder == '')
101 $application_folder = 'application';
104 define('APPPATH', BASEPATH.$application_folder.'/');
108 |---------------------------------------------------------------
109 | LOAD THE FRONT CONTROLLER
110 |---------------------------------------------------------------
115 require_once BASEPATH.'codeigniter/CodeIgniter'.EXT;
117 /* End of file index.php */
118 /* Location: ./index.php */