blob: fc47240104cb6b590da0307734d15f975e050bb9 [file] [log] [blame]
adminb0dd10f2006-08-25 17:25:49 +00001<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
2
3/*
4|--------------------------------------------------------------------------
5| Base Site URL
6|--------------------------------------------------------------------------
7|
admine334c472006-10-21 19:44:22 +00008| URL to your Code Igniter root. Typically this will be your base URL,
adminb0dd10f2006-08-25 17:25:49 +00009| WITH a trailing slash:
10|
11| http://www.your-site.com/
12|
13*/
14$config['base_url'] = "http://127.0.0.1/CodeIgniter/";
15
16/*
17|--------------------------------------------------------------------------
18| Index File
19|--------------------------------------------------------------------------
20|
admine334c472006-10-21 19:44:22 +000021| 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
adminb0dd10f2006-08-25 17:25:49 +000023| variable so that it is blank.
24|
25*/
26$config['index_page'] = "index.php";
27
28/*
29|--------------------------------------------------------------------------
30| URI PROTOCOL
31|--------------------------------------------------------------------------
32|
admine334c472006-10-21 19:44:22 +000033| This item determines which server global should be used to retrieve the
admin6871d952006-10-04 00:36:18 +000034| URI string. The default setting of "AUTO" works for most servers.
adminb0dd10f2006-08-25 17:25:49 +000035| If your links do not seem to work, try one of the other delicious flavors:
admine334c472006-10-21 19:44:22 +000036|
admin41a16852006-09-26 18:17:19 +000037| 'AUTO' Default - auto detects
admine334c472006-10-21 19:44:22 +000038| 'PATH_INFO' Uses the PATH_INFO
admin41a16852006-09-26 18:17:19 +000039| 'QUERY_STRING' Uses the QUERY_STRING
40| 'REQUEST_URI' Uses the REQUEST_URI
admine334c472006-10-21 19:44:22 +000041| 'ORIG_PATH_INFO' Uses the ORIG_PATH_INFO
adminb0dd10f2006-08-25 17:25:49 +000042|
43*/
admin41a16852006-09-26 18:17:19 +000044$config['uri_protocol'] = "AUTO";
adminb0dd10f2006-08-25 17:25:49 +000045
46/*
47|--------------------------------------------------------------------------
48| URL suffix
49|--------------------------------------------------------------------------
50|
51| This option allows you to add a suffix to all URLs generated by Code Igniter.
52| For more information please see the user guide:
admine334c472006-10-21 19:44:22 +000053|
adminb0dd10f2006-08-25 17:25:49 +000054| http://www.codeigniter.com/user_guide/general/urls.html
55*/
56
57$config['url_suffix'] = "";
58
59/*
60|--------------------------------------------------------------------------
61| Default Language
62|--------------------------------------------------------------------------
63|
admine334c472006-10-21 19:44:22 +000064| This determines which set of language files should be used. Make sure
adminb0dd10f2006-08-25 17:25:49 +000065| 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|--------------------------------------------------------------------------
74| Enable/Disable System Hooks
75|--------------------------------------------------------------------------
76|
77| If you would like to use the "hooks" feature you must enable it by
78| setting this variable to TRUE (boolean). See the user guide for details.
79|
80*/
admine0cd6092006-10-20 01:00:31 +000081$config['enable_hooks'] = TRUE;
adminb0dd10f2006-08-25 17:25:49 +000082
83
84/*
85|--------------------------------------------------------------------------
admin0625e192006-10-20 22:16:54 +000086| Class Extension Prefix
87|--------------------------------------------------------------------------
88|
89| This item allows you to set the filename/classname prefix when extending
90| native libraries. For more information please see the user guide:
admine334c472006-10-21 19:44:22 +000091|
admin0625e192006-10-20 22:16:54 +000092| http://www.codeigniter.com/user_guide/general/core_classes.html
93| http://www.codeigniter.com/user_guide/general/creating_libraries.html
94|
95*/
96$config['subclass_prefix'] = 'MY_';
97
98
99/*
100|--------------------------------------------------------------------------
admin1082bdd2006-08-27 19:32:02 +0000101| Allowed URL Characters
102|--------------------------------------------------------------------------
103|
104| This lets you specify which characters are permitted within your URLs.
105| When someone tries to submit a URL with disallowed characters they will
106| get a warning message.
107|
108| As a security measure you are STRONGLY encouraged to restrict URLs to
109| as few characters as possible. By default only these are allowed: a-z 0-9~%.:_-
110|
111| Leave blank to allow all characters -- but only if you are insane.
admine334c472006-10-21 19:44:22 +0000112|
admin1082bdd2006-08-27 19:32:02 +0000113| DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!
114|
115*/
116$config['permitted_uri_chars'] = 'a-z 0-9~%.:_-';
117
118
119/*
120|--------------------------------------------------------------------------
adminb0dd10f2006-08-25 17:25:49 +0000121| Enable Query Strings
122|--------------------------------------------------------------------------
123|
124| By default Code Igniter uses search-engine friendly segment based URLs:
125| www.your-site.com/who/what/where/
126|
127| You can optionally enable standard query string based URLs:
128| www.your-site.com?who=me&what=something&where=here
129|
130| Options are: TRUE or FALSE (boolean)
131|
132| The two other items let you set the query string "words" that will
133| invoke your controllers and its functions:
134| www.your-site.com/index.php?c=controller&m=function
135|
136| Please note that some of the helpers won't work as expected when
137| this feature is enabled, since Code Igniter is designed primarily to
138| use segment based URLs.
139|
140*/
141$config['enable_query_strings'] = FALSE;
142$config['controller_trigger'] = 'c';
143$config['function_trigger'] = 'm';
144
145/*
146|--------------------------------------------------------------------------
admin0625e192006-10-20 22:16:54 +0000147| Error Logging
adminb0dd10f2006-08-25 17:25:49 +0000148|--------------------------------------------------------------------------
149|
admin05186612006-10-28 03:28:01 +0000150<<<<<<< .mine
151| Options are "local" or "gmt". This pref tells the system whether to use
152| your server's local time as the master "now" reference, or convert it to
153| GMT. See the "date helper" page of the user guide for information
154| regarding date handling.
155|
156*/
157$config['time_reference'] = 'local';
158
159/*
160|--------------------------------------------------------------------------
161| Error Logging Threshold
162|--------------------------------------------------------------------------
163|
164| If you have enabled error logging, you can set an error threshold to
165| determine what gets logged. Threshold options are:
166=======
admine334c472006-10-21 19:44:22 +0000167| You can enable error logging by setting a threshold over zero. The
adminadda3c32006-10-19 16:38:23 +0000168| threshold determines what gets logged. Threshold options are:
admin05186612006-10-28 03:28:01 +0000169>>>>>>> .r388
170|
171| 0 = Disables logging
adminadda3c32006-10-19 16:38:23 +0000172| 0 = Error logging TURNED OFF
adminb0dd10f2006-08-25 17:25:49 +0000173| 1 = Error Messages (including PHP errors)
174| 2 = Debug Messages
175| 3 = Informational Messages
176| 4 = All Messages
177|
admine334c472006-10-21 19:44:22 +0000178| For a live site you'll usually only enable Errors (1) to be logged otherwise
adminb0dd10f2006-08-25 17:25:49 +0000179| your log files will fill up very fast.
180|
181*/
admine7e1dcd2006-10-21 18:04:01 +0000182$config['log_threshold'] = 0;
adminb0dd10f2006-08-25 17:25:49 +0000183
184/*
185|--------------------------------------------------------------------------
186| Error Logging Directory Path
187|--------------------------------------------------------------------------
188|
189| Leave this BLANK unless you would like to set something other than the default
190| system/logs/ folder. Use a full server path with trailing slash.
191|
192*/
193$config['log_path'] = '';
194
195/*
196|--------------------------------------------------------------------------
197| Date Format for Logs
198|--------------------------------------------------------------------------
199|
200| Each item that is logged has an associated date. You can use PHP date
201| codes to set your own date formatting
202|
203*/
204$config['log_date_format'] = 'Y-m-d H:i:s';
205
206/*
207|--------------------------------------------------------------------------
208| Cache Directory Path
209|--------------------------------------------------------------------------
210|
211| Leave this BLANK unless you would like to set something other than the default
212| system/cache/ folder. Use a full server path with trailing slash.
213|
214*/
215$config['cache_path'] = '';
216
adminb0dd10f2006-08-25 17:25:49 +0000217/*
218|--------------------------------------------------------------------------
219| Encryption Key
220|--------------------------------------------------------------------------
221|
admine334c472006-10-21 19:44:22 +0000222| If you use the Encryption class or the Sessions class with encryption
adminb0dd10f2006-08-25 17:25:49 +0000223| enabled you MUST set an encryption key. See the user guide for info.
224|
225*/
226$config['encryption_key'] = "";
227
adminb0dd10f2006-08-25 17:25:49 +0000228/*
229|--------------------------------------------------------------------------
230| Session Variables
231|--------------------------------------------------------------------------
232|
233| 'session_cookie_name' = the name you want for the cookie
234| 'encrypt_sess_cookie' = TRUE/FALSE (boolean). Whether to encrypt the cookie
235| 'session_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|
238*/
239$config['sess_cookie_name'] = 'ci_session';
240$config['sess_expiration'] = 7200;
241$config['sess_encrypt_cookie'] = FALSE;
admin05186612006-10-28 03:28:01 +0000242$config['sess_use_database'] = TRUE;
243$config['sess_table_name'] = 'ci_sessions';
adminb0dd10f2006-08-25 17:25:49 +0000244$config['sess_match_ip'] = TRUE;
245$config['sess_match_useragent'] = TRUE;
246
adminb0dd10f2006-08-25 17:25:49 +0000247/*
248|--------------------------------------------------------------------------
249| Cookie Related Variables
250|--------------------------------------------------------------------------
admine334c472006-10-21 19:44:22 +0000251|
adminb0dd10f2006-08-25 17:25:49 +0000252| 'cookie_prefix' = Set a prefix if you need to avoid collisions
253| 'cookie_domain' = Set to .your-domain.com for site-wide cookies
254| 'cookie_path' = Typically will be a forward slash
255|
256*/
257$config['cookie_prefix'] = "";
admine334c472006-10-21 19:44:22 +0000258$config['cookie_domain'] = "";
adminb0dd10f2006-08-25 17:25:49 +0000259$config['cookie_path'] = "/";
260
261/*
262|--------------------------------------------------------------------------
263| Global XSS Filtering
264|--------------------------------------------------------------------------
265|
admine334c472006-10-21 19:44:22 +0000266| Determines whether the XSS filter is always active when GET, POST or
adminb0dd10f2006-08-25 17:25:49 +0000267| COOKIE data is encountered
268|
269*/
270$config['global_xss_filtering'] = FALSE;
271
admin9aaa75e2006-09-21 04:45:20 +0000272/*
273|--------------------------------------------------------------------------
274| Output Compression
275|--------------------------------------------------------------------------
276|
admin6bd915c2006-09-22 00:12:23 +0000277| Enables Gzip output compression for faster page loads. When enabled,
admine334c472006-10-21 19:44:22 +0000278| the output class will test whether your server supports Gzip.
admin6bd915c2006-09-22 00:12:23 +0000279| Even if it does, however, not all browsers support compression
admin9aaa75e2006-09-21 04:45:20 +0000280| so enable only if you are reasonably sure your visitors can handle it.
281|
admin6bd915c2006-09-22 00:12:23 +0000282| VERY IMPORTANT: If you are getting a blank page when compression is enabled it
283| means you are prematurely outputting something to your browser. It could
admine334c472006-10-21 19:44:22 +0000284| even be a line of whitespace at the end of one of your scripts. For
admin9aaa75e2006-09-21 04:45:20 +0000285| compression to work, nothing can be sent before the output buffer is called
admina4d35342006-09-21 17:21:57 +0000286| by the output class. Do not "echo" any values with compression enabled.
admin9aaa75e2006-09-21 04:45:20 +0000287|
288*/
admina4d35342006-09-21 17:21:57 +0000289$config['compress_output'] = FALSE;
admin9aaa75e2006-09-21 04:45:20 +0000290
admin0625e192006-10-20 22:16:54 +0000291/*
292|--------------------------------------------------------------------------
293| Master Time Reference
294|--------------------------------------------------------------------------
295|
admine334c472006-10-21 19:44:22 +0000296| Options are "local" or "gmt". This pref tells the system whether to use
297| your server's local time as the master "now" reference, or convert it to
298| GMT. See the "date helper" page of the user guide for information
admin0625e192006-10-20 22:16:54 +0000299| regarding date handling.
300|
301*/
302$config['time_reference'] = 'local';
303
adminb0dd10f2006-08-25 17:25:49 +0000304
305?>