blob: 5240f6c26d056337eb2d4ce3f749a59e15e71dfb [file] [log] [blame]
Andrey Andreeve734b382012-03-26 13:42:36 +03001<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
Derek Jonesf4a4bd82011-10-20 12:18:42 -05002/**
3 * CodeIgniter
4 *
Phil Sturgeon07c1ac82012-03-09 17:03:37 +00005 * An open source application development framework for PHP 5.2.4 or newer
Derek Jonesf4a4bd82011-10-20 12:18:42 -05006 *
7 * NOTICE OF LICENSE
Andrey Andreeve734b382012-03-26 13:42:36 +03008 *
Derek Jonesf4a4bd82011-10-20 12:18:42 -05009 * Licensed under the Academic Free License version 3.0
Andrey Andreeve734b382012-03-26 13:42:36 +030010 *
Derek Jones61df9062011-10-21 09:55:40 -050011 * This source file is subject to the Academic Free License (AFL 3.0) that is
Derek Jonesf4a4bd82011-10-20 12:18:42 -050012 * bundled with this package in the files license_afl.txt / license_afl.rst.
13 * It is also available through the world wide web at this URL:
14 * http://opensource.org/licenses/AFL-3.0
15 * If you did not receive a copy of the license and are unable to obtain it
16 * through the world wide web, please send an email to
17 * licensing@ellislab.com so we can send you a copy immediately.
18 *
19 * @package CodeIgniter
20 * @author EllisLab Dev Team
Andrey Andreev80500af2013-01-01 08:16:53 +020021 * @copyright Copyright (c) 2008 - 2013, EllisLab, Inc. (http://ellislab.com/)
Derek Jonesf4a4bd82011-10-20 12:18:42 -050022 * @license http://opensource.org/licenses/AFL-3.0 Academic Free License (AFL 3.0)
23 * @link http://codeigniter.com
24 * @since Version 1.0
25 * @filesource
26 */
Derek Allard2067d1a2008-11-13 22:59:24 +000027
28/*
29|--------------------------------------------------------------------------
30| Base Site URL
31|--------------------------------------------------------------------------
32|
33| URL to your CodeIgniter root. Typically this will be your base URL,
34| WITH a trailing slash:
35|
36| http://example.com/
37|
Phil Sturgeon4df8b222010-12-15 14:23:14 +000038| If this is not set then CodeIgniter will guess the protocol, domain and
39| path to your installation.
40|
Derek Allard2067d1a2008-11-13 22:59:24 +000041*/
Phil Sturgeon4df8b222010-12-15 14:23:14 +000042$config['base_url'] = '';
Derek Allard2067d1a2008-11-13 22:59:24 +000043
44/*
45|--------------------------------------------------------------------------
46| Index File
47|--------------------------------------------------------------------------
48|
49| Typically this will be your index.php file, unless you've renamed it to
50| something else. If you are using mod_rewrite to remove the page set this
51| variable so that it is blank.
52|
53*/
Phil Sturgeon4df8b222010-12-15 14:23:14 +000054$config['index_page'] = 'index.php';
Derek Allard2067d1a2008-11-13 22:59:24 +000055
56/*
57|--------------------------------------------------------------------------
58| URI PROTOCOL
59|--------------------------------------------------------------------------
60|
61| This item determines which server global should be used to retrieve the
Derek Jones4b9c6292011-07-01 17:40:48 -050062| URI string. The default setting of 'AUTO' works for most servers.
Derek Allard2067d1a2008-11-13 22:59:24 +000063| If your links do not seem to work, try one of the other delicious flavors:
64|
Andrey Andreevf2b19fe2012-10-31 16:16:24 +020065| 'AUTO' Default - auto detects
66| 'CLI' or 'argv' Uses $_SERVER['argv'] (for php-cli only)
Andrey Andreevf2b19fe2012-10-31 16:16:24 +020067| 'PATH_INFO' Uses $_SERVER['PATH_INFO']
Andrey Andreev3b72eb52012-11-01 00:45:26 +020068| 'REQUEST_URI' Uses $_SERVER['REQUEST_URI']
Andrey Andreevf2b19fe2012-10-31 16:16:24 +020069| 'QUERY_STRING' Uses $_SERVER['QUERY_STRING']
Derek Allard2067d1a2008-11-13 22:59:24 +000070|
71*/
Phil Sturgeon4df8b222010-12-15 14:23:14 +000072$config['uri_protocol'] = 'AUTO';
Derek Allard2067d1a2008-11-13 22:59:24 +000073
74/*
75|--------------------------------------------------------------------------
76| URL suffix
77|--------------------------------------------------------------------------
78|
79| This option allows you to add a suffix to all URLs generated by CodeIgniter.
80| For more information please see the user guide:
81|
82| http://codeigniter.com/user_guide/general/urls.html
83*/
84
Phil Sturgeon4df8b222010-12-15 14:23:14 +000085$config['url_suffix'] = '';
Derek Allard2067d1a2008-11-13 22:59:24 +000086
87/*
88|--------------------------------------------------------------------------
89| Default Language
90|--------------------------------------------------------------------------
91|
92| This determines which set of language files should be used. Make sure
93| there is an available translation if you intend to use something other
94| than english.
95|
96*/
Phil Sturgeon4df8b222010-12-15 14:23:14 +000097$config['language'] = 'english';
Derek Allard2067d1a2008-11-13 22:59:24 +000098
99/*
100|--------------------------------------------------------------------------
101| Default Character Set
102|--------------------------------------------------------------------------
103|
104| This determines which character set is used by default in various methods
105| that require a character set to be provided.
106|
freewil8cc0cfe2011-08-27 21:53:00 -0400107| See http://php.net/htmlspecialchars for a list of supported charsets.
108|
Derek Allard2067d1a2008-11-13 22:59:24 +0000109*/
Phil Sturgeon4df8b222010-12-15 14:23:14 +0000110$config['charset'] = 'UTF-8';
Derek Allard2067d1a2008-11-13 22:59:24 +0000111
112/*
113|--------------------------------------------------------------------------
114| Enable/Disable System Hooks
115|--------------------------------------------------------------------------
116|
Phil Sturgeon4df8b222010-12-15 14:23:14 +0000117| If you would like to use the 'hooks' feature you must enable it by
Derek Jones4b9c6292011-07-01 17:40:48 -0500118| setting this variable to TRUE (boolean). See the user guide for details.
Derek Allard2067d1a2008-11-13 22:59:24 +0000119|
120*/
121$config['enable_hooks'] = FALSE;
122
123
124/*
125|--------------------------------------------------------------------------
126| Class Extension Prefix
127|--------------------------------------------------------------------------
128|
129| This item allows you to set the filename/classname prefix when extending
Derek Jones4b9c6292011-07-01 17:40:48 -0500130| native libraries. For more information please see the user guide:
Derek Allard2067d1a2008-11-13 22:59:24 +0000131|
132| http://codeigniter.com/user_guide/general/core_classes.html
133| http://codeigniter.com/user_guide/general/creating_libraries.html
134|
135*/
136$config['subclass_prefix'] = 'MY_';
137
138
139/*
140|--------------------------------------------------------------------------
141| Allowed URL Characters
142|--------------------------------------------------------------------------
143|
Andrey Andreevde14aa52014-01-15 15:51:08 +0200144| This lets you specify which characters are permitted within your URLs.
145| When someone tries to submit a URL with disallowed characters they will
146| get a warning message.
Derek Allard2067d1a2008-11-13 22:59:24 +0000147|
148| As a security measure you are STRONGLY encouraged to restrict URLs to
Derek Jones4b9c6292011-07-01 17:40:48 -0500149| as few characters as possible. By default only these are allowed: a-z 0-9~%.:_-
Derek Allard2067d1a2008-11-13 22:59:24 +0000150|
151| Leave blank to allow all characters -- but only if you are insane.
152|
Andrey Andreevde14aa52014-01-15 15:51:08 +0200153| The configured value is actually a regular expression character group
154| and it will be executed as: ! preg_match('/^[<permitted_uri_chars>]+$/i
155|
Derek Allard2067d1a2008-11-13 22:59:24 +0000156| DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!
157|
158*/
159$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
160
161
162/*
163|--------------------------------------------------------------------------
164| Enable Query Strings
165|--------------------------------------------------------------------------
166|
167| By default CodeIgniter uses search-engine friendly segment based URLs:
168| example.com/who/what/where/
169|
Derek Jones4b9c6292011-07-01 17:40:48 -0500170| By default CodeIgniter enables access to the $_GET array. If for some
Dan Horrigan65d603e2010-12-15 08:38:30 -0500171| reason you would like to disable it, set 'allow_get_array' to FALSE.
172|
Derek Allard2067d1a2008-11-13 22:59:24 +0000173| You can optionally enable standard query string based URLs:
174| example.com?who=me&what=something&where=here
175|
176| Options are: TRUE or FALSE (boolean)
177|
Phil Sturgeon4df8b222010-12-15 14:23:14 +0000178| The other items let you set the query string 'words' that will
Derek Allard2067d1a2008-11-13 22:59:24 +0000179| invoke your controllers and its functions:
180| example.com/index.php?c=controller&m=function
181|
182| Please note that some of the helpers won't work as expected when
183| this feature is enabled, since CodeIgniter is designed primarily to
184| use segment based URLs.
185|
186*/
Phil Sturgeonc8089152010-12-27 19:06:28 +0000187$config['allow_get_array'] = TRUE;
Derek Allard2067d1a2008-11-13 22:59:24 +0000188$config['enable_query_strings'] = FALSE;
Barry Mienydd671972010-10-04 16:33:58 +0200189$config['controller_trigger'] = 'c';
190$config['function_trigger'] = 'm';
191$config['directory_trigger'] = 'd'; // experimental not currently in use
Derek Allard2067d1a2008-11-13 22:59:24 +0000192
193/*
194|--------------------------------------------------------------------------
195| Error Logging Threshold
196|--------------------------------------------------------------------------
197|
Barry Mienydd671972010-10-04 16:33:58 +0200198| If you have enabled error logging, you can set an error threshold to
Derek Allard2067d1a2008-11-13 22:59:24 +0000199| determine what gets logged. Threshold options are:
200| You can enable error logging by setting a threshold over zero. The
201| threshold determines what gets logged. Threshold options are:
202|
203| 0 = Disables logging, Error logging TURNED OFF
204| 1 = Error Messages (including PHP errors)
205| 2 = Debug Messages
206| 3 = Informational Messages
207| 4 = All Messages
208|
Nithin333f9f92011-08-21 16:52:06 -0400209| You can also pass in a array with threshold levels to show individual error types
Iban Eguia83105952012-03-27 18:18:15 +0200210|
Nithin333f9f92011-08-21 16:52:06 -0400211| array(2) = Debug Messages, without Error Messages
212|
Derek Allard2067d1a2008-11-13 22:59:24 +0000213| For a live site you'll usually only enable Errors (1) to be logged otherwise
214| your log files will fill up very fast.
215|
216*/
217$config['log_threshold'] = 0;
218
219/*
220|--------------------------------------------------------------------------
221| Error Logging Directory Path
222|--------------------------------------------------------------------------
223|
224| Leave this BLANK unless you would like to set something other than the default
Eric Barnes3cf4c4e2011-01-12 09:10:08 -0500225| application/logs/ folder. Use a full server path with trailing slash.
Derek Allard2067d1a2008-11-13 22:59:24 +0000226|
227*/
228$config['log_path'] = '';
229
230/*
231|--------------------------------------------------------------------------
Chris Passas0bd6b282013-02-13 14:16:18 -0500232| Log File Extension
233|--------------------------------------------------------------------------
234|
Andrey Andreeva107a0f2013-02-15 22:30:31 +0200235| The default filename extension for log files. The default 'php' allows for
236| protecting the log files via basic scripting, when they are to be stored
237| under a publicly accessible directory.
238|
239| Note: Leaving it blank will default to 'php'.
Chris Passas0bd6b282013-02-13 14:16:18 -0500240|
241*/
242$config['log_file_extension'] = '';
243
244/*
245|--------------------------------------------------------------------------
Derek Allard2067d1a2008-11-13 22:59:24 +0000246| Date Format for Logs
247|--------------------------------------------------------------------------
248|
249| Each item that is logged has an associated date. You can use PHP date
250| codes to set your own date formatting
251|
252*/
253$config['log_date_format'] = 'Y-m-d H:i:s';
254
255/*
256|--------------------------------------------------------------------------
257| Cache Directory Path
258|--------------------------------------------------------------------------
259|
260| Leave this BLANK unless you would like to set something other than the default
OsamaAbbascdd80bf2013-01-23 04:46:24 +0200261| application/cache/ folder. Use a full server path with trailing slash.
Derek Allard2067d1a2008-11-13 22:59:24 +0000262|
263*/
264$config['cache_path'] = '';
265
266/*
267|--------------------------------------------------------------------------
268| Encryption Key
269|--------------------------------------------------------------------------
270|
Derek Jones5485db52010-08-30 21:31:08 -0500271| If you use the Encryption class or the Session class you
Derek Jones4b9c6292011-07-01 17:40:48 -0500272| MUST set an encryption key. See the user guide for info.
Iban Eguia83105952012-03-27 18:18:15 +0200273|
Kyle Ridolfo6a33e552011-10-27 15:40:06 -0300274| http://codeigniter.com/user_guide/libraries/encryption.html
275| http://codeigniter.com/user_guide/libraries/sessions.html
Derek Allard2067d1a2008-11-13 22:59:24 +0000276|
277*/
Phil Sturgeon4df8b222010-12-15 14:23:14 +0000278$config['encryption_key'] = '';
Derek Allard2067d1a2008-11-13 22:59:24 +0000279
280/*
281|--------------------------------------------------------------------------
282| Session Variables
283|--------------------------------------------------------------------------
284|
dchill42ac740ab2012-08-30 10:49:28 -0400285| 'sess_driver' = the driver to load: cookie (Classic), native (PHP sessions),
286| or your custom driver name
287| 'sess_valid_drivers' = additional valid drivers which may be loaded
brenjt02a16122013-09-14 11:10:25 -0600288| 'sess_cookie_name' = the name you want for the cookie, must contain only [0-9a-z_-] characters
Barry Mienydd671972010-10-04 16:33:58 +0200289| 'sess_expiration' = the number of SECONDS you want the session to last.
Derek Jones4b9c6292011-07-01 17:40:48 -0500290| by default sessions last 7200 seconds (two hours). Set to zero for no expiration.
Derek Jones21ca8cc2010-09-27 08:49:29 -0500291| 'sess_expire_on_close' = Whether to cause the session to expire automatically
Derek Jones4b9c6292011-07-01 17:40:48 -0500292| when the browser window is closed
Derek Jones21ca8cc2010-09-27 08:49:29 -0500293| 'sess_encrypt_cookie' = Whether to encrypt the cookie
294| 'sess_use_database' = Whether to save the session data to a database
295| 'sess_table_name' = The name of the session database table
296| 'sess_match_ip' = Whether to match the user's IP address when reading the session data
297| 'sess_match_useragent' = Whether to match the User Agent when reading the session data
298| 'sess_time_to_update' = how many seconds between CI refreshing Session Information
Derek Allard2067d1a2008-11-13 22:59:24 +0000299|
300*/
dchill42ac740ab2012-08-30 10:49:28 -0400301$config['sess_driver'] = 'cookie';
302$config['sess_valid_drivers'] = array();
Derek Allard2067d1a2008-11-13 22:59:24 +0000303$config['sess_cookie_name'] = 'ci_session';
304$config['sess_expiration'] = 7200;
Derek Jones21ca8cc2010-09-27 08:49:29 -0500305$config['sess_expire_on_close'] = FALSE;
Derek Allard2067d1a2008-11-13 22:59:24 +0000306$config['sess_encrypt_cookie'] = FALSE;
307$config['sess_use_database'] = FALSE;
308$config['sess_table_name'] = 'ci_sessions';
309$config['sess_match_ip'] = FALSE;
310$config['sess_match_useragent'] = TRUE;
Barry Mienydd671972010-10-04 16:33:58 +0200311$config['sess_time_to_update'] = 300;
Derek Allard2067d1a2008-11-13 22:59:24 +0000312
313/*
314|--------------------------------------------------------------------------
315| Cookie Related Variables
316|--------------------------------------------------------------------------
317|
318| 'cookie_prefix' = Set a prefix if you need to avoid collisions
319| 'cookie_domain' = Set to .your-domain.com for site-wide cookies
Derek Jones4b9c6292011-07-01 17:40:48 -0500320| 'cookie_path' = Typically will be a forward slash
321| 'cookie_secure' = Cookies will only be set if a secure HTTPS connection exists.
Iban Eguia83105952012-03-27 18:18:15 +0200322| 'cookie_httponly' = Cookie will only be accessible via HTTP(S) (no javascript)
Derek Allard2067d1a2008-11-13 22:59:24 +0000323|
324*/
Dumk0d55f7492012-07-03 11:21:45 +0300325$config['cookie_prefix'] = '';
326$config['cookie_domain'] = '';
327$config['cookie_path'] = '/';
Robin Sowelld6d9f452011-02-11 15:31:27 -0500328$config['cookie_secure'] = FALSE;
freewil4ad0fd82012-03-13 22:37:42 -0400329$config['cookie_httponly'] = FALSE;
Derek Allard2067d1a2008-11-13 22:59:24 +0000330
331/*
332|--------------------------------------------------------------------------
Andrey Andreevbfb635b2014-01-08 18:32:05 +0200333| Standardize newlines
334|--------------------------------------------------------------------------
335|
336| Determines whether to standardize newline characters in input data,
337| meaning to replace \r\n, \r, \n occurences with the PHP_EOL value.
338|
339| This is particularly useful for portability between UNIX-based OSes,
340| (usually \n) and Windows (\r\n).
341|
342*/
343$config['standardize_newlines'] = TRUE;
344
345/*
346|--------------------------------------------------------------------------
Derek Allard2067d1a2008-11-13 22:59:24 +0000347| Global XSS Filtering
348|--------------------------------------------------------------------------
349|
350| Determines whether the XSS filter is always active when GET, POST or
351| COOKIE data is encountered
352|
353*/
354$config['global_xss_filtering'] = FALSE;
355
356/*
357|--------------------------------------------------------------------------
Shane Pearson49ced912010-10-06 17:31:40 -0500358| Cross Site Request Forgery
Derek Allard958543a2010-07-22 14:10:26 -0400359|--------------------------------------------------------------------------
Shane Pearson49ced912010-10-06 17:31:40 -0500360| Enables a CSRF cookie token to be set. When set to TRUE, token will be
Derek Allard958543a2010-07-22 14:10:26 -0400361| checked on a submitted form. If you are accepting user data, it is strongly
362| recommended CSRF protection be enabled.
Eric Barnes9805ecc2011-01-16 23:35:16 -0500363|
364| 'csrf_token_name' = The token name
365| 'csrf_cookie_name' = The cookie name
366| 'csrf_expire' = The number in seconds the token should expire.
RS714b2e9fe2011-12-31 16:02:50 -0200367| 'csrf_regenerate' = Regenerate token on every submission
Alex Bilbieaeb2c3e2011-08-21 16:14:54 +0100368| 'csrf_exclude_uris' = Array of URIs which ignore CSRF checks
Derek Allard958543a2010-07-22 14:10:26 -0400369*/
370$config['csrf_protection'] = FALSE;
Eric Barnes9805ecc2011-01-16 23:35:16 -0500371$config['csrf_token_name'] = 'csrf_test_name';
372$config['csrf_cookie_name'] = 'csrf_cookie_name';
373$config['csrf_expire'] = 7200;
RS714b2e9fe2011-12-31 16:02:50 -0200374$config['csrf_regenerate'] = TRUE;
Alex Bilbieaeb2c3e2011-08-21 16:14:54 +0100375$config['csrf_exclude_uris'] = array();
Derek Allard958543a2010-07-22 14:10:26 -0400376
377/*
378|--------------------------------------------------------------------------
Derek Allard2067d1a2008-11-13 22:59:24 +0000379| Output Compression
380|--------------------------------------------------------------------------
381|
Derek Jones4b9c6292011-07-01 17:40:48 -0500382| Enables Gzip output compression for faster page loads. When enabled,
Derek Allard2067d1a2008-11-13 22:59:24 +0000383| the output class will test whether your server supports Gzip.
384| Even if it does, however, not all browsers support compression
385| so enable only if you are reasonably sure your visitors can handle it.
386|
Derek Jones4b9c6292011-07-01 17:40:48 -0500387| VERY IMPORTANT: If you are getting a blank page when compression is enabled it
Derek Allard2067d1a2008-11-13 22:59:24 +0000388| means you are prematurely outputting something to your browser. It could
Derek Jones4b9c6292011-07-01 17:40:48 -0500389| even be a line of whitespace at the end of one of your scripts. For
Derek Allard2067d1a2008-11-13 22:59:24 +0000390| compression to work, nothing can be sent before the output buffer is called
Derek Jones4b9c6292011-07-01 17:40:48 -0500391| by the output class. Do not 'echo' any values with compression enabled.
Derek Allard2067d1a2008-11-13 22:59:24 +0000392|
393*/
394$config['compress_output'] = FALSE;
395
396/*
397|--------------------------------------------------------------------------
Thor (atiredmachine)63678a22012-01-24 16:56:01 -0800398| Minify
399|--------------------------------------------------------------------------
400|
401| Removes extra characters (usually unnecessary spaces) from your
402| output for faster page load speeds. Makes your outputted HTML source
403| code less readable.
404|
405*/
406$config['minify_output'] = FALSE;
407
408/*
409|--------------------------------------------------------------------------
Derek Allard2067d1a2008-11-13 22:59:24 +0000410| Master Time Reference
411|--------------------------------------------------------------------------
412|
Andrey Andreevd163e0b2012-06-14 03:09:53 +0300413| Options are 'local' or any PHP supported timezone. This preference tells
414| the system whether to use your server's local time as the master 'now'
415| reference, or convert it to the configured one timezone. See the 'date
Iban Eguia74009652012-06-13 22:57:50 +0200416| helper' page of the user guide for information regarding date handling.
Derek Allard2067d1a2008-11-13 22:59:24 +0000417|
418*/
419$config['time_reference'] = 'local';
420
421
422/*
423|--------------------------------------------------------------------------
424| Rewrite PHP Short Tags
425|--------------------------------------------------------------------------
426|
427| If your PHP installation does not have short tag support enabled CI
428| can rewrite the tags on-the-fly, enabling you to utilize that syntax
Derek Jones4b9c6292011-07-01 17:40:48 -0500429| in your view files. Options are TRUE or FALSE (boolean)
Derek Allard2067d1a2008-11-13 22:59:24 +0000430|
431*/
432$config['rewrite_short_tags'] = FALSE;
433
434
Derek Jonesc5972282009-02-04 21:40:20 +0000435/*
436|--------------------------------------------------------------------------
437| Reverse Proxy IPs
438|--------------------------------------------------------------------------
439|
Andrey Andreev9ac557f2012-10-06 20:27:57 +0300440| If your server is behind a reverse proxy, you must whitelist the proxy
441| IP addresses from which CodeIgniter should trust headers such as
442| HTTP_X_FORWARDED_FOR and HTTP_CLIENT_IP in order to properly identify
443| the visitor's IP address.
Derek Jonesc5972282009-02-04 21:40:20 +0000444|
Andrey Andreev9ac557f2012-10-06 20:27:57 +0300445| You can use both an array or a comma-separated list of proxy addresses,
446| as well as specifying whole subnets. Here are a few examples:
447|
448| Comma-separated: '10.0.1.200,192.168.5.0/24'
449| Array: array('10.0.1.200', '192.168.5.0/24')
Derek Jonesc5972282009-02-04 21:40:20 +0000450*/
451$config['proxy_ips'] = '';
452
Derek Allard2067d1a2008-11-13 22:59:24 +0000453
454/* End of file config.php */
Andrey Andreev9c989912013-09-14 20:55:12 +0300455/* Location: ./application/config/config.php */