blob: c33bda37cdb6f08dedd21b45f0b00fb401171c06 [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
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
adminb071bb52006-08-26 19:28:37 +000040| 'orig_path_info' Uses the ORIG_PATH_INFO
41| 'request_uri' Uses the REQUEST_URI
adminb0dd10f2006-08-25 17:25:49 +000042|
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 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*/
81$config['enable_hooks'] = TRUE;
82
83
84/*
85|--------------------------------------------------------------------------
86| Enable Query Strings
87|--------------------------------------------------------------------------
88|
89| By default Code Igniter uses search-engine friendly segment based URLs:
90| www.your-site.com/who/what/where/
91|
92| You can optionally enable standard query string based URLs:
93| www.your-site.com?who=me&what=something&where=here
94|
95| Options are: TRUE or FALSE (boolean)
96|
97| The two other items let you set the query string "words" that will
98| invoke your controllers and its functions:
99| www.your-site.com/index.php?c=controller&m=function
100|
101| Please note that some of the helpers won't work as expected when
102| this feature is enabled, since Code Igniter is designed primarily to
103| use segment based URLs.
104|
105*/
106$config['enable_query_strings'] = FALSE;
107$config['controller_trigger'] = 'c';
108$config['function_trigger'] = 'm';
109
110/*
111|--------------------------------------------------------------------------
112| Master Time Reference
113|--------------------------------------------------------------------------
114|
115| Options are "local" or "gmt". This pref tells the system whether to use
116| your server's local time as the master "now" reference, or convert it to
117| GMT. See the "date helper" page of the user guide for information
118| regarding date handling.
119|
120*/
121$config['time_reference'] = 'local';
122
123/*
124|--------------------------------------------------------------------------
125| Enable/Disable Error Logging
126|--------------------------------------------------------------------------
127|
128| If you would like errors or debug messages logged set this variable to
129| TRUE (boolean). Note: You must set the file permissions on the "logs" folder
130| such that it is writable.
131|
132*/
133$config['log_errors'] = FALSE;
134
135/*
136|--------------------------------------------------------------------------
137| Error Logging Threshold
138|--------------------------------------------------------------------------
139|
140| If you have enabled error logging, you can set an error threshold to
141| determine what gets logged. Threshold options are:
142|
143| 1 = Error Messages (including PHP errors)
144| 2 = Debug Messages
145| 3 = Informational Messages
146| 4 = All Messages
147|
148| For a live site you'll usually only enable Errors (1) to be logged otherwise
149| your log files will fill up very fast.
150|
151*/
152$config['log_threshold'] = 4;
153
154/*
155|--------------------------------------------------------------------------
156| Error Logging Directory Path
157|--------------------------------------------------------------------------
158|
159| Leave this BLANK unless you would like to set something other than the default
160| system/logs/ folder. Use a full server path with trailing slash.
161|
162*/
163$config['log_path'] = '';
164
165/*
166|--------------------------------------------------------------------------
167| Date Format for Logs
168|--------------------------------------------------------------------------
169|
170| Each item that is logged has an associated date. You can use PHP date
171| codes to set your own date formatting
172|
173*/
174$config['log_date_format'] = 'Y-m-d H:i:s';
175
176/*
177|--------------------------------------------------------------------------
178| Cache Directory Path
179|--------------------------------------------------------------------------
180|
181| Leave this BLANK unless you would like to set something other than the default
182| system/cache/ folder. Use a full server path with trailing slash.
183|
184*/
185$config['cache_path'] = '';
186
187
188/*
189|--------------------------------------------------------------------------
190| Encryption Key
191|--------------------------------------------------------------------------
192|
193| If you use the Encryption class or the Sessions class with encryption
194| enabled you MUST set an encryption key. See the user guide for info.
195|
196*/
197$config['encryption_key'] = "";
198
199
200/*
201|--------------------------------------------------------------------------
202| Session Variables
203|--------------------------------------------------------------------------
204|
205| 'session_cookie_name' = the name you want for the cookie
206| 'encrypt_sess_cookie' = TRUE/FALSE (boolean). Whether to encrypt the cookie
207| 'session_expiration' = the number of SECONDS you want the session to last.
208| by default sessions last 7200 seconds (two hours). Set to zero for no expiration.
209|
210*/
211$config['sess_cookie_name'] = 'ci_session';
212$config['sess_expiration'] = 7200;
213$config['sess_encrypt_cookie'] = FALSE;
214$config['sess_use_database'] = FALSE;
215$config['sess_table_name'] = '';
216$config['sess_match_ip'] = TRUE;
217$config['sess_match_useragent'] = TRUE;
218
219
220/*
221|--------------------------------------------------------------------------
222| Cookie Related Variables
223|--------------------------------------------------------------------------
224|
225| 'cookie_prefix' = Set a prefix if you need to avoid collisions
226| 'cookie_domain' = Set to .your-domain.com for site-wide cookies
227| 'cookie_path' = Typically will be a forward slash
228|
229*/
230$config['cookie_prefix'] = "";
231$config['cookie_domain'] = "";
232$config['cookie_path'] = "/";
233
234/*
235|--------------------------------------------------------------------------
236| Global XSS Filtering
237|--------------------------------------------------------------------------
238|
239| Determines whether the XSS filter is always active when GET, POST or
240| COOKIE data is encountered
241|
242*/
243$config['global_xss_filtering'] = FALSE;
244
245
246?>