|
10 | 10 | | |
11 | 11 | | http://example.com/ |
12 | 12 | | |
| 13 | +| If this is not set then CodeIgniter will guess the protocol, domain and |
| 14 | +| path to your installation. |
| 15 | +| |
13 | 16 | */ |
14 | | -$config['base_url'] = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") ? "https" : "http"); |
15 | | -$config['base_url'] .= "://".$_SERVER['HTTP_HOST']; |
16 | | -$config['base_url'] .= str_replace(basename($_SERVER['SCRIPT_NAME']),"",$_SERVER['SCRIPT_NAME']); |
| 17 | +$config['base_url'] = ''; |
| 18 | + |
17 | 19 | /* |
18 | 20 | |-------------------------------------------------------------------------- |
19 | 21 | | Index File |
|
24 | 26 | | variable so that it is blank. |
25 | 27 | | |
26 | 28 | */ |
27 | | -$config['index_page'] = "index.php"; |
| 29 | +$config['index_page'] = 'index.php'; |
28 | 30 |
|
29 | 31 | /* |
30 | 32 | |-------------------------------------------------------------------------- |
31 | 33 | | URI PROTOCOL |
32 | 34 | |-------------------------------------------------------------------------- |
33 | 35 | | |
34 | 36 | | This item determines which server global should be used to retrieve the |
35 | | -| URI string. The default setting of "AUTO" works for most servers. |
| 37 | +| URI string. The default setting of 'AUTO' works for most servers. |
36 | 38 | | If your links do not seem to work, try one of the other delicious flavors: |
37 | 39 | | |
38 | 40 | | 'AUTO' Default - auto detects |
|
42 | 44 | | 'ORIG_PATH_INFO' Uses the ORIG_PATH_INFO |
43 | 45 | | |
44 | 46 | */ |
45 | | -$config['uri_protocol'] = "AUTO"; |
| 47 | +$config['uri_protocol'] = 'AUTO'; |
46 | 48 |
|
47 | 49 | /* |
48 | 50 | |-------------------------------------------------------------------------- |
|
55 | 57 | | http://codeigniter.com/user_guide/general/urls.html |
56 | 58 | */ |
57 | 59 |
|
58 | | -$config['url_suffix'] = ""; |
| 60 | +$config['url_suffix'] = ''; |
59 | 61 |
|
60 | 62 | /* |
61 | 63 | |-------------------------------------------------------------------------- |
|
67 | 69 | | than english. |
68 | 70 | | |
69 | 71 | */ |
70 | | -$config['language'] = "english"; |
| 72 | +$config['language'] = 'english'; |
71 | 73 |
|
72 | 74 | /* |
73 | 75 | |-------------------------------------------------------------------------- |
|
78 | 80 | | that require a character set to be provided. |
79 | 81 | | |
80 | 82 | */ |
81 | | -$config['charset'] = "UTF-8"; |
| 83 | +$config['charset'] = 'UTF-8'; |
82 | 84 |
|
83 | 85 | /* |
84 | 86 | |-------------------------------------------------------------------------- |
85 | 87 | | Enable/Disable System Hooks |
86 | 88 | |-------------------------------------------------------------------------- |
87 | 89 | | |
88 | | -| If you would like to use the "hooks" feature you must enable it by |
| 90 | +| If you would like to use the 'hooks' feature you must enable it by |
89 | 91 | | setting this variable to TRUE (boolean). See the user guide for details. |
90 | 92 | | |
91 | 93 | */ |
|
135 | 137 | | By default CodeIgniter uses search-engine friendly segment based URLs: |
136 | 138 | | example.com/who/what/where/ |
137 | 139 | | |
| 140 | +| By default CodeIgniter enables access to the $_GET array. If for some |
| 141 | +| reason you would like to disable it, set 'allow_get_array' to FALSE. |
| 142 | +| |
138 | 143 | | You can optionally enable standard query string based URLs: |
139 | 144 | | example.com?who=me&what=something&where=here |
140 | 145 | | |
141 | 146 | | Options are: TRUE or FALSE (boolean) |
142 | 147 | | |
143 | | -| The other items let you set the query string "words" that will |
| 148 | +| The other items let you set the query string 'words' that will |
144 | 149 | | invoke your controllers and its functions: |
145 | 150 | | example.com/index.php?c=controller&m=function |
146 | 151 | | |
|
149 | 154 | | use segment based URLs. |
150 | 155 | | |
151 | 156 | */ |
152 | | -$config['enable_query_strings'] = TRUE; |
153 | | -$config['directory_trigger'] = 'd'; // experimental not currently in use |
154 | | -$config['controller_trigger'] = 'c'; |
155 | | -$config['function_trigger'] = 'm'; |
| 157 | +$config['allow_get_array'] = TRUE; |
| 158 | +$config['enable_query_strings'] = FALSE; |
| 159 | +$config['controller_trigger'] = 'c'; |
| 160 | +$config['function_trigger'] = 'm'; |
| 161 | +$config['directory_trigger'] = 'd'; // experimental not currently in use |
156 | 162 |
|
157 | 163 | /* |
158 | 164 | |-------------------------------------------------------------------------- |
159 | 165 | | Error Logging Threshold |
160 | 166 | |-------------------------------------------------------------------------- |
161 | 167 | | |
162 | | -| If you have enabled error logging, you can set an error threshold to |
| 168 | +| If you have enabled error logging, you can set an error threshold to |
163 | 169 | | determine what gets logged. Threshold options are: |
164 | 170 | | You can enable error logging by setting a threshold over zero. The |
165 | 171 | | threshold determines what gets logged. Threshold options are: |
|
182 | 188 | |-------------------------------------------------------------------------- |
183 | 189 | | |
184 | 190 | | Leave this BLANK unless you would like to set something other than the default |
185 | | -| system/logs/ folder. Use a full server path with trailing slash. |
| 191 | +| application/logs/ folder. Use a full server path with trailing slash. |
186 | 192 | | |
187 | 193 | */ |
188 | 194 | $config['log_path'] = ''; |
|
214 | 220 | | Encryption Key |
215 | 221 | |-------------------------------------------------------------------------- |
216 | 222 | | |
217 | | -| If you use the Encryption class or the Sessions class with encryption |
218 | | -| enabled you MUST set an encryption key. See the user guide for info. |
| 223 | +| If you use the Encryption class or the Session class you |
| 224 | +| MUST set an encryption key. See the user guide for info. |
219 | 225 | | |
220 | 226 | */ |
221 | | -$config['encryption_key'] = ""; |
| 227 | +$config['encryption_key'] = 'X5B7Gs8szq1B'; |
222 | 228 |
|
223 | 229 | /* |
224 | 230 | |-------------------------------------------------------------------------- |
225 | 231 | | Session Variables |
226 | 232 | |-------------------------------------------------------------------------- |
227 | 233 | | |
228 | | -| 'session_cookie_name' = the name you want for the cookie |
229 | | -| 'encrypt_sess_cookie' = TRUE/FALSE (boolean). Whether to encrypt the cookie |
230 | | -| 'session_expiration' = the number of SECONDS you want the session to last. |
231 | | -| by default sessions last 7200 seconds (two hours). Set to zero for no expiration. |
232 | | -| 'time_to_update' = how many seconds between CI refreshing Session Information |
| 234 | +| 'sess_cookie_name' = the name you want for the cookie |
| 235 | +| 'sess_expiration' = the number of SECONDS you want the session to last. |
| 236 | +| by default sessions last 7200 seconds (two hours). Set to zero for no expiration. |
| 237 | +| 'sess_expire_on_close' = Whether to cause the session to expire automatically |
| 238 | +| when the browser window is closed |
| 239 | +| 'sess_encrypt_cookie' = Whether to encrypt the cookie |
| 240 | +| 'sess_use_database' = Whether to save the session data to a database |
| 241 | +| 'sess_table_name' = The name of the session database table |
| 242 | +| 'sess_match_ip' = Whether to match the user's IP address when reading the session data |
| 243 | +| 'sess_match_useragent' = Whether to match the User Agent when reading the session data |
| 244 | +| 'sess_time_to_update' = how many seconds between CI refreshing Session Information |
233 | 245 | | |
234 | 246 | */ |
235 | 247 | $config['sess_cookie_name'] = 'ci_session'; |
236 | | -$config['sess_expiration'] = 0; |
| 248 | +$config['sess_expiration'] = 7200; |
| 249 | +$config['sess_expire_on_close'] = FALSE; |
237 | 250 | $config['sess_encrypt_cookie'] = FALSE; |
238 | | -$config['sess_use_database'] = TRUE; |
239 | | -$config['sess_table_name'] = 'sessions'; |
| 251 | +$config['sess_use_database'] = FALSE; |
| 252 | +$config['sess_table_name'] = 'ci_sessions'; |
240 | 253 | $config['sess_match_ip'] = FALSE; |
241 | 254 | $config['sess_match_useragent'] = TRUE; |
242 | | -$config['sess_time_to_update'] = PHP_INT_MAX; |
| 255 | +$config['sess_time_to_update'] = 300; |
243 | 256 |
|
244 | 257 | /* |
245 | 258 | |-------------------------------------------------------------------------- |
|
249 | 262 | | 'cookie_prefix' = Set a prefix if you need to avoid collisions |
250 | 263 | | 'cookie_domain' = Set to .your-domain.com for site-wide cookies |
251 | 264 | | 'cookie_path' = Typically will be a forward slash |
| 265 | +| 'cookie_secure' = Cookies will only be set if a secure HTTPS connection exists. |
252 | 266 | | |
253 | 267 | */ |
254 | 268 | $config['cookie_prefix'] = ""; |
255 | 269 | $config['cookie_domain'] = ""; |
256 | 270 | $config['cookie_path'] = "/"; |
| 271 | +$config['cookie_secure'] = FALSE; |
257 | 272 |
|
258 | 273 | /* |
259 | 274 | |-------------------------------------------------------------------------- |
|
264 | 279 | | COOKIE data is encountered |
265 | 280 | | |
266 | 281 | */ |
267 | | -$config['global_xss_filtering'] = TRUE; |
| 282 | +$config['global_xss_filtering'] = FALSE; |
| 283 | + |
| 284 | +/* |
| 285 | +|-------------------------------------------------------------------------- |
| 286 | +| Cross Site Request Forgery |
| 287 | +|-------------------------------------------------------------------------- |
| 288 | +| Enables a CSRF cookie token to be set. When set to TRUE, token will be |
| 289 | +| checked on a submitted form. If you are accepting user data, it is strongly |
| 290 | +| recommended CSRF protection be enabled. |
| 291 | +| |
| 292 | +| 'csrf_token_name' = The token name |
| 293 | +| 'csrf_cookie_name' = The cookie name |
| 294 | +| 'csrf_expire' = The number in seconds the token should expire. |
| 295 | +*/ |
| 296 | +$config['csrf_protection'] = FALSE; |
| 297 | +$config['csrf_token_name'] = 'csrf_test_name'; |
| 298 | +$config['csrf_cookie_name'] = 'csrf_cookie_name'; |
| 299 | +$config['csrf_expire'] = 7200; |
268 | 300 |
|
269 | 301 | /* |
270 | 302 | |-------------------------------------------------------------------------- |
|
280 | 312 | | means you are prematurely outputting something to your browser. It could |
281 | 313 | | even be a line of whitespace at the end of one of your scripts. For |
282 | 314 | | compression to work, nothing can be sent before the output buffer is called |
283 | | -| by the output class. Do not "echo" any values with compression enabled. |
| 315 | +| by the output class. Do not 'echo' any values with compression enabled. |
284 | 316 | | |
285 | 317 | */ |
286 | 318 | $config['compress_output'] = FALSE; |
|
290 | 322 | | Master Time Reference |
291 | 323 | |-------------------------------------------------------------------------- |
292 | 324 | | |
293 | | -| Options are "local" or "gmt". This pref tells the system whether to use |
294 | | -| your server's local time as the master "now" reference, or convert it to |
295 | | -| GMT. See the "date helper" page of the user guide for information |
| 325 | +| Options are 'local' or 'gmt'. This pref tells the system whether to use |
| 326 | +| your server's local time as the master 'now' reference, or convert it to |
| 327 | +| GMT. See the 'date helper' page of the user guide for information |
296 | 328 | | regarding date handling. |
297 | 329 | | |
298 | 330 | */ |
|
312 | 344 | $config['rewrite_short_tags'] = FALSE; |
313 | 345 |
|
314 | 346 |
|
| 347 | +/* |
| 348 | +|-------------------------------------------------------------------------- |
| 349 | +| Reverse Proxy IPs |
| 350 | +|-------------------------------------------------------------------------- |
| 351 | +| |
| 352 | +| If your server is behind a reverse proxy, you must whitelist the proxy IP |
| 353 | +| addresses from which CodeIgniter should trust the HTTP_X_FORWARDED_FOR |
| 354 | +| header in order to properly identify the visitor's IP address. |
| 355 | +| Comma-delimited, e.g. '10.0.1.200,10.0.1.201' |
| 356 | +| |
| 357 | +*/ |
| 358 | +$config['proxy_ips'] = ''; |
| 359 | + |
| 360 | + |
315 | 361 | /* End of file config.php */ |
316 | 362 | /* Location: ./application/config/config.php */ |
0 commit comments