admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 1 | <?php if (!defined('BASEPATH')) exit('No direct script access allowed'); |
| 2 | |
| 3 | /* |
| 4 | |-------------------------------------------------------------------------- |
| 5 | | Base Site URL |
| 6 | |-------------------------------------------------------------------------- |
| 7 | | |
admin | e334c47 | 2006-10-21 19:44:22 +0000 | [diff] [blame] | 8 | | URL to your Code Igniter root. Typically this will be your base URL, |
admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 9 | | WITH a trailing slash: |
| 10 | | |
| 11 | | http://www.your-site.com/ |
| 12 | | |
| 13 | */ |
| 14 | $config['base_url'] = "http://127.0.0.1/CodeIgniter/"; |
| 15 | |
| 16 | /* |
| 17 | |-------------------------------------------------------------------------- |
| 18 | | Index File |
| 19 | |-------------------------------------------------------------------------- |
| 20 | | |
admin | e334c47 | 2006-10-21 19:44:22 +0000 | [diff] [blame] | 21 | | Typically this will be your index.php file, unless you've renamed it to |
| 22 | | something else. If you are using mod_rewrite to remove the page set this |
admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 23 | | variable so that it is blank. |
| 24 | | |
| 25 | */ |
| 26 | $config['index_page'] = "index.php"; |
| 27 | |
| 28 | /* |
| 29 | |-------------------------------------------------------------------------- |
| 30 | | URI PROTOCOL |
| 31 | |-------------------------------------------------------------------------- |
| 32 | | |
admin | e334c47 | 2006-10-21 19:44:22 +0000 | [diff] [blame] | 33 | | This item determines which server global should be used to retrieve the |
admin | 6871d95 | 2006-10-04 00:36:18 +0000 | [diff] [blame] | 34 | | URI string. The default setting of "AUTO" works for most servers. |
admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 35 | | If your links do not seem to work, try one of the other delicious flavors: |
admin | e334c47 | 2006-10-21 19:44:22 +0000 | [diff] [blame] | 36 | | |
admin | 41a1685 | 2006-09-26 18:17:19 +0000 | [diff] [blame] | 37 | | 'AUTO' Default - auto detects |
admin | e334c47 | 2006-10-21 19:44:22 +0000 | [diff] [blame] | 38 | | 'PATH_INFO' Uses the PATH_INFO |
admin | 41a1685 | 2006-09-26 18:17:19 +0000 | [diff] [blame] | 39 | | 'QUERY_STRING' Uses the QUERY_STRING |
| 40 | | 'REQUEST_URI' Uses the REQUEST_URI |
admin | e334c47 | 2006-10-21 19:44:22 +0000 | [diff] [blame] | 41 | | 'ORIG_PATH_INFO' Uses the ORIG_PATH_INFO |
admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 42 | | |
| 43 | */ |
admin | 41a1685 | 2006-09-26 18:17:19 +0000 | [diff] [blame] | 44 | $config['uri_protocol'] = "AUTO"; |
admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 45 | |
| 46 | /* |
| 47 | |-------------------------------------------------------------------------- |
| 48 | | URL suffix |
| 49 | |-------------------------------------------------------------------------- |
| 50 | | |
| 51 | | This option allows you to add a suffix to all URLs generated by Code Igniter. |
| 52 | | For more information please see the user guide: |
admin | e334c47 | 2006-10-21 19:44:22 +0000 | [diff] [blame] | 53 | | |
admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 54 | | http://www.codeigniter.com/user_guide/general/urls.html |
| 55 | */ |
| 56 | |
| 57 | $config['url_suffix'] = ""; |
| 58 | |
| 59 | /* |
| 60 | |-------------------------------------------------------------------------- |
| 61 | | Default Language |
| 62 | |-------------------------------------------------------------------------- |
| 63 | | |
admin | e334c47 | 2006-10-21 19:44:22 +0000 | [diff] [blame] | 64 | | This determines which set of language files should be used. Make sure |
admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 65 | | there is an available translation if you intend to use something other |
| 66 | | than english. |
| 67 | | |
| 68 | */ |
| 69 | $config['language'] = "english"; |
| 70 | |
| 71 | |
| 72 | /* |
| 73 | |-------------------------------------------------------------------------- |
| 74 | | Enable/Disable System Hooks |
| 75 | |-------------------------------------------------------------------------- |
| 76 | | |
| 77 | | If you would like to use the "hooks" feature you must enable it by |
| 78 | | setting this variable to TRUE (boolean). See the user guide for details. |
| 79 | | |
| 80 | */ |
admin | c0d5d52 | 2006-10-30 19:40:35 +0000 | [diff] [blame] | 81 | $config['enable_hooks'] = FALSE; |
admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 82 | |
| 83 | |
| 84 | /* |
| 85 | |-------------------------------------------------------------------------- |
admin | 0625e19 | 2006-10-20 22:16:54 +0000 | [diff] [blame] | 86 | | Class Extension Prefix |
| 87 | |-------------------------------------------------------------------------- |
| 88 | | |
| 89 | | This item allows you to set the filename/classname prefix when extending |
| 90 | | native libraries. For more information please see the user guide: |
admin | e334c47 | 2006-10-21 19:44:22 +0000 | [diff] [blame] | 91 | | |
admin | 0625e19 | 2006-10-20 22:16:54 +0000 | [diff] [blame] | 92 | | http://www.codeigniter.com/user_guide/general/core_classes.html |
| 93 | | http://www.codeigniter.com/user_guide/general/creating_libraries.html |
| 94 | | |
| 95 | */ |
| 96 | $config['subclass_prefix'] = 'MY_'; |
| 97 | |
| 98 | |
| 99 | /* |
| 100 | |-------------------------------------------------------------------------- |
admin | 1082bdd | 2006-08-27 19:32:02 +0000 | [diff] [blame] | 101 | | Allowed URL Characters |
| 102 | |-------------------------------------------------------------------------- |
| 103 | | |
| 104 | | This lets you specify which characters are permitted within your URLs. |
| 105 | | When someone tries to submit a URL with disallowed characters they will |
| 106 | | get a warning message. |
| 107 | | |
| 108 | | As a security measure you are STRONGLY encouraged to restrict URLs to |
| 109 | | as few characters as possible. By default only these are allowed: a-z 0-9~%.:_- |
| 110 | | |
| 111 | | Leave blank to allow all characters -- but only if you are insane. |
admin | e334c47 | 2006-10-21 19:44:22 +0000 | [diff] [blame] | 112 | | |
admin | 1082bdd | 2006-08-27 19:32:02 +0000 | [diff] [blame] | 113 | | DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!! |
| 114 | | |
| 115 | */ |
| 116 | $config['permitted_uri_chars'] = 'a-z 0-9~%.:_-'; |
| 117 | |
| 118 | |
| 119 | /* |
| 120 | |-------------------------------------------------------------------------- |
admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 121 | | Enable Query Strings |
| 122 | |-------------------------------------------------------------------------- |
| 123 | | |
| 124 | | By default Code Igniter uses search-engine friendly segment based URLs: |
| 125 | | www.your-site.com/who/what/where/ |
| 126 | | |
| 127 | | You can optionally enable standard query string based URLs: |
| 128 | | www.your-site.com?who=me&what=something&where=here |
| 129 | | |
| 130 | | Options are: TRUE or FALSE (boolean) |
| 131 | | |
| 132 | | The two other items let you set the query string "words" that will |
| 133 | | invoke your controllers and its functions: |
| 134 | | www.your-site.com/index.php?c=controller&m=function |
| 135 | | |
| 136 | | Please note that some of the helpers won't work as expected when |
| 137 | | this feature is enabled, since Code Igniter is designed primarily to |
| 138 | | use segment based URLs. |
| 139 | | |
| 140 | */ |
| 141 | $config['enable_query_strings'] = FALSE; |
| 142 | $config['controller_trigger'] = 'c'; |
| 143 | $config['function_trigger'] = 'm'; |
| 144 | |
| 145 | /* |
| 146 | |-------------------------------------------------------------------------- |
admin | 0518661 | 2006-10-28 03:28:01 +0000 | [diff] [blame] | 147 | | Error Logging Threshold |
| 148 | |-------------------------------------------------------------------------- |
| 149 | | |
| 150 | | If you have enabled error logging, you can set an error threshold to |
| 151 | | determine what gets logged. Threshold options are: |
admin | e334c47 | 2006-10-21 19:44:22 +0000 | [diff] [blame] | 152 | | You can enable error logging by setting a threshold over zero. The |
admin | adda3c3 | 2006-10-19 16:38:23 +0000 | [diff] [blame] | 153 | | threshold determines what gets logged. Threshold options are: |
admin | 0518661 | 2006-10-28 03:28:01 +0000 | [diff] [blame] | 154 | | |
| 155 | | 0 = Disables logging |
admin | adda3c3 | 2006-10-19 16:38:23 +0000 | [diff] [blame] | 156 | | 0 = Error logging TURNED OFF |
admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 157 | | 1 = Error Messages (including PHP errors) |
| 158 | | 2 = Debug Messages |
| 159 | | 3 = Informational Messages |
| 160 | | 4 = All Messages |
| 161 | | |
admin | e334c47 | 2006-10-21 19:44:22 +0000 | [diff] [blame] | 162 | | For a live site you'll usually only enable Errors (1) to be logged otherwise |
admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 163 | | your log files will fill up very fast. |
| 164 | | |
| 165 | */ |
admin | e7e1dcd | 2006-10-21 18:04:01 +0000 | [diff] [blame] | 166 | $config['log_threshold'] = 0; |
admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 167 | |
| 168 | /* |
| 169 | |-------------------------------------------------------------------------- |
| 170 | | Error Logging Directory Path |
| 171 | |-------------------------------------------------------------------------- |
| 172 | | |
| 173 | | Leave this BLANK unless you would like to set something other than the default |
| 174 | | system/logs/ folder. Use a full server path with trailing slash. |
| 175 | | |
| 176 | */ |
| 177 | $config['log_path'] = ''; |
| 178 | |
| 179 | /* |
| 180 | |-------------------------------------------------------------------------- |
| 181 | | Date Format for Logs |
| 182 | |-------------------------------------------------------------------------- |
| 183 | | |
| 184 | | Each item that is logged has an associated date. You can use PHP date |
| 185 | | codes to set your own date formatting |
| 186 | | |
| 187 | */ |
| 188 | $config['log_date_format'] = 'Y-m-d H:i:s'; |
| 189 | |
| 190 | /* |
| 191 | |-------------------------------------------------------------------------- |
| 192 | | Cache Directory Path |
| 193 | |-------------------------------------------------------------------------- |
| 194 | | |
| 195 | | Leave this BLANK unless you would like to set something other than the default |
| 196 | | system/cache/ folder. Use a full server path with trailing slash. |
| 197 | | |
| 198 | */ |
| 199 | $config['cache_path'] = ''; |
| 200 | |
admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 201 | /* |
| 202 | |-------------------------------------------------------------------------- |
| 203 | | Encryption Key |
| 204 | |-------------------------------------------------------------------------- |
| 205 | | |
admin | e334c47 | 2006-10-21 19:44:22 +0000 | [diff] [blame] | 206 | | If you use the Encryption class or the Sessions class with encryption |
admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 207 | | enabled you MUST set an encryption key. See the user guide for info. |
| 208 | | |
| 209 | */ |
| 210 | $config['encryption_key'] = ""; |
| 211 | |
admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 212 | /* |
| 213 | |-------------------------------------------------------------------------- |
| 214 | | Session Variables |
| 215 | |-------------------------------------------------------------------------- |
| 216 | | |
| 217 | | 'session_cookie_name' = the name you want for the cookie |
| 218 | | 'encrypt_sess_cookie' = TRUE/FALSE (boolean). Whether to encrypt the cookie |
| 219 | | 'session_expiration' = the number of SECONDS you want the session to last. |
| 220 | | by default sessions last 7200 seconds (two hours). Set to zero for no expiration. |
| 221 | | |
| 222 | */ |
| 223 | $config['sess_cookie_name'] = 'ci_session'; |
| 224 | $config['sess_expiration'] = 7200; |
| 225 | $config['sess_encrypt_cookie'] = FALSE; |
Rick Ellis | 325197e | 2006-11-20 17:29:05 +0000 | [diff] [blame] | 226 | $config['sess_use_database'] = FALSE; |
admin | 0518661 | 2006-10-28 03:28:01 +0000 | [diff] [blame] | 227 | $config['sess_table_name'] = 'ci_sessions'; |
Rick Ellis | 325197e | 2006-11-20 17:29:05 +0000 | [diff] [blame] | 228 | $config['sess_match_ip'] = FALSE; |
admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 229 | $config['sess_match_useragent'] = TRUE; |
| 230 | |
admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 231 | /* |
| 232 | |-------------------------------------------------------------------------- |
| 233 | | Cookie Related Variables |
| 234 | |-------------------------------------------------------------------------- |
admin | e334c47 | 2006-10-21 19:44:22 +0000 | [diff] [blame] | 235 | | |
admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 236 | | 'cookie_prefix' = Set a prefix if you need to avoid collisions |
| 237 | | 'cookie_domain' = Set to .your-domain.com for site-wide cookies |
| 238 | | 'cookie_path' = Typically will be a forward slash |
| 239 | | |
| 240 | */ |
| 241 | $config['cookie_prefix'] = ""; |
admin | e334c47 | 2006-10-21 19:44:22 +0000 | [diff] [blame] | 242 | $config['cookie_domain'] = ""; |
admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 243 | $config['cookie_path'] = "/"; |
| 244 | |
| 245 | /* |
| 246 | |-------------------------------------------------------------------------- |
| 247 | | Global XSS Filtering |
| 248 | |-------------------------------------------------------------------------- |
| 249 | | |
admin | e334c47 | 2006-10-21 19:44:22 +0000 | [diff] [blame] | 250 | | Determines whether the XSS filter is always active when GET, POST or |
admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 251 | | COOKIE data is encountered |
| 252 | | |
| 253 | */ |
| 254 | $config['global_xss_filtering'] = FALSE; |
| 255 | |
admin | 9aaa75e | 2006-09-21 04:45:20 +0000 | [diff] [blame] | 256 | /* |
| 257 | |-------------------------------------------------------------------------- |
| 258 | | Output Compression |
| 259 | |-------------------------------------------------------------------------- |
| 260 | | |
admin | 6bd915c | 2006-09-22 00:12:23 +0000 | [diff] [blame] | 261 | | Enables Gzip output compression for faster page loads. When enabled, |
admin | e334c47 | 2006-10-21 19:44:22 +0000 | [diff] [blame] | 262 | | the output class will test whether your server supports Gzip. |
admin | 6bd915c | 2006-09-22 00:12:23 +0000 | [diff] [blame] | 263 | | Even if it does, however, not all browsers support compression |
admin | 9aaa75e | 2006-09-21 04:45:20 +0000 | [diff] [blame] | 264 | | so enable only if you are reasonably sure your visitors can handle it. |
| 265 | | |
admin | 6bd915c | 2006-09-22 00:12:23 +0000 | [diff] [blame] | 266 | | VERY IMPORTANT: If you are getting a blank page when compression is enabled it |
| 267 | | means you are prematurely outputting something to your browser. It could |
admin | e334c47 | 2006-10-21 19:44:22 +0000 | [diff] [blame] | 268 | | even be a line of whitespace at the end of one of your scripts. For |
admin | 9aaa75e | 2006-09-21 04:45:20 +0000 | [diff] [blame] | 269 | | compression to work, nothing can be sent before the output buffer is called |
admin | a4d3534 | 2006-09-21 17:21:57 +0000 | [diff] [blame] | 270 | | by the output class. Do not "echo" any values with compression enabled. |
admin | 9aaa75e | 2006-09-21 04:45:20 +0000 | [diff] [blame] | 271 | | |
| 272 | */ |
admin | a4d3534 | 2006-09-21 17:21:57 +0000 | [diff] [blame] | 273 | $config['compress_output'] = FALSE; |
admin | 9aaa75e | 2006-09-21 04:45:20 +0000 | [diff] [blame] | 274 | |
admin | 0625e19 | 2006-10-20 22:16:54 +0000 | [diff] [blame] | 275 | /* |
| 276 | |-------------------------------------------------------------------------- |
| 277 | | Master Time Reference |
| 278 | |-------------------------------------------------------------------------- |
| 279 | | |
admin | e334c47 | 2006-10-21 19:44:22 +0000 | [diff] [blame] | 280 | | Options are "local" or "gmt". This pref tells the system whether to use |
| 281 | | your server's local time as the master "now" reference, or convert it to |
| 282 | | GMT. See the "date helper" page of the user guide for information |
admin | 0625e19 | 2006-10-20 22:16:54 +0000 | [diff] [blame] | 283 | | regarding date handling. |
| 284 | | |
| 285 | */ |
| 286 | $config['time_reference'] = 'local'; |
| 287 | |
admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 288 | |
admin | 49439ff | 2006-10-30 04:39:12 +0000 | [diff] [blame] | 289 | /* |
| 290 | |-------------------------------------------------------------------------- |
| 291 | | Rewrite PHP Short Tags |
| 292 | |-------------------------------------------------------------------------- |
| 293 | | |
| 294 | | If your PHP installation does not have short tag support enabled CI |
| 295 | | can rewrite the tags on-the-fly, enabling you to utilize that syntax |
| 296 | | in your view files. Options are TRUE or FALSE (boolean) |
| 297 | | |
| 298 | */ |
| 299 | $config['rewrite_short_tags'] = FALSE; |
| 300 | |
| 301 | |
admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 302 | ?> |