blob: bf15525cb4d97eab39b9bead9493131109e9776b [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|
8| URL to your Code Igniter root. Typically this will be your base URL,
9| 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|
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
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:
36|
admin41a16852006-09-26 18:17:19 +000037| '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
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:
53|
54| http://www.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|--------------------------------------------------------------------------
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|--------------------------------------------------------------------------
admin1082bdd2006-08-27 19:32:02 +000086| Allowed URL Characters
87|--------------------------------------------------------------------------
88|
89| This lets you specify which characters are permitted within your URLs.
90| When someone tries to submit a URL with disallowed characters they will
91| get a warning message.
92|
93| As a security measure you are STRONGLY encouraged to restrict URLs to
94| as few characters as possible. By default only these are allowed: a-z 0-9~%.:_-
95|
96| Leave blank to allow all characters -- but only if you are insane.
97|
98| DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!
99|
100*/
101$config['permitted_uri_chars'] = 'a-z 0-9~%.:_-';
102
103
104/*
105|--------------------------------------------------------------------------
adminb0dd10f2006-08-25 17:25:49 +0000106| Enable Query Strings
107|--------------------------------------------------------------------------
108|
109| By default Code Igniter uses search-engine friendly segment based URLs:
110| www.your-site.com/who/what/where/
111|
112| You can optionally enable standard query string based URLs:
113| www.your-site.com?who=me&what=something&where=here
114|
115| Options are: TRUE or FALSE (boolean)
116|
117| The two other items let you set the query string "words" that will
118| invoke your controllers and its functions:
119| www.your-site.com/index.php?c=controller&m=function
120|
121| Please note that some of the helpers won't work as expected when
122| this feature is enabled, since Code Igniter is designed primarily to
123| use segment based URLs.
124|
125*/
126$config['enable_query_strings'] = FALSE;
127$config['controller_trigger'] = 'c';
128$config['function_trigger'] = 'm';
129
130/*
131|--------------------------------------------------------------------------
132| Master Time Reference
133|--------------------------------------------------------------------------
134|
135| Options are "local" or "gmt". This pref tells the system whether to use
136| your server's local time as the master "now" reference, or convert it to
137| GMT. See the "date helper" page of the user guide for information
138| regarding date handling.
139|
140*/
141$config['time_reference'] = 'local';
142
143/*
144|--------------------------------------------------------------------------
adminb0dd10f2006-08-25 17:25:49 +0000145| Error Logging Threshold
146|--------------------------------------------------------------------------
147|
adminadda3c32006-10-19 16:38:23 +0000148| You can enable error logging by setting a threshold over zero. The
149| threshold determines what gets logged. Threshold options are:
adminb0dd10f2006-08-25 17:25:49 +0000150|
adminadda3c32006-10-19 16:38:23 +0000151| 0 = Error logging TURNED OFF
adminb0dd10f2006-08-25 17:25:49 +0000152| 1 = Error Messages (including PHP errors)
153| 2 = Debug Messages
154| 3 = Informational Messages
155| 4 = All Messages
156|
157| For a live site you'll usually only enable Errors (1) to be logged otherwise
158| your log files will fill up very fast.
159|
160*/
161$config['log_threshold'] = 4;
162
163/*
164|--------------------------------------------------------------------------
165| Error Logging Directory Path
166|--------------------------------------------------------------------------
167|
168| Leave this BLANK unless you would like to set something other than the default
169| system/logs/ folder. Use a full server path with trailing slash.
170|
171*/
172$config['log_path'] = '';
173
174/*
175|--------------------------------------------------------------------------
176| Date Format for Logs
177|--------------------------------------------------------------------------
178|
179| Each item that is logged has an associated date. You can use PHP date
180| codes to set your own date formatting
181|
182*/
183$config['log_date_format'] = 'Y-m-d H:i:s';
184
185/*
186|--------------------------------------------------------------------------
187| Cache Directory Path
188|--------------------------------------------------------------------------
189|
190| Leave this BLANK unless you would like to set something other than the default
191| system/cache/ folder. Use a full server path with trailing slash.
192|
193*/
194$config['cache_path'] = '';
195
adminb0dd10f2006-08-25 17:25:49 +0000196/*
197|--------------------------------------------------------------------------
198| Encryption Key
199|--------------------------------------------------------------------------
200|
201| If you use the Encryption class or the Sessions class with encryption
202| enabled you MUST set an encryption key. See the user guide for info.
203|
204*/
205$config['encryption_key'] = "";
206
adminb0dd10f2006-08-25 17:25:49 +0000207/*
208|--------------------------------------------------------------------------
209| Session Variables
210|--------------------------------------------------------------------------
211|
212| 'session_cookie_name' = the name you want for the cookie
213| 'encrypt_sess_cookie' = TRUE/FALSE (boolean). Whether to encrypt the cookie
214| 'session_expiration' = the number of SECONDS you want the session to last.
215| by default sessions last 7200 seconds (two hours). Set to zero for no expiration.
216|
217*/
218$config['sess_cookie_name'] = 'ci_session';
219$config['sess_expiration'] = 7200;
220$config['sess_encrypt_cookie'] = FALSE;
221$config['sess_use_database'] = FALSE;
222$config['sess_table_name'] = '';
223$config['sess_match_ip'] = TRUE;
224$config['sess_match_useragent'] = TRUE;
225
adminb0dd10f2006-08-25 17:25:49 +0000226/*
227|--------------------------------------------------------------------------
228| Cookie Related Variables
229|--------------------------------------------------------------------------
230|
231| 'cookie_prefix' = Set a prefix if you need to avoid collisions
232| 'cookie_domain' = Set to .your-domain.com for site-wide cookies
233| 'cookie_path' = Typically will be a forward slash
234|
235*/
236$config['cookie_prefix'] = "";
237$config['cookie_domain'] = "";
238$config['cookie_path'] = "/";
239
240/*
241|--------------------------------------------------------------------------
242| Global XSS Filtering
243|--------------------------------------------------------------------------
244|
245| Determines whether the XSS filter is always active when GET, POST or
246| COOKIE data is encountered
247|
248*/
249$config['global_xss_filtering'] = FALSE;
250
admin9aaa75e2006-09-21 04:45:20 +0000251/*
252|--------------------------------------------------------------------------
253| Output Compression
254|--------------------------------------------------------------------------
255|
admin6bd915c2006-09-22 00:12:23 +0000256| Enables Gzip output compression for faster page loads. When enabled,
257| the output class will test whether your server supports Gzip.
258| Even if it does, however, not all browsers support compression
admin9aaa75e2006-09-21 04:45:20 +0000259| so enable only if you are reasonably sure your visitors can handle it.
260|
admin6bd915c2006-09-22 00:12:23 +0000261| VERY IMPORTANT: If you are getting a blank page when compression is enabled it
262| means you are prematurely outputting something to your browser. It could
admin9aaa75e2006-09-21 04:45:20 +0000263| even be a line of whitespace at the end of one of your scripts. For
264| compression to work, nothing can be sent before the output buffer is called
admina4d35342006-09-21 17:21:57 +0000265| by the output class. Do not "echo" any values with compression enabled.
admin9aaa75e2006-09-21 04:45:20 +0000266|
267*/
admina4d35342006-09-21 17:21:57 +0000268$config['compress_output'] = FALSE;
admin9aaa75e2006-09-21 04:45:20 +0000269
adminb0dd10f2006-08-25 17:25:49 +0000270
271?>