blob: 26b31e309de114ec3eea2235ea044f80d531eb5a [file] [log] [blame]
Derek Allard2067d1a2008-11-13 22:59:24 +00001<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
2
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|
13*/
Derek Jonesabb0adb2009-02-04 21:44:40 +000014$config['base_url'] = "http://example.com/";
Derek Allard2067d1a2008-11-13 22:59:24 +000015
16/*
17|--------------------------------------------------------------------------
18| Index File
19|--------------------------------------------------------------------------
20|
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
23| variable so that it is blank.
24|
25*/
26$config['index_page'] = "index.php";
27
28/*
29|--------------------------------------------------------------------------
30| URI PROTOCOL
31|--------------------------------------------------------------------------
32|
33| This item determines which server global should be used to retrieve the
34| URI string. The default setting of "AUTO" works for most servers.
35| If your links do not seem to work, try one of the other delicious flavors:
36|
37| 'AUTO' Default - auto detects
38| 'PATH_INFO' Uses the PATH_INFO
39| 'QUERY_STRING' Uses the QUERY_STRING
40| 'REQUEST_URI' Uses the REQUEST_URI
41| 'ORIG_PATH_INFO' Uses the ORIG_PATH_INFO
42|
43*/
44$config['uri_protocol'] = "AUTO";
45
46/*
47|--------------------------------------------------------------------------
48| URL suffix
49|--------------------------------------------------------------------------
50|
51| This option allows you to add a suffix to all URLs generated by CodeIgniter.
52| For more information please see the user guide:
53|
54| http://codeigniter.com/user_guide/general/urls.html
55*/
56
57$config['url_suffix'] = "";
58
59/*
60|--------------------------------------------------------------------------
61| Default Language
62|--------------------------------------------------------------------------
63|
64| This determines which set of language files should be used. Make sure
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| Default Character Set
74|--------------------------------------------------------------------------
75|
76| This determines which character set is used by default in various methods
77| that require a character set to be provided.
78|
79*/
80$config['charset'] = "UTF-8";
81
82/*
83|--------------------------------------------------------------------------
84| Enable/Disable System Hooks
85|--------------------------------------------------------------------------
86|
87| If you would like to use the "hooks" feature you must enable it by
88| setting this variable to TRUE (boolean). See the user guide for details.
89|
90*/
91$config['enable_hooks'] = FALSE;
92
93
94/*
95|--------------------------------------------------------------------------
96| Class Extension Prefix
97|--------------------------------------------------------------------------
98|
99| This item allows you to set the filename/classname prefix when extending
100| native libraries. For more information please see the user guide:
101|
102| http://codeigniter.com/user_guide/general/core_classes.html
103| http://codeigniter.com/user_guide/general/creating_libraries.html
104|
105*/
106$config['subclass_prefix'] = 'MY_';
107
108
109/*
110|--------------------------------------------------------------------------
111| Allowed URL Characters
112|--------------------------------------------------------------------------
113|
114| This lets you specify with a regular expression which characters are permitted
115| within your URLs. When someone tries to submit a URL with disallowed
116| characters they will get a warning message.
117|
118| As a security measure you are STRONGLY encouraged to restrict URLs to
119| as few characters as possible. By default only these are allowed: a-z 0-9~%.:_-
120|
121| Leave blank to allow all characters -- but only if you are insane.
122|
123| DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!
124|
125*/
126$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
127
128
129/*
130|--------------------------------------------------------------------------
131| Enable Query Strings
132|--------------------------------------------------------------------------
133|
134| By default CodeIgniter uses search-engine friendly segment based URLs:
135| example.com/who/what/where/
136|
137| You can optionally enable standard query string based URLs:
138| example.com?who=me&what=something&where=here
139|
140| Options are: TRUE or FALSE (boolean)
141|
142| The other items let you set the query string "words" that will
143| invoke your controllers and its functions:
144| example.com/index.php?c=controller&m=function
145|
146| Please note that some of the helpers won't work as expected when
147| this feature is enabled, since CodeIgniter is designed primarily to
148| use segment based URLs.
149|
150*/
151$config['enable_query_strings'] = FALSE;
Barry Mienydd671972010-10-04 16:33:58 +0200152$config['controller_trigger'] = 'c';
153$config['function_trigger'] = 'm';
154$config['directory_trigger'] = 'd'; // experimental not currently in use
Derek Allard2067d1a2008-11-13 22:59:24 +0000155
156/*
157|--------------------------------------------------------------------------
158| Error Logging Threshold
159|--------------------------------------------------------------------------
160|
Barry Mienydd671972010-10-04 16:33:58 +0200161| If you have enabled error logging, you can set an error threshold to
Derek Allard2067d1a2008-11-13 22:59:24 +0000162| determine what gets logged. Threshold options are:
163| You can enable error logging by setting a threshold over zero. The
164| threshold determines what gets logged. Threshold options are:
165|
166| 0 = Disables logging, Error logging TURNED OFF
167| 1 = Error Messages (including PHP errors)
168| 2 = Debug Messages
169| 3 = Informational Messages
170| 4 = All Messages
171|
172| For a live site you'll usually only enable Errors (1) to be logged otherwise
173| your log files will fill up very fast.
174|
175*/
176$config['log_threshold'] = 0;
177
178/*
179|--------------------------------------------------------------------------
180| Error Logging Directory Path
181|--------------------------------------------------------------------------
182|
183| 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.
185|
186*/
187$config['log_path'] = '';
188
189/*
190|--------------------------------------------------------------------------
191| Date Format for Logs
192|--------------------------------------------------------------------------
193|
194| Each item that is logged has an associated date. You can use PHP date
195| codes to set your own date formatting
196|
197*/
198$config['log_date_format'] = 'Y-m-d H:i:s';
199
200/*
201|--------------------------------------------------------------------------
202| Cache Directory Path
203|--------------------------------------------------------------------------
204|
205| Leave this BLANK unless you would like to set something other than the default
206| system/cache/ folder. Use a full server path with trailing slash.
207|
208*/
209$config['cache_path'] = '';
210
211/*
212|--------------------------------------------------------------------------
213| Encryption Key
214|--------------------------------------------------------------------------
215|
Derek Jones5485db52010-08-30 21:31:08 -0500216| If you use the Encryption class or the Session class you
217| MUST set an encryption key. See the user guide for info.
Derek Allard2067d1a2008-11-13 22:59:24 +0000218|
219*/
220$config['encryption_key'] = "";
221
222/*
223|--------------------------------------------------------------------------
224| Session Variables
225|--------------------------------------------------------------------------
226|
Derek Jones21ca8cc2010-09-27 08:49:29 -0500227| 'sess_cookie_name' = the name you want for the cookie
Barry Mienydd671972010-10-04 16:33:58 +0200228| 'sess_expiration' = the number of SECONDS you want the session to last.
Derek Jones21ca8cc2010-09-27 08:49:29 -0500229| by default sessions last 7200 seconds (two hours). Set to zero for no expiration.
230| 'sess_expire_on_close' = Whether to cause the session to expire automatically
231| when the browser window is closed
232| 'sess_encrypt_cookie' = Whether to encrypt the cookie
233| 'sess_use_database' = Whether to save the session data to a database
234| 'sess_table_name' = The name of the session database table
235| 'sess_match_ip' = Whether to match the user's IP address when reading the session data
236| 'sess_match_useragent' = Whether to match the User Agent when reading the session data
237| 'sess_time_to_update' = how many seconds between CI refreshing Session Information
Derek Allard2067d1a2008-11-13 22:59:24 +0000238|
239*/
240$config['sess_cookie_name'] = 'ci_session';
241$config['sess_expiration'] = 7200;
Derek Jones21ca8cc2010-09-27 08:49:29 -0500242$config['sess_expire_on_close'] = FALSE;
Derek Allard2067d1a2008-11-13 22:59:24 +0000243$config['sess_encrypt_cookie'] = FALSE;
244$config['sess_use_database'] = FALSE;
245$config['sess_table_name'] = 'ci_sessions';
246$config['sess_match_ip'] = FALSE;
247$config['sess_match_useragent'] = TRUE;
Barry Mienydd671972010-10-04 16:33:58 +0200248$config['sess_time_to_update'] = 300;
Derek Allard2067d1a2008-11-13 22:59:24 +0000249
250/*
251|--------------------------------------------------------------------------
252| Cookie Related Variables
253|--------------------------------------------------------------------------
254|
255| 'cookie_prefix' = Set a prefix if you need to avoid collisions
256| 'cookie_domain' = Set to .your-domain.com for site-wide cookies
257| 'cookie_path' = Typically will be a forward slash
Robin Sowelld6d9f452011-02-11 15:31:27 -0500258| 'cookie_secure' = Cookies will only be set if a secure HTTPS connection exists.
Derek Allard2067d1a2008-11-13 22:59:24 +0000259|
260*/
261$config['cookie_prefix'] = "";
262$config['cookie_domain'] = "";
263$config['cookie_path'] = "/";
Robin Sowelld6d9f452011-02-11 15:31:27 -0500264$config['cookie_secure'] = FALSE;
Derek Allard2067d1a2008-11-13 22:59:24 +0000265
266/*
267|--------------------------------------------------------------------------
268| Global XSS Filtering
269|--------------------------------------------------------------------------
270|
271| Determines whether the XSS filter is always active when GET, POST or
272| COOKIE data is encountered
273|
274*/
275$config['global_xss_filtering'] = FALSE;
276
277/*
278|--------------------------------------------------------------------------
Shane Pearson49ced912010-10-06 17:31:40 -0500279| Cross Site Request Forgery
Derek Allard958543a2010-07-22 14:10:26 -0400280|--------------------------------------------------------------------------
Shane Pearson49ced912010-10-06 17:31:40 -0500281| Enables a CSRF cookie token to be set. When set to TRUE, token will be
Derek Allard958543a2010-07-22 14:10:26 -0400282| checked on a submitted form. If you are accepting user data, it is strongly
283| recommended CSRF protection be enabled.
284*/
285$config['csrf_protection'] = FALSE;
286
287
288/*
289|--------------------------------------------------------------------------
Derek Allard2067d1a2008-11-13 22:59:24 +0000290| Output Compression
291|--------------------------------------------------------------------------
292|
293| Enables Gzip output compression for faster page loads. When enabled,
294| the output class will test whether your server supports Gzip.
295| Even if it does, however, not all browsers support compression
296| so enable only if you are reasonably sure your visitors can handle it.
297|
298| VERY IMPORTANT: If you are getting a blank page when compression is enabled it
299| means you are prematurely outputting something to your browser. It could
300| even be a line of whitespace at the end of one of your scripts. For
301| compression to work, nothing can be sent before the output buffer is called
302| by the output class. Do not "echo" any values with compression enabled.
303|
304*/
305$config['compress_output'] = FALSE;
306
307/*
308|--------------------------------------------------------------------------
309| Master Time Reference
310|--------------------------------------------------------------------------
311|
312| Options are "local" or "gmt". This pref tells the system whether to use
313| your server's local time as the master "now" reference, or convert it to
314| GMT. See the "date helper" page of the user guide for information
315| regarding date handling.
316|
317*/
318$config['time_reference'] = 'local';
319
320
321/*
322|--------------------------------------------------------------------------
323| Rewrite PHP Short Tags
324|--------------------------------------------------------------------------
325|
326| If your PHP installation does not have short tag support enabled CI
327| can rewrite the tags on-the-fly, enabling you to utilize that syntax
328| in your view files. Options are TRUE or FALSE (boolean)
329|
330*/
331$config['rewrite_short_tags'] = FALSE;
332
333
Derek Jonesc5972282009-02-04 21:40:20 +0000334/*
335|--------------------------------------------------------------------------
336| Reverse Proxy IPs
337|--------------------------------------------------------------------------
338|
339| If your server is behind a reverse proxy, you must whitelist the proxy IP
340| addresses from which CodeIgniter should trust the HTTP_X_FORWARDED_FOR
341| header in order to properly identify the visitor's IP address.
342| Comma-delimited, e.g. '10.0.1.200,10.0.1.201'
343|
344*/
345$config['proxy_ips'] = '';
346
Derek Allard2067d1a2008-11-13 22:59:24 +0000347
348/* End of file config.php */
Derek Jonesf0b39942010-03-25 10:08:20 -0500349/* Location: ./application/config/config.php */