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