1010|
1111| http://example.com/
1212|
13+ | If this is not set then CodeIgniter will guess the protocol, domain and
14+ | path to your installation.
15+ |
1316*/
14- $ config ['base_url ' ] = " http://localhost/classes/codeigniter-restserver/ " ;
17+ $ config ['base_url ' ] = '' ;
1518
1619/*
1720|--------------------------------------------------------------------------
2326| variable so that it is blank.
2427|
2528*/
26- $ config ['index_page ' ] = " index.php " ;
29+ $ config ['index_page ' ] = ' index.php ' ;
2730
2831/*
2932|--------------------------------------------------------------------------
3033| URI PROTOCOL
3134|--------------------------------------------------------------------------
3235|
3336| This item determines which server global should be used to retrieve the
34- | URI string. The default setting of " AUTO" works for most servers.
37+ | URI string. The default setting of ' AUTO' works for most servers.
3538| If your links do not seem to work, try one of the other delicious flavors:
3639|
3740| 'AUTO' Default - auto detects
4144| 'ORIG_PATH_INFO' Uses the ORIG_PATH_INFO
4245|
4346*/
44- $ config ['uri_protocol ' ] = " PATH_INFO " ; // You need to use PATH_INFO to enable ?var=somthing strings
47+ $ config ['uri_protocol ' ] = ' AUTO ' ;
4548
4649/*
4750|--------------------------------------------------------------------------
5457| http://codeigniter.com/user_guide/general/urls.html
5558*/
5659
57- $ config ['url_suffix ' ] = "" ;
60+ $ config ['url_suffix ' ] = '' ;
5861
5962/*
6063|--------------------------------------------------------------------------
6669| than english.
6770|
6871*/
69- $ config ['language ' ] = " english " ;
72+ $ config ['language ' ] = ' english ' ;
7073
7174/*
7275|--------------------------------------------------------------------------
7780| that require a character set to be provided.
7881|
7982*/
80- $ config ['charset ' ] = " UTF-8 " ;
83+ $ config ['charset ' ] = ' UTF-8 ' ;
8184
8285/*
8386|--------------------------------------------------------------------------
8487| Enable/Disable System Hooks
8588|--------------------------------------------------------------------------
8689|
87- | 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
8891| setting this variable to TRUE (boolean). See the user guide for details.
8992|
9093*/
134137| By default CodeIgniter uses search-engine friendly segment based URLs:
135138| example.com/who/what/where/
136139|
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+ |
137143| You can optionally enable standard query string based URLs:
138144| example.com?who=me&what=something&where=here
139145|
140146| Options are: TRUE or FALSE (boolean)
141147|
142- | 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
143149| invoke your controllers and its functions:
144150| example.com/index.php?c=controller&m=function
145151|
148154| use segment based URLs.
149155|
150156*/
151- $ config ['enable_query_strings ' ] = TRUE ;
152- $ config ['controller_trigger ' ] = 'c ' ;
153- $ config ['function_trigger ' ] = 'm ' ;
154- $ config ['directory_trigger ' ] = 'd ' ; // experimental not currently in use
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
155162
156163/*
157164|--------------------------------------------------------------------------
158165| Error Logging Threshold
159166|--------------------------------------------------------------------------
160167|
161- | 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
162169| determine what gets logged. Threshold options are:
163170| You can enable error logging by setting a threshold over zero. The
164171| threshold determines what gets logged. Threshold options are:
173180| your log files will fill up very fast.
174181|
175182*/
176- $ config ['log_threshold ' ] = 3 ;
183+ $ config ['log_threshold ' ] = 0 ;
177184
178185/*
179186|--------------------------------------------------------------------------
180187| Error Logging Directory Path
181188|--------------------------------------------------------------------------
182189|
183190| Leave this BLANK unless you would like to set something other than the default
184- | system /logs/ folder. Use a full server path with trailing slash.
191+ | application /logs/ folder. Use a full server path with trailing slash.
185192|
186193*/
187194$ config ['log_path ' ] = '' ;
213220| Encryption Key
214221|--------------------------------------------------------------------------
215222|
216- | If you use the Encryption class or the Sessions class with encryption
217- | 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.
218225|
219226*/
220- $ config ['encryption_key ' ] = "" ;
227+ $ config ['encryption_key ' ] = '' ;
221228
222229/*
223230|--------------------------------------------------------------------------
224231| Session Variables
225232|--------------------------------------------------------------------------
226233|
227- | 'session_cookie_name' = the name you want for the cookie
228- | 'encrypt_sess_cookie' = TRUE/FALSE (boolean). Whether to encrypt the cookie
229- | 'session_expiration' = the number of SECONDS you want the session to last.
230- | by default sessions last 7200 seconds (two hours). Set to zero for no expiration.
231- | '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
232245|
233246*/
234247$ config ['sess_cookie_name ' ] = 'ci_session ' ;
235248$ config ['sess_expiration ' ] = 7200 ;
249+ $ config ['sess_expire_on_close ' ] = FALSE ;
236250$ config ['sess_encrypt_cookie ' ] = FALSE ;
237251$ config ['sess_use_database ' ] = FALSE ;
238252$ config ['sess_table_name ' ] = 'ci_sessions ' ;
239253$ config ['sess_match_ip ' ] = FALSE ;
240254$ config ['sess_match_useragent ' ] = TRUE ;
241- $ config ['sess_time_to_update ' ] = 300 ;
255+ $ config ['sess_time_to_update ' ] = 300 ;
242256
243257/*
244258|--------------------------------------------------------------------------
250264| 'cookie_path' = Typically will be a forward slash
251265|
252266*/
253- $ config ['cookie_prefix ' ] = "" ;
254- $ config ['cookie_domain ' ] = "" ;
255- $ config ['cookie_path ' ] = " / " ;
267+ $ config ['cookie_prefix ' ] = '' ;
268+ $ config ['cookie_domain ' ] = '' ;
269+ $ config ['cookie_path ' ] = ' / ' ;
256270
257271/*
258272|--------------------------------------------------------------------------
265279*/
266280$ config ['global_xss_filtering ' ] = FALSE ;
267281
282+ /*
283+ |--------------------------------------------------------------------------
284+ | Cross Site Request Forgery
285+ |--------------------------------------------------------------------------
286+ | Enables a CSRF cookie token to be set. When set to TRUE, token will be
287+ | checked on a submitted form. If you are accepting user data, it is strongly
288+ | recommended CSRF protection be enabled.
289+ |
290+ | 'csrf_token_name' = The token name
291+ | 'csrf_cookie_name' = The cookie name
292+ | 'csrf_expire' = The number in seconds the token should expire.
293+ */
294+ $ config ['csrf_protection ' ] = FALSE ;
295+ $ config ['csrf_token_name ' ] = 'csrf_test_name ' ;
296+ $ config ['csrf_cookie_name ' ] = 'csrf_cookie_name ' ;
297+ $ config ['csrf_expire ' ] = 7200 ;
298+
268299/*
269300|--------------------------------------------------------------------------
270301| Output Compression
279310| means you are prematurely outputting something to your browser. It could
280311| even be a line of whitespace at the end of one of your scripts. For
281312| compression to work, nothing can be sent before the output buffer is called
282- | by the output class. Do not " echo" any values with compression enabled.
313+ | by the output class. Do not ' echo' any values with compression enabled.
283314|
284315*/
285316$ config ['compress_output ' ] = FALSE ;
289320| Master Time Reference
290321|--------------------------------------------------------------------------
291322|
292- | Options are " local" or " gmt" . This pref tells the system whether to use
293- | your server's local time as the master " now" reference, or convert it to
294- | GMT. See the " date helper" page of the user guide for information
323+ | Options are ' local' or ' gmt' . This pref tells the system whether to use
324+ | your server's local time as the master ' now' reference, or convert it to
325+ | GMT. See the ' date helper' page of the user guide for information
295326| regarding date handling.
296327|
297328*/
326357
327358
328359/* End of file config.php */
329- /* Location: ./system/ application/config/config.php */
360+ /* Location: ./application/config/config.php */
0 commit comments