blob: f0ba241f67e2884b17e1790d0ab9545e139ec64e [file] [log] [blame]
Derek Allardd2df9bc2007-04-15 17:41:17 +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://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
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://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
Derek Jonesb940ebc2007-07-12 19:15:09 +000071/*
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";
Derek Allardd2df9bc2007-04-15 17:41:17 +000081
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://www.codeigniter.com/user_guide/general/core_classes.html
103| http://www.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 which characters are permitted within your URLs.
115| When someone tries to submit a URL with disallowed characters they will
116| 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| www.your-site.com/who/what/where/
136|
137| You can optionally enable standard query string based URLs:
138| www.your-site.com?who=me&what=something&where=here
139|
140| Options are: TRUE or FALSE (boolean)
141|
142| The two other items let you set the query string "words" that will
143| invoke your controllers and its functions:
144| www.your-site.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;
152$config['controller_trigger'] = 'c';
153$config['function_trigger'] = 'm';
154
155/*
156|--------------------------------------------------------------------------
157| Error Logging Threshold
158|--------------------------------------------------------------------------
159|
160| If you have enabled error logging, you can set an error threshold to
161| determine what gets logged. Threshold options are:
162| You can enable error logging by setting a threshold over zero. The
163| threshold determines what gets logged. Threshold options are:
164|
Derek Allard3d378b12007-05-08 23:03:59 +0000165| 0 = Disables logging, Error logging TURNED OFF
Derek Allardd2df9bc2007-04-15 17:41:17 +0000166| 1 = Error Messages (including PHP errors)
167| 2 = Debug Messages
168| 3 = Informational Messages
169| 4 = All Messages
170|
171| For a live site you'll usually only enable Errors (1) to be logged otherwise
172| your log files will fill up very fast.
173|
174*/
175$config['log_threshold'] = 0;
176
177/*
178|--------------------------------------------------------------------------
179| Error Logging Directory Path
180|--------------------------------------------------------------------------
181|
182| Leave this BLANK unless you would like to set something other than the default
183| system/logs/ folder. Use a full server path with trailing slash.
184|
185*/
186$config['log_path'] = '';
187
188/*
189|--------------------------------------------------------------------------
190| Date Format for Logs
191|--------------------------------------------------------------------------
192|
193| Each item that is logged has an associated date. You can use PHP date
194| codes to set your own date formatting
195|
196*/
197$config['log_date_format'] = 'Y-m-d H:i:s';
198
199/*
200|--------------------------------------------------------------------------
201| Cache Directory Path
202|--------------------------------------------------------------------------
203|
204| Leave this BLANK unless you would like to set something other than the default
205| system/cache/ folder. Use a full server path with trailing slash.
206|
207*/
208$config['cache_path'] = '';
209
210/*
211|--------------------------------------------------------------------------
212| Encryption Key
213|--------------------------------------------------------------------------
214|
215| If you use the Encryption class or the Sessions class with encryption
216| enabled you MUST set an encryption key. See the user guide for info.
217|
218*/
219$config['encryption_key'] = "";
220
221/*
222|--------------------------------------------------------------------------
223| Session Variables
224|--------------------------------------------------------------------------
225|
226| 'session_cookie_name' = the name you want for the cookie
227| 'encrypt_sess_cookie' = TRUE/FALSE (boolean). Whether to encrypt the cookie
228| 'session_expiration' = the number of SECONDS you want the session to last.
229| by default sessions last 7200 seconds (two hours). Set to zero for no expiration.
230|
231*/
232$config['sess_cookie_name'] = 'ci_session';
233$config['sess_expiration'] = 7200;
234$config['sess_encrypt_cookie'] = FALSE;
235$config['sess_use_database'] = FALSE;
236$config['sess_table_name'] = 'ci_sessions';
237$config['sess_match_ip'] = FALSE;
238$config['sess_match_useragent'] = TRUE;
239
240/*
241|--------------------------------------------------------------------------
242| Cookie Related Variables
243|--------------------------------------------------------------------------
244|
245| 'cookie_prefix' = Set a prefix if you need to avoid collisions
246| 'cookie_domain' = Set to .your-domain.com for site-wide cookies
247| 'cookie_path' = Typically will be a forward slash
248|
249*/
250$config['cookie_prefix'] = "";
251$config['cookie_domain'] = "";
252$config['cookie_path'] = "/";
253
254/*
255|--------------------------------------------------------------------------
256| Global XSS Filtering
257|--------------------------------------------------------------------------
258|
259| Determines whether the XSS filter is always active when GET, POST or
260| COOKIE data is encountered
261|
262*/
263$config['global_xss_filtering'] = FALSE;
264
265/*
266|--------------------------------------------------------------------------
267| Output Compression
268|--------------------------------------------------------------------------
269|
270| Enables Gzip output compression for faster page loads. When enabled,
271| the output class will test whether your server supports Gzip.
272| Even if it does, however, not all browsers support compression
273| so enable only if you are reasonably sure your visitors can handle it.
274|
275| VERY IMPORTANT: If you are getting a blank page when compression is enabled it
276| means you are prematurely outputting something to your browser. It could
277| even be a line of whitespace at the end of one of your scripts. For
278| compression to work, nothing can be sent before the output buffer is called
279| by the output class. Do not "echo" any values with compression enabled.
280|
281*/
282$config['compress_output'] = FALSE;
283
284/*
285|--------------------------------------------------------------------------
286| Master Time Reference
287|--------------------------------------------------------------------------
288|
289| Options are "local" or "gmt". This pref tells the system whether to use
290| your server's local time as the master "now" reference, or convert it to
291| GMT. See the "date helper" page of the user guide for information
292| regarding date handling.
293|
294*/
295$config['time_reference'] = 'local';
296
297
298/*
299|--------------------------------------------------------------------------
300| Rewrite PHP Short Tags
301|--------------------------------------------------------------------------
302|
303| If your PHP installation does not have short tag support enabled CI
304| can rewrite the tags on-the-fly, enabling you to utilize that syntax
305| in your view files. Options are TRUE or FALSE (boolean)
306|
307*/
308$config['rewrite_short_tags'] = FALSE;
309
310
adminb0dd10f2006-08-25 17:25:49 +0000311?>