blob: 251f1aa3f535df26cef220087c838861068cb4d2 [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|
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
Phil Sturgeon4df8b222010-12-15 14:23:14 +000037| 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|
82*/
Phil Sturgeon4df8b222010-12-15 14:23:14 +000083$config['charset'] = 'UTF-8';
Derek Allard2067d1a2008-11-13 22:59:24 +000084
85/*
86|--------------------------------------------------------------------------
87| Enable/Disable System Hooks
88|--------------------------------------------------------------------------
89|
Phil Sturgeon4df8b222010-12-15 14:23:14 +000090| If you would like to use the 'hooks' feature you must enable it by
Derek Allard2067d1a2008-11-13 22:59:24 +000091| setting this variable to TRUE (boolean). See the user guide for details.
92|
93*/
94$config['enable_hooks'] = FALSE;
95
96
97/*
98|--------------------------------------------------------------------------
99| Class Extension Prefix
100|--------------------------------------------------------------------------
101|
102| This item allows you to set the filename/classname prefix when extending
103| native libraries. For more information please see the user guide:
104|
105| http://codeigniter.com/user_guide/general/core_classes.html
106| http://codeigniter.com/user_guide/general/creating_libraries.html
107|
108*/
109$config['subclass_prefix'] = 'MY_';
110
111
112/*
113|--------------------------------------------------------------------------
114| Allowed URL Characters
115|--------------------------------------------------------------------------
116|
117| This lets you specify with a regular expression which characters are permitted
118| within your URLs. When someone tries to submit a URL with disallowed
119| characters they will get a warning message.
120|
121| As a security measure you are STRONGLY encouraged to restrict URLs to
122| as few characters as possible. By default only these are allowed: a-z 0-9~%.:_-
123|
124| Leave blank to allow all characters -- but only if you are insane.
125|
126| DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!
127|
128*/
129$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
130
131
132/*
133|--------------------------------------------------------------------------
134| Enable Query Strings
135|--------------------------------------------------------------------------
136|
137| By default CodeIgniter uses search-engine friendly segment based URLs:
138| example.com/who/what/where/
139|
140| You can optionally enable standard query string based URLs:
141| example.com?who=me&what=something&where=here
142|
143| Options are: TRUE or FALSE (boolean)
144|
Phil Sturgeon4df8b222010-12-15 14:23:14 +0000145| The other items let you set the query string 'words' that will
Derek Allard2067d1a2008-11-13 22:59:24 +0000146| invoke your controllers and its functions:
147| example.com/index.php?c=controller&m=function
148|
149| Please note that some of the helpers won't work as expected when
150| this feature is enabled, since CodeIgniter is designed primarily to
151| use segment based URLs.
152|
153*/
154$config['enable_query_strings'] = FALSE;
Barry Mienydd671972010-10-04 16:33:58 +0200155$config['controller_trigger'] = 'c';
156$config['function_trigger'] = 'm';
157$config['directory_trigger'] = 'd'; // experimental not currently in use
Derek Allard2067d1a2008-11-13 22:59:24 +0000158
159/*
160|--------------------------------------------------------------------------
161| Error Logging Threshold
162|--------------------------------------------------------------------------
163|
Barry Mienydd671972010-10-04 16:33:58 +0200164| If you have enabled error logging, you can set an error threshold to
Derek Allard2067d1a2008-11-13 22:59:24 +0000165| determine what gets logged. Threshold options are:
166| You can enable error logging by setting a threshold over zero. The
167| threshold determines what gets logged. Threshold options are:
168|
169| 0 = Disables logging, Error logging TURNED OFF
170| 1 = Error Messages (including PHP errors)
171| 2 = Debug Messages
172| 3 = Informational Messages
173| 4 = All Messages
174|
175| For a live site you'll usually only enable Errors (1) to be logged otherwise
176| your log files will fill up very fast.
177|
178*/
179$config['log_threshold'] = 0;
180
181/*
182|--------------------------------------------------------------------------
183| Error Logging Directory Path
184|--------------------------------------------------------------------------
185|
186| Leave this BLANK unless you would like to set something other than the default
187| system/logs/ folder. Use a full server path with trailing slash.
188|
189*/
190$config['log_path'] = '';
191
192/*
193|--------------------------------------------------------------------------
194| Date Format for Logs
195|--------------------------------------------------------------------------
196|
197| Each item that is logged has an associated date. You can use PHP date
198| codes to set your own date formatting
199|
200*/
201$config['log_date_format'] = 'Y-m-d H:i:s';
202
203/*
204|--------------------------------------------------------------------------
205| Cache Directory Path
206|--------------------------------------------------------------------------
207|
208| Leave this BLANK unless you would like to set something other than the default
209| system/cache/ folder. Use a full server path with trailing slash.
210|
211*/
212$config['cache_path'] = '';
213
214/*
215|--------------------------------------------------------------------------
216| Encryption Key
217|--------------------------------------------------------------------------
218|
Derek Jones5485db52010-08-30 21:31:08 -0500219| If you use the Encryption class or the Session class you
220| MUST set an encryption key. See the user guide for info.
Derek Allard2067d1a2008-11-13 22:59:24 +0000221|
222*/
Phil Sturgeon4df8b222010-12-15 14:23:14 +0000223$config['encryption_key'] = '';
Derek Allard2067d1a2008-11-13 22:59:24 +0000224
225/*
226|--------------------------------------------------------------------------
227| Session Variables
228|--------------------------------------------------------------------------
229|
Derek Jones21ca8cc2010-09-27 08:49:29 -0500230| 'sess_cookie_name' = the name you want for the cookie
Barry Mienydd671972010-10-04 16:33:58 +0200231| 'sess_expiration' = the number of SECONDS you want the session to last.
Derek Jones21ca8cc2010-09-27 08:49:29 -0500232| by default sessions last 7200 seconds (two hours). Set to zero for no expiration.
233| 'sess_expire_on_close' = Whether to cause the session to expire automatically
234| when the browser window is closed
235| 'sess_encrypt_cookie' = Whether to encrypt the cookie
236| 'sess_use_database' = Whether to save the session data to a database
237| 'sess_table_name' = The name of the session database table
238| 'sess_match_ip' = Whether to match the user's IP address when reading the session data
239| 'sess_match_useragent' = Whether to match the User Agent when reading the session data
240| 'sess_time_to_update' = how many seconds between CI refreshing Session Information
Derek Allard2067d1a2008-11-13 22:59:24 +0000241|
242*/
243$config['sess_cookie_name'] = 'ci_session';
244$config['sess_expiration'] = 7200;
Derek Jones21ca8cc2010-09-27 08:49:29 -0500245$config['sess_expire_on_close'] = FALSE;
Derek Allard2067d1a2008-11-13 22:59:24 +0000246$config['sess_encrypt_cookie'] = FALSE;
247$config['sess_use_database'] = FALSE;
248$config['sess_table_name'] = 'ci_sessions';
249$config['sess_match_ip'] = FALSE;
250$config['sess_match_useragent'] = TRUE;
Barry Mienydd671972010-10-04 16:33:58 +0200251$config['sess_time_to_update'] = 300;
Derek Allard2067d1a2008-11-13 22:59:24 +0000252
253/*
254|--------------------------------------------------------------------------
255| Cookie Related Variables
256|--------------------------------------------------------------------------
257|
258| 'cookie_prefix' = Set a prefix if you need to avoid collisions
259| 'cookie_domain' = Set to .your-domain.com for site-wide cookies
260| 'cookie_path' = Typically will be a forward slash
261|
262*/
Phil Sturgeon4df8b222010-12-15 14:23:14 +0000263$config['cookie_prefix'] = '';
264$config['cookie_domain'] = '';
265$config['cookie_path'] = '/';
Derek Allard2067d1a2008-11-13 22:59:24 +0000266
267/*
268|--------------------------------------------------------------------------
269| Global XSS Filtering
270|--------------------------------------------------------------------------
271|
272| Determines whether the XSS filter is always active when GET, POST or
273| COOKIE data is encountered
274|
275*/
276$config['global_xss_filtering'] = FALSE;
277
278/*
279|--------------------------------------------------------------------------
Shane Pearson49ced912010-10-06 17:31:40 -0500280| Cross Site Request Forgery
Derek Allard958543a2010-07-22 14:10:26 -0400281|--------------------------------------------------------------------------
Shane Pearson49ced912010-10-06 17:31:40 -0500282| Enables a CSRF cookie token to be set. When set to TRUE, token will be
Derek Allard958543a2010-07-22 14:10:26 -0400283| checked on a submitted form. If you are accepting user data, it is strongly
284| recommended CSRF protection be enabled.
285*/
286$config['csrf_protection'] = FALSE;
287
288
289/*
290|--------------------------------------------------------------------------
Derek Allard2067d1a2008-11-13 22:59:24 +0000291| Output Compression
292|--------------------------------------------------------------------------
293|
294| Enables Gzip output compression for faster page loads. When enabled,
295| the output class will test whether your server supports Gzip.
296| Even if it does, however, not all browsers support compression
297| so enable only if you are reasonably sure your visitors can handle it.
298|
299| VERY IMPORTANT: If you are getting a blank page when compression is enabled it
300| means you are prematurely outputting something to your browser. It could
301| even be a line of whitespace at the end of one of your scripts. For
302| compression to work, nothing can be sent before the output buffer is called
Phil Sturgeon4df8b222010-12-15 14:23:14 +0000303| by the output class. Do not 'echo' any values with compression enabled.
Derek Allard2067d1a2008-11-13 22:59:24 +0000304|
305*/
306$config['compress_output'] = FALSE;
307
308/*
309|--------------------------------------------------------------------------
310| Master Time Reference
311|--------------------------------------------------------------------------
312|
Phil Sturgeon4df8b222010-12-15 14:23:14 +0000313| Options are 'local' or 'gmt'. This pref tells the system whether to use
314| your server's local time as the master 'now' reference, or convert it to
315| GMT. See the 'date helper' page of the user guide for information
Derek Allard2067d1a2008-11-13 22:59:24 +0000316| regarding date handling.
317|
318*/
319$config['time_reference'] = 'local';
320
321
322/*
323|--------------------------------------------------------------------------
324| Rewrite PHP Short Tags
325|--------------------------------------------------------------------------
326|
327| If your PHP installation does not have short tag support enabled CI
328| can rewrite the tags on-the-fly, enabling you to utilize that syntax
329| in your view files. Options are TRUE or FALSE (boolean)
330|
331*/
332$config['rewrite_short_tags'] = FALSE;
333
334
Derek Jonesc5972282009-02-04 21:40:20 +0000335/*
336|--------------------------------------------------------------------------
337| Reverse Proxy IPs
338|--------------------------------------------------------------------------
339|
340| If your server is behind a reverse proxy, you must whitelist the proxy IP
341| addresses from which CodeIgniter should trust the HTTP_X_FORWARDED_FOR
342| header in order to properly identify the visitor's IP address.
343| Comma-delimited, e.g. '10.0.1.200,10.0.1.201'
344|
345*/
346$config['proxy_ips'] = '';
347
Derek Allard2067d1a2008-11-13 22:59:24 +0000348
349/* End of file config.php */
Derek Jonesf0b39942010-03-25 10:08:20 -0500350/* Location: ./application/config/config.php */