00001 <?php 00002 /* 00003 |--------------------------------------------------------------- 00004 | PHP ERROR REPORTING LEVEL 00005 |--------------------------------------------------------------- 00006 | 00007 | By default CI runs with error reporting set to ALL. For security 00008 | reasons you are encouraged to change this when your site goes live. 00009 | For more info visit: http://www.php.net/error_reporting 00010 | 00011 */ 00012 error_reporting(E_ALL); 00013 00014 /* 00015 |--------------------------------------------------------------- 00016 | SYSTEM FOLDER NAME 00017 |--------------------------------------------------------------- 00018 | 00019 | This variable must contain the name of your "system" folder. 00020 | Include the path if the folder is not in the same directory 00021 | as this file. 00022 | 00023 | NO TRAILING SLASH! 00024 | 00025 */ 00026 $system_folder = "system"; 00027 00028 /* 00029 |--------------------------------------------------------------- 00030 | APPLICATION FOLDER NAME 00031 |--------------------------------------------------------------- 00032 | 00033 | If you want this front controller to use a different "application" 00034 | folder then the default one you can set its name here. The folder 00035 | can also be renamed or relocated anywhere on your server. 00036 | For more info please see the user guide: 00037 | http://codeigniter.com/user_guide/general/managing_apps.html 00038 | 00039 | 00040 | NO TRAILING SLASH! 00041 | 00042 */ 00043 $application_folder = "application"; 00044 00045 /* 00046 |=============================================================== 00047 | END OF USER CONFIGURABLE SETTINGS 00048 |=============================================================== 00049 */ 00050 00051 00052 /* 00053 |--------------------------------------------------------------- 00054 | SET THE SERVER PATH 00055 |--------------------------------------------------------------- 00056 | 00057 | Let's attempt to determine the full-server path to the "system" 00058 | folder in order to reduce the possibility of path problems. 00059 | Note: We only attempt this if the user hasn't specified a 00060 | full server path. 00061 | 00062 */ 00063 if (strpos($system_folder, '/') === FALSE) 00064 { 00065 if (function_exists('realpath') AND @realpath(dirname(__FILE__)) !== FALSE) 00066 { 00067 $system_folder = realpath(dirname(__FILE__)).'/'.$system_folder; 00068 } 00069 } 00070 else 00071 { 00072 // Swap directory separators to Unix style for consistency 00073 $system_folder = str_replace("\\", "/", $system_folder); 00074 } 00075 00076 /* 00077 |--------------------------------------------------------------- 00078 | DEFINE APPLICATION CONSTANTS 00079 |--------------------------------------------------------------- 00080 | 00081 | EXT - The file extension. Typically ".php" 00082 | FCPATH - The full server path to THIS file 00083 | SELF - The name of THIS file (typically "index.php) 00084 | BASEPATH - The full server path to the "system" folder 00085 | APPPATH - The full server path to the "application" folder 00086 | 00087 */ 00088 define('EXT', '.'.pathinfo(__FILE__, PATHINFO_EXTENSION)); 00089 define('FCPATH', __FILE__); 00090 define('SELF', pathinfo(__FILE__, PATHINFO_BASENAME)); 00091 define('BASEPATH', $system_folder.'/'); 00092 00093 if (is_dir($application_folder)) 00094 { 00095 define('APPPATH', $application_folder.'/'); 00096 } 00097 else 00098 { 00099 if ($application_folder == '') 00100 { 00101 $application_folder = 'application'; 00102 } 00103 00104 define('APPPATH', BASEPATH.$application_folder.'/'); 00105 } 00106 00107 /* 00108 |--------------------------------------------------------------- 00109 | LOAD THE FRONT CONTROLLER 00110 |--------------------------------------------------------------- 00111 | 00112 | And away we go... 00113 | 00114 */ 00115 require_once BASEPATH.'codeigniter/CodeIgniter'.EXT; 00116 00117 /* End of file index.php */ 00118 /* Location: ./index.php */