blob: a6d10d8dcc2c6d02f047ba68c912740365b51105 [file] [log] [blame]
Derek Jones4b9c6292011-07-01 17:40:48 -05001<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
Derek Allard2067d1a2008-11-13 22:59:24 +00002
3/*
4|--------------------------------------------------------------------------
5| Base Site URL
6|--------------------------------------------------------------------------
7|
8| URL to your CodeIgniter root. Typically this will be your base URL,
9| WITH a trailing slash:
10|
11| http://example.com/
12|
Phil Sturgeon4df8b222010-12-15 14:23:14 +000013| If this is not set then CodeIgniter will guess the protocol, domain and
14| path to your installation.
15|
Derek Allard2067d1a2008-11-13 22:59:24 +000016*/
Phil Sturgeon4df8b222010-12-15 14:23:14 +000017$config['base_url'] = '';
Derek Allard2067d1a2008-11-13 22:59:24 +000018
19/*
20|--------------------------------------------------------------------------
21| Index File
22|--------------------------------------------------------------------------
23|
24| Typically this will be your index.php file, unless you've renamed it to
25| something else. If you are using mod_rewrite to remove the page set this
26| variable so that it is blank.
27|
28*/
Phil Sturgeon4df8b222010-12-15 14:23:14 +000029$config['index_page'] = 'index.php';
Derek Allard2067d1a2008-11-13 22:59:24 +000030
31/*
32|--------------------------------------------------------------------------
33| URI PROTOCOL
34|--------------------------------------------------------------------------
35|
36| This item determines which server global should be used to retrieve the
Derek Jones4b9c6292011-07-01 17:40:48 -050037| URI string. The default setting of 'AUTO' works for most servers.
Derek Allard2067d1a2008-11-13 22:59:24 +000038| If your links do not seem to work, try one of the other delicious flavors:
39|
40| 'AUTO' Default - auto detects
41| 'PATH_INFO' Uses the PATH_INFO
42| 'QUERY_STRING' Uses the QUERY_STRING
43| 'REQUEST_URI' Uses the REQUEST_URI
44| 'ORIG_PATH_INFO' Uses the ORIG_PATH_INFO
45|
46*/
Phil Sturgeon4df8b222010-12-15 14:23:14 +000047$config['uri_protocol'] = 'AUTO';
Derek Allard2067d1a2008-11-13 22:59:24 +000048
49/*
50|--------------------------------------------------------------------------
51| URL suffix
52|--------------------------------------------------------------------------
53|
54| This option allows you to add a suffix to all URLs generated by CodeIgniter.
55| For more information please see the user guide:
56|
57| http://codeigniter.com/user_guide/general/urls.html
58*/
59
Phil Sturgeon4df8b222010-12-15 14:23:14 +000060$config['url_suffix'] = '';
Derek Allard2067d1a2008-11-13 22:59:24 +000061
62/*
63|--------------------------------------------------------------------------
64| Default Language
65|--------------------------------------------------------------------------
66|
67| This determines which set of language files should be used. Make sure
68| there is an available translation if you intend to use something other
69| than english.
70|
71*/
Phil Sturgeon4df8b222010-12-15 14:23:14 +000072$config['language'] = 'english';
Derek Allard2067d1a2008-11-13 22:59:24 +000073
74/*
75|--------------------------------------------------------------------------
76| Default Character Set
77|--------------------------------------------------------------------------
78|
79| This determines which character set is used by default in various methods
80| that require a character set to be provided.
81|
freewil8cc0cfe2011-08-27 21:53:00 -040082| See http://php.net/htmlspecialchars for a list of supported charsets.
83|
Derek Allard2067d1a2008-11-13 22:59:24 +000084*/
Phil Sturgeon4df8b222010-12-15 14:23:14 +000085$config['charset'] = 'UTF-8';
Derek Allard2067d1a2008-11-13 22:59:24 +000086
87/*
88|--------------------------------------------------------------------------
89| Enable/Disable System Hooks
90|--------------------------------------------------------------------------
91|
Phil Sturgeon4df8b222010-12-15 14:23:14 +000092| If you would like to use the 'hooks' feature you must enable it by
Derek Jones4b9c6292011-07-01 17:40:48 -050093| setting this variable to TRUE (boolean). See the user guide for details.
Derek Allard2067d1a2008-11-13 22:59:24 +000094|
95*/
96$config['enable_hooks'] = FALSE;
97
98
99/*
100|--------------------------------------------------------------------------
101| Class Extension Prefix
102|--------------------------------------------------------------------------
103|
104| This item allows you to set the filename/classname prefix when extending
Derek Jones4b9c6292011-07-01 17:40:48 -0500105| native libraries. For more information please see the user guide:
Derek Allard2067d1a2008-11-13 22:59:24 +0000106|
107| http://codeigniter.com/user_guide/general/core_classes.html
108| http://codeigniter.com/user_guide/general/creating_libraries.html
109|
110*/
111$config['subclass_prefix'] = 'MY_';
112
113
114/*
115|--------------------------------------------------------------------------
116| Allowed URL Characters
117|--------------------------------------------------------------------------
118|
119| This lets you specify with a regular expression which characters are permitted
Derek Jones4b9c6292011-07-01 17:40:48 -0500120| within your URLs. When someone tries to submit a URL with disallowed
Derek Allard2067d1a2008-11-13 22:59:24 +0000121| characters they will get a warning message.
122|
123| As a security measure you are STRONGLY encouraged to restrict URLs to
Derek Jones4b9c6292011-07-01 17:40:48 -0500124| as few characters as possible. By default only these are allowed: a-z 0-9~%.:_-
Derek Allard2067d1a2008-11-13 22:59:24 +0000125|
126| Leave blank to allow all characters -- but only if you are insane.
127|
128| DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!
129|
130*/
131$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
132
133
134/*
135|--------------------------------------------------------------------------
136| Enable Query Strings
137|--------------------------------------------------------------------------
138|
139| By default CodeIgniter uses search-engine friendly segment based URLs:
140| example.com/who/what/where/
141|
Derek Jones4b9c6292011-07-01 17:40:48 -0500142| By default CodeIgniter enables access to the $_GET array. If for some
Dan Horrigan65d603e2010-12-15 08:38:30 -0500143| reason you would like to disable it, set 'allow_get_array' to FALSE.
144|
Derek Allard2067d1a2008-11-13 22:59:24 +0000145| You can optionally enable standard query string based URLs:
146| example.com?who=me&what=something&where=here
147|
148| Options are: TRUE or FALSE (boolean)
149|
Phil Sturgeon4df8b222010-12-15 14:23:14 +0000150| The other items let you set the query string 'words' that will
Derek Allard2067d1a2008-11-13 22:59:24 +0000151| invoke your controllers and its functions:
152| example.com/index.php?c=controller&m=function
153|
154| Please note that some of the helpers won't work as expected when
155| this feature is enabled, since CodeIgniter is designed primarily to
156| use segment based URLs.
157|
158*/
Phil Sturgeonc8089152010-12-27 19:06:28 +0000159$config['allow_get_array'] = TRUE;
Derek Allard2067d1a2008-11-13 22:59:24 +0000160$config['enable_query_strings'] = FALSE;
Barry Mienydd671972010-10-04 16:33:58 +0200161$config['controller_trigger'] = 'c';
162$config['function_trigger'] = 'm';
163$config['directory_trigger'] = 'd'; // experimental not currently in use
Derek Allard2067d1a2008-11-13 22:59:24 +0000164
165/*
166|--------------------------------------------------------------------------
167| Error Logging Threshold
168|--------------------------------------------------------------------------
169|
Barry Mienydd671972010-10-04 16:33:58 +0200170| If you have enabled error logging, you can set an error threshold to
Derek Allard2067d1a2008-11-13 22:59:24 +0000171| determine what gets logged. Threshold options are:
172| You can enable error logging by setting a threshold over zero. The
173| threshold determines what gets logged. Threshold options are:
174|
175| 0 = Disables logging, Error logging TURNED OFF
176| 1 = Error Messages (including PHP errors)
177| 2 = Debug Messages
178| 3 = Informational Messages
179| 4 = All Messages
180|
Nithin333f9f92011-08-21 16:52:06 -0400181| You can also pass in a array with threshold levels to show individual error types
182|
183| array(2) = Debug Messages, without Error Messages
184|
Derek Allard2067d1a2008-11-13 22:59:24 +0000185| For a live site you'll usually only enable Errors (1) to be logged otherwise
186| your log files will fill up very fast.
187|
188*/
189$config['log_threshold'] = 0;
190
191/*
192|--------------------------------------------------------------------------
193| Error Logging Directory Path
194|--------------------------------------------------------------------------
195|
196| Leave this BLANK unless you would like to set something other than the default
Eric Barnes3cf4c4e2011-01-12 09:10:08 -0500197| application/logs/ folder. Use a full server path with trailing slash.
Derek Allard2067d1a2008-11-13 22:59:24 +0000198|
199*/
200$config['log_path'] = '';
201
202/*
203|--------------------------------------------------------------------------
204| Date Format for Logs
205|--------------------------------------------------------------------------
206|
207| Each item that is logged has an associated date. You can use PHP date
208| codes to set your own date formatting
209|
210*/
211$config['log_date_format'] = 'Y-m-d H:i:s';
212
213/*
214|--------------------------------------------------------------------------
215| Cache Directory Path
216|--------------------------------------------------------------------------
217|
218| Leave this BLANK unless you would like to set something other than the default
Derek Jones4b9c6292011-07-01 17:40:48 -0500219| system/cache/ folder. Use a full server path with trailing slash.
Derek Allard2067d1a2008-11-13 22:59:24 +0000220|
221*/
222$config['cache_path'] = '';
223
224/*
225|--------------------------------------------------------------------------
226| Encryption Key
227|--------------------------------------------------------------------------
228|
Derek Jones5485db52010-08-30 21:31:08 -0500229| If you use the Encryption class or the Session class you
Derek Jones4b9c6292011-07-01 17:40:48 -0500230| MUST set an encryption key. See the user guide for info.
Derek Allard2067d1a2008-11-13 22:59:24 +0000231|
232*/
Phil Sturgeon4df8b222010-12-15 14:23:14 +0000233$config['encryption_key'] = '';
Derek Allard2067d1a2008-11-13 22:59:24 +0000234
235/*
236|--------------------------------------------------------------------------
237| Session Variables
238|--------------------------------------------------------------------------
239|
Derek Jones21ca8cc2010-09-27 08:49:29 -0500240| 'sess_cookie_name' = the name you want for the cookie
Barry Mienydd671972010-10-04 16:33:58 +0200241| 'sess_expiration' = the number of SECONDS you want the session to last.
Derek Jones4b9c6292011-07-01 17:40:48 -0500242| by default sessions last 7200 seconds (two hours). Set to zero for no expiration.
Derek Jones21ca8cc2010-09-27 08:49:29 -0500243| 'sess_expire_on_close' = Whether to cause the session to expire automatically
Derek Jones4b9c6292011-07-01 17:40:48 -0500244| when the browser window is closed
Derek Jones21ca8cc2010-09-27 08:49:29 -0500245| 'sess_encrypt_cookie' = Whether to encrypt the cookie
246| 'sess_use_database' = Whether to save the session data to a database
247| 'sess_table_name' = The name of the session database table
248| 'sess_match_ip' = Whether to match the user's IP address when reading the session data
249| 'sess_match_useragent' = Whether to match the User Agent when reading the session data
250| 'sess_time_to_update' = how many seconds between CI refreshing Session Information
Derek Allard2067d1a2008-11-13 22:59:24 +0000251|
252*/
253$config['sess_cookie_name'] = 'ci_session';
254$config['sess_expiration'] = 7200;
Derek Jones21ca8cc2010-09-27 08:49:29 -0500255$config['sess_expire_on_close'] = FALSE;
Derek Allard2067d1a2008-11-13 22:59:24 +0000256$config['sess_encrypt_cookie'] = FALSE;
257$config['sess_use_database'] = FALSE;
258$config['sess_table_name'] = 'ci_sessions';
259$config['sess_match_ip'] = FALSE;
260$config['sess_match_useragent'] = TRUE;
Barry Mienydd671972010-10-04 16:33:58 +0200261$config['sess_time_to_update'] = 300;
Derek Allard2067d1a2008-11-13 22:59:24 +0000262
263/*
264|--------------------------------------------------------------------------
265| Cookie Related Variables
266|--------------------------------------------------------------------------
267|
268| 'cookie_prefix' = Set a prefix if you need to avoid collisions
269| 'cookie_domain' = Set to .your-domain.com for site-wide cookies
Derek Jones4b9c6292011-07-01 17:40:48 -0500270| 'cookie_path' = Typically will be a forward slash
271| 'cookie_secure' = Cookies will only be set if a secure HTTPS connection exists.
Derek Allard2067d1a2008-11-13 22:59:24 +0000272|
273*/
274$config['cookie_prefix'] = "";
275$config['cookie_domain'] = "";
276$config['cookie_path'] = "/";
Robin Sowelld6d9f452011-02-11 15:31:27 -0500277$config['cookie_secure'] = FALSE;
Derek Allard2067d1a2008-11-13 22:59:24 +0000278
279/*
280|--------------------------------------------------------------------------
281| Global XSS Filtering
282|--------------------------------------------------------------------------
283|
284| Determines whether the XSS filter is always active when GET, POST or
285| COOKIE data is encountered
286|
287*/
288$config['global_xss_filtering'] = FALSE;
289
290/*
291|--------------------------------------------------------------------------
Shane Pearson49ced912010-10-06 17:31:40 -0500292| Cross Site Request Forgery
Derek Allard958543a2010-07-22 14:10:26 -0400293|--------------------------------------------------------------------------
Shane Pearson49ced912010-10-06 17:31:40 -0500294| Enables a CSRF cookie token to be set. When set to TRUE, token will be
Derek Allard958543a2010-07-22 14:10:26 -0400295| checked on a submitted form. If you are accepting user data, it is strongly
296| recommended CSRF protection be enabled.
Eric Barnes9805ecc2011-01-16 23:35:16 -0500297|
298| 'csrf_token_name' = The token name
299| 'csrf_cookie_name' = The cookie name
300| 'csrf_expire' = The number in seconds the token should expire.
Alex Bilbieaeb2c3e2011-08-21 16:14:54 +0100301| 'csrf_exclude_uris' = Array of URIs which ignore CSRF checks
Derek Allard958543a2010-07-22 14:10:26 -0400302*/
303$config['csrf_protection'] = FALSE;
Eric Barnes9805ecc2011-01-16 23:35:16 -0500304$config['csrf_token_name'] = 'csrf_test_name';
305$config['csrf_cookie_name'] = 'csrf_cookie_name';
306$config['csrf_expire'] = 7200;
Alex Bilbieaeb2c3e2011-08-21 16:14:54 +0100307$config['csrf_exclude_uris'] = array();
Derek Allard958543a2010-07-22 14:10:26 -0400308
309/*
310|--------------------------------------------------------------------------
Derek Allard2067d1a2008-11-13 22:59:24 +0000311| Output Compression
312|--------------------------------------------------------------------------
313|
Derek Jones4b9c6292011-07-01 17:40:48 -0500314| Enables Gzip output compression for faster page loads. When enabled,
Derek Allard2067d1a2008-11-13 22:59:24 +0000315| the output class will test whether your server supports Gzip.
316| Even if it does, however, not all browsers support compression
317| so enable only if you are reasonably sure your visitors can handle it.
318|
Derek Jones4b9c6292011-07-01 17:40:48 -0500319| VERY IMPORTANT: If you are getting a blank page when compression is enabled it
Derek Allard2067d1a2008-11-13 22:59:24 +0000320| means you are prematurely outputting something to your browser. It could
Derek Jones4b9c6292011-07-01 17:40:48 -0500321| even be a line of whitespace at the end of one of your scripts. For
Derek Allard2067d1a2008-11-13 22:59:24 +0000322| compression to work, nothing can be sent before the output buffer is called
Derek Jones4b9c6292011-07-01 17:40:48 -0500323| by the output class. Do not 'echo' any values with compression enabled.
Derek Allard2067d1a2008-11-13 22:59:24 +0000324|
325*/
326$config['compress_output'] = FALSE;
327
328/*
329|--------------------------------------------------------------------------
330| Master Time Reference
331|--------------------------------------------------------------------------
332|
Derek Jones4b9c6292011-07-01 17:40:48 -0500333| Options are 'local' or 'gmt'. This pref tells the system whether to use
Phil Sturgeon4df8b222010-12-15 14:23:14 +0000334| your server's local time as the master 'now' reference, or convert it to
Derek Jones4b9c6292011-07-01 17:40:48 -0500335| GMT. See the 'date helper' page of the user guide for information
Derek Allard2067d1a2008-11-13 22:59:24 +0000336| regarding date handling.
337|
338*/
339$config['time_reference'] = 'local';
340
341
342/*
343|--------------------------------------------------------------------------
344| Rewrite PHP Short Tags
345|--------------------------------------------------------------------------
346|
347| If your PHP installation does not have short tag support enabled CI
348| can rewrite the tags on-the-fly, enabling you to utilize that syntax
Derek Jones4b9c6292011-07-01 17:40:48 -0500349| in your view files. Options are TRUE or FALSE (boolean)
Derek Allard2067d1a2008-11-13 22:59:24 +0000350|
351*/
352$config['rewrite_short_tags'] = FALSE;
353
354
Derek Jonesc5972282009-02-04 21:40:20 +0000355/*
356|--------------------------------------------------------------------------
357| Reverse Proxy IPs
358|--------------------------------------------------------------------------
359|
360| If your server is behind a reverse proxy, you must whitelist the proxy IP
361| addresses from which CodeIgniter should trust the HTTP_X_FORWARDED_FOR
362| header in order to properly identify the visitor's IP address.
363| Comma-delimited, e.g. '10.0.1.200,10.0.1.201'
364|
365*/
366$config['proxy_ips'] = '';
367
Derek Allard2067d1a2008-11-13 22:59:24 +0000368
369/* End of file config.php */
Phil Sturgeon33ed0f32011-02-16 19:03:49 +0000370/* Location: ./application/config/config.php */