darwinel | d8bef8a | 2014-02-11 20:13:22 +0100 | [diff] [blame] | 1 | <?php |
Derek Jones | f4a4bd8 | 2011-10-20 12:18:42 -0500 | [diff] [blame] | 2 | /** |
| 3 | * CodeIgniter |
| 4 | * |
Phil Sturgeon | 07c1ac8 | 2012-03-09 17:03:37 +0000 | [diff] [blame] | 5 | * An open source application development framework for PHP 5.2.4 or newer |
Derek Jones | f4a4bd8 | 2011-10-20 12:18:42 -0500 | [diff] [blame] | 6 | * |
| 7 | * NOTICE OF LICENSE |
Andrey Andreev | e734b38 | 2012-03-26 13:42:36 +0300 | [diff] [blame] | 8 | * |
Derek Jones | f4a4bd8 | 2011-10-20 12:18:42 -0500 | [diff] [blame] | 9 | * Licensed under the Academic Free License version 3.0 |
Andrey Andreev | e734b38 | 2012-03-26 13:42:36 +0300 | [diff] [blame] | 10 | * |
Derek Jones | 61df906 | 2011-10-21 09:55:40 -0500 | [diff] [blame] | 11 | * This source file is subject to the Academic Free License (AFL 3.0) that is |
Derek Jones | f4a4bd8 | 2011-10-20 12:18:42 -0500 | [diff] [blame] | 12 | * 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 |
darwinel | 871754a | 2014-02-11 17:34:57 +0100 | [diff] [blame] | 21 | * @copyright Copyright (c) 2008 - 2014, EllisLab, Inc. (http://ellislab.com/) |
Derek Jones | f4a4bd8 | 2011-10-20 12:18:42 -0500 | [diff] [blame] | 22 | * @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 | */ |
darwinel | d8bef8a | 2014-02-11 20:13:22 +0100 | [diff] [blame] | 27 | defined('BASEPATH') OR exit('No direct script access allowed'); |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 28 | |
| 29 | /* |
| 30 | |-------------------------------------------------------------------------- |
| 31 | | Base Site URL |
| 32 | |-------------------------------------------------------------------------- |
| 33 | | |
| 34 | | URL to your CodeIgniter root. Typically this will be your base URL, |
| 35 | | WITH a trailing slash: |
| 36 | | |
| 37 | | http://example.com/ |
| 38 | | |
Phil Sturgeon | 4df8b22 | 2010-12-15 14:23:14 +0000 | [diff] [blame] | 39 | | If this is not set then CodeIgniter will guess the protocol, domain and |
| 40 | | path to your installation. |
| 41 | | |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 42 | */ |
Phil Sturgeon | 4df8b22 | 2010-12-15 14:23:14 +0000 | [diff] [blame] | 43 | $config['base_url'] = ''; |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 44 | |
| 45 | /* |
| 46 | |-------------------------------------------------------------------------- |
| 47 | | Index File |
| 48 | |-------------------------------------------------------------------------- |
| 49 | | |
| 50 | | Typically this will be your index.php file, unless you've renamed it to |
| 51 | | something else. If you are using mod_rewrite to remove the page set this |
| 52 | | variable so that it is blank. |
| 53 | | |
| 54 | */ |
Phil Sturgeon | 4df8b22 | 2010-12-15 14:23:14 +0000 | [diff] [blame] | 55 | $config['index_page'] = 'index.php'; |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 56 | |
| 57 | /* |
| 58 | |-------------------------------------------------------------------------- |
| 59 | | URI PROTOCOL |
| 60 | |-------------------------------------------------------------------------- |
| 61 | | |
| 62 | | This item determines which server global should be used to retrieve the |
Derek Jones | 4b9c629 | 2011-07-01 17:40:48 -0500 | [diff] [blame] | 63 | | URI string. The default setting of 'AUTO' works for most servers. |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 64 | | If your links do not seem to work, try one of the other delicious flavors: |
| 65 | | |
Andrey Andreev | f2b19fe | 2012-10-31 16:16:24 +0200 | [diff] [blame] | 66 | | 'AUTO' Default - auto detects |
| 67 | | 'CLI' or 'argv' Uses $_SERVER['argv'] (for php-cli only) |
Andrey Andreev | f2b19fe | 2012-10-31 16:16:24 +0200 | [diff] [blame] | 68 | | 'PATH_INFO' Uses $_SERVER['PATH_INFO'] |
Andrey Andreev | 3b72eb5 | 2012-11-01 00:45:26 +0200 | [diff] [blame] | 69 | | 'REQUEST_URI' Uses $_SERVER['REQUEST_URI'] |
Andrey Andreev | f2b19fe | 2012-10-31 16:16:24 +0200 | [diff] [blame] | 70 | | 'QUERY_STRING' Uses $_SERVER['QUERY_STRING'] |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 71 | | |
| 72 | */ |
Phil Sturgeon | 4df8b22 | 2010-12-15 14:23:14 +0000 | [diff] [blame] | 73 | $config['uri_protocol'] = 'AUTO'; |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 74 | |
| 75 | /* |
| 76 | |-------------------------------------------------------------------------- |
| 77 | | URL suffix |
| 78 | |-------------------------------------------------------------------------- |
| 79 | | |
| 80 | | This option allows you to add a suffix to all URLs generated by CodeIgniter. |
| 81 | | For more information please see the user guide: |
| 82 | | |
| 83 | | http://codeigniter.com/user_guide/general/urls.html |
| 84 | */ |
| 85 | |
Phil Sturgeon | 4df8b22 | 2010-12-15 14:23:14 +0000 | [diff] [blame] | 86 | $config['url_suffix'] = ''; |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 87 | |
| 88 | /* |
| 89 | |-------------------------------------------------------------------------- |
| 90 | | Default Language |
| 91 | |-------------------------------------------------------------------------- |
| 92 | | |
| 93 | | This determines which set of language files should be used. Make sure |
| 94 | | there is an available translation if you intend to use something other |
| 95 | | than english. |
| 96 | | |
| 97 | */ |
Phil Sturgeon | 4df8b22 | 2010-12-15 14:23:14 +0000 | [diff] [blame] | 98 | $config['language'] = 'english'; |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 99 | |
| 100 | /* |
| 101 | |-------------------------------------------------------------------------- |
| 102 | | Default Character Set |
| 103 | |-------------------------------------------------------------------------- |
| 104 | | |
| 105 | | This determines which character set is used by default in various methods |
| 106 | | that require a character set to be provided. |
| 107 | | |
freewil | 8cc0cfe | 2011-08-27 21:53:00 -0400 | [diff] [blame] | 108 | | See http://php.net/htmlspecialchars for a list of supported charsets. |
| 109 | | |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 110 | */ |
Phil Sturgeon | 4df8b22 | 2010-12-15 14:23:14 +0000 | [diff] [blame] | 111 | $config['charset'] = 'UTF-8'; |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 112 | |
| 113 | /* |
| 114 | |-------------------------------------------------------------------------- |
| 115 | | Enable/Disable System Hooks |
| 116 | |-------------------------------------------------------------------------- |
| 117 | | |
Phil Sturgeon | 4df8b22 | 2010-12-15 14:23:14 +0000 | [diff] [blame] | 118 | | If you would like to use the 'hooks' feature you must enable it by |
Derek Jones | 4b9c629 | 2011-07-01 17:40:48 -0500 | [diff] [blame] | 119 | | setting this variable to TRUE (boolean). See the user guide for details. |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 120 | | |
| 121 | */ |
| 122 | $config['enable_hooks'] = FALSE; |
| 123 | |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 124 | /* |
| 125 | |-------------------------------------------------------------------------- |
| 126 | | Class Extension Prefix |
| 127 | |-------------------------------------------------------------------------- |
| 128 | | |
| 129 | | This item allows you to set the filename/classname prefix when extending |
Derek Jones | 4b9c629 | 2011-07-01 17:40:48 -0500 | [diff] [blame] | 130 | | native libraries. For more information please see the user guide: |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 131 | | |
| 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 | |
Andrey Andreev | ed86ee1 | 2014-07-11 19:48:37 +0300 | [diff] [blame] | 138 | /* |
| 139 | |-------------------------------------------------------------------------- |
| 140 | | Composer auto-loading |
| 141 | |-------------------------------------------------------------------------- |
| 142 | | |
| 143 | | Enabling this setting will tell CodeIgniter to look for a Composer |
| 144 | | package auto-loader script in application/vendor/autoload.php. |
| 145 | | |
| 146 | | $config['composer_autoload'] = TRUE; |
| 147 | | |
| 148 | | Or if you have your vendor/ directory located somewhere else, you |
| 149 | | can opt to set a specific path as well: |
| 150 | | |
| 151 | | $config['composer_autoload'] = '/path/to/vendor/autoload.php'; |
| 152 | | |
| 153 | | For more information about Composer, please visit http://getcomposer.org/ |
| 154 | | |
| 155 | | Note: This will NOT disable or override the CodeIgniter-specific |
| 156 | | autoloading (application/config/autoload.php) |
| 157 | */ |
| 158 | $config['composer_autoload'] = FALSE; |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 159 | |
| 160 | /* |
| 161 | |-------------------------------------------------------------------------- |
| 162 | | Allowed URL Characters |
| 163 | |-------------------------------------------------------------------------- |
| 164 | | |
Andrey Andreev | de14aa5 | 2014-01-15 15:51:08 +0200 | [diff] [blame] | 165 | | This lets you specify which characters are permitted within your URLs. |
| 166 | | When someone tries to submit a URL with disallowed characters they will |
| 167 | | get a warning message. |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 168 | | |
| 169 | | As a security measure you are STRONGLY encouraged to restrict URLs to |
Derek Jones | 4b9c629 | 2011-07-01 17:40:48 -0500 | [diff] [blame] | 170 | | as few characters as possible. By default only these are allowed: a-z 0-9~%.:_- |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 171 | | |
| 172 | | Leave blank to allow all characters -- but only if you are insane. |
| 173 | | |
Andrey Andreev | de14aa5 | 2014-01-15 15:51:08 +0200 | [diff] [blame] | 174 | | The configured value is actually a regular expression character group |
| 175 | | and it will be executed as: ! preg_match('/^[<permitted_uri_chars>]+$/i |
| 176 | | |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 177 | | DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!! |
| 178 | | |
| 179 | */ |
| 180 | $config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-'; |
| 181 | |
| 182 | |
| 183 | /* |
| 184 | |-------------------------------------------------------------------------- |
| 185 | | Enable Query Strings |
| 186 | |-------------------------------------------------------------------------- |
| 187 | | |
| 188 | | By default CodeIgniter uses search-engine friendly segment based URLs: |
| 189 | | example.com/who/what/where/ |
| 190 | | |
Derek Jones | 4b9c629 | 2011-07-01 17:40:48 -0500 | [diff] [blame] | 191 | | By default CodeIgniter enables access to the $_GET array. If for some |
Dan Horrigan | 65d603e | 2010-12-15 08:38:30 -0500 | [diff] [blame] | 192 | | reason you would like to disable it, set 'allow_get_array' to FALSE. |
| 193 | | |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 194 | | You can optionally enable standard query string based URLs: |
| 195 | | example.com?who=me&what=something&where=here |
| 196 | | |
| 197 | | Options are: TRUE or FALSE (boolean) |
| 198 | | |
Phil Sturgeon | 4df8b22 | 2010-12-15 14:23:14 +0000 | [diff] [blame] | 199 | | The other items let you set the query string 'words' that will |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 200 | | invoke your controllers and its functions: |
| 201 | | example.com/index.php?c=controller&m=function |
| 202 | | |
| 203 | | Please note that some of the helpers won't work as expected when |
| 204 | | this feature is enabled, since CodeIgniter is designed primarily to |
| 205 | | use segment based URLs. |
| 206 | | |
| 207 | */ |
Phil Sturgeon | c808915 | 2010-12-27 19:06:28 +0000 | [diff] [blame] | 208 | $config['allow_get_array'] = TRUE; |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 209 | $config['enable_query_strings'] = FALSE; |
Barry Mieny | dd67197 | 2010-10-04 16:33:58 +0200 | [diff] [blame] | 210 | $config['controller_trigger'] = 'c'; |
| 211 | $config['function_trigger'] = 'm'; |
| 212 | $config['directory_trigger'] = 'd'; // experimental not currently in use |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 213 | |
| 214 | /* |
| 215 | |-------------------------------------------------------------------------- |
| 216 | | Error Logging Threshold |
| 217 | |-------------------------------------------------------------------------- |
| 218 | | |
Barry Mieny | dd67197 | 2010-10-04 16:33:58 +0200 | [diff] [blame] | 219 | | If you have enabled error logging, you can set an error threshold to |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 220 | | determine what gets logged. Threshold options are: |
| 221 | | You can enable error logging by setting a threshold over zero. The |
| 222 | | threshold determines what gets logged. Threshold options are: |
| 223 | | |
| 224 | | 0 = Disables logging, Error logging TURNED OFF |
| 225 | | 1 = Error Messages (including PHP errors) |
| 226 | | 2 = Debug Messages |
| 227 | | 3 = Informational Messages |
| 228 | | 4 = All Messages |
| 229 | | |
Nithin | 333f9f9 | 2011-08-21 16:52:06 -0400 | [diff] [blame] | 230 | | You can also pass in a array with threshold levels to show individual error types |
Iban Eguia | 8310595 | 2012-03-27 18:18:15 +0200 | [diff] [blame] | 231 | | |
Nithin | 333f9f9 | 2011-08-21 16:52:06 -0400 | [diff] [blame] | 232 | | array(2) = Debug Messages, without Error Messages |
| 233 | | |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 234 | | For a live site you'll usually only enable Errors (1) to be logged otherwise |
| 235 | | your log files will fill up very fast. |
| 236 | | |
| 237 | */ |
| 238 | $config['log_threshold'] = 0; |
| 239 | |
| 240 | /* |
| 241 | |-------------------------------------------------------------------------- |
| 242 | | Error Logging Directory Path |
| 243 | |-------------------------------------------------------------------------- |
| 244 | | |
| 245 | | Leave this BLANK unless you would like to set something other than the default |
vlakoff | 6cf456d | 2014-04-14 14:38:29 +0200 | [diff] [blame] | 246 | | application/logs/ directory. Use a full server path with trailing slash. |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 247 | | |
| 248 | */ |
| 249 | $config['log_path'] = ''; |
| 250 | |
| 251 | /* |
| 252 | |-------------------------------------------------------------------------- |
Chris Passas | 0bd6b28 | 2013-02-13 14:16:18 -0500 | [diff] [blame] | 253 | | Log File Extension |
| 254 | |-------------------------------------------------------------------------- |
| 255 | | |
Andrey Andreev | a107a0f | 2013-02-15 22:30:31 +0200 | [diff] [blame] | 256 | | The default filename extension for log files. The default 'php' allows for |
| 257 | | protecting the log files via basic scripting, when they are to be stored |
| 258 | | under a publicly accessible directory. |
| 259 | | |
| 260 | | Note: Leaving it blank will default to 'php'. |
Chris Passas | 0bd6b28 | 2013-02-13 14:16:18 -0500 | [diff] [blame] | 261 | | |
| 262 | */ |
| 263 | $config['log_file_extension'] = ''; |
| 264 | |
| 265 | /* |
| 266 | |-------------------------------------------------------------------------- |
Andrey Andreev | 4596574 | 2014-08-27 20:40:11 +0300 | [diff] [blame] | 267 | | Log File Permissions |
| 268 | |-------------------------------------------------------------------------- |
| 269 | | |
| 270 | | The file system permissions to be applied on newly created log files. |
| 271 | | |
| 272 | | IMPORTANT: This MUST be an integer (no quotes) and you MUST use octal |
| 273 | | integer notation (i.e. 0700, 0644, etc.) |
| 274 | */ |
| 275 | $config['log_file_permissions'] = 0644; |
| 276 | |
| 277 | /* |
| 278 | |-------------------------------------------------------------------------- |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 279 | | Date Format for Logs |
| 280 | |-------------------------------------------------------------------------- |
| 281 | | |
| 282 | | Each item that is logged has an associated date. You can use PHP date |
| 283 | | codes to set your own date formatting |
| 284 | | |
| 285 | */ |
| 286 | $config['log_date_format'] = 'Y-m-d H:i:s'; |
| 287 | |
| 288 | /* |
| 289 | |-------------------------------------------------------------------------- |
vlakoff | 511a6b8 | 2014-04-14 14:33:55 +0200 | [diff] [blame] | 290 | | Error Views Directory Path |
vlakoff | cdf3dfa | 2014-04-12 07:33:42 +0200 | [diff] [blame] | 291 | |-------------------------------------------------------------------------- |
| 292 | | |
| 293 | | Leave this BLANK unless you would like to set something other than the default |
vlakoff | 6cf456d | 2014-04-14 14:38:29 +0200 | [diff] [blame] | 294 | | application/views/errors/ directory. Use a full server path with trailing slash. |
vlakoff | cdf3dfa | 2014-04-12 07:33:42 +0200 | [diff] [blame] | 295 | | |
| 296 | */ |
vlakoff | 511a6b8 | 2014-04-14 14:33:55 +0200 | [diff] [blame] | 297 | $config['error_views_path'] = ''; |
vlakoff | cdf3dfa | 2014-04-12 07:33:42 +0200 | [diff] [blame] | 298 | |
| 299 | /* |
| 300 | |-------------------------------------------------------------------------- |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 301 | | Cache Directory Path |
| 302 | |-------------------------------------------------------------------------- |
| 303 | | |
| 304 | | Leave this BLANK unless you would like to set something other than the default |
vlakoff | 6cf456d | 2014-04-14 14:38:29 +0200 | [diff] [blame] | 305 | | application/cache/ directory. Use a full server path with trailing slash. |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 306 | | |
| 307 | */ |
| 308 | $config['cache_path'] = ''; |
| 309 | |
| 310 | /* |
| 311 | |-------------------------------------------------------------------------- |
| 312 | | Encryption Key |
| 313 | |-------------------------------------------------------------------------- |
| 314 | | |
Derek Jones | 5485db5 | 2010-08-30 21:31:08 -0500 | [diff] [blame] | 315 | | If you use the Encryption class or the Session class you |
Derek Jones | 4b9c629 | 2011-07-01 17:40:48 -0500 | [diff] [blame] | 316 | | MUST set an encryption key. See the user guide for info. |
Iban Eguia | 8310595 | 2012-03-27 18:18:15 +0200 | [diff] [blame] | 317 | | |
Kyle Ridolfo | 6a33e55 | 2011-10-27 15:40:06 -0300 | [diff] [blame] | 318 | | http://codeigniter.com/user_guide/libraries/encryption.html |
| 319 | | http://codeigniter.com/user_guide/libraries/sessions.html |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 320 | | |
| 321 | */ |
Phil Sturgeon | 4df8b22 | 2010-12-15 14:23:14 +0000 | [diff] [blame] | 322 | $config['encryption_key'] = ''; |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 323 | |
| 324 | /* |
| 325 | |-------------------------------------------------------------------------- |
| 326 | | Session Variables |
| 327 | |-------------------------------------------------------------------------- |
| 328 | | |
Andrey Andreev | dfb39be | 2014-10-06 01:50:14 +0300 | [diff] [blame] | 329 | | 'sess_driver' |
| 330 | | |
Andrey Andreev | a8f29f9 | 2014-11-10 18:55:55 +0200 | [diff] [blame^] | 331 | | The storage driver to use: files, database, redis, memcached |
Andrey Andreev | dfb39be | 2014-10-06 01:50:14 +0300 | [diff] [blame] | 332 | | |
| 333 | | 'sess_cookie_name' |
| 334 | | |
| 335 | | The session cookie name, must contain only [0-9a-z_-] characters |
| 336 | | |
| 337 | | 'sess_expiration' |
| 338 | | |
| 339 | | The number of SECONDS you want the session to last. |
| 340 | | Setting to 0 (zero) means expire when the browser is closed. |
| 341 | | |
| 342 | | 'sess_save_path' |
| 343 | | |
| 344 | | The location to save sessions to, driver dependant. |
| 345 | | |
| 346 | | 'sess_match_ip' |
| 347 | | |
| 348 | | Whether to match the user's IP address when reading the session data. |
| 349 | | |
| 350 | | 'sess_time_to_update' |
| 351 | | |
| 352 | | How many seconds between CI regenerating the session ID. |
| 353 | | |
| 354 | | Other session cookie settings are shared with the rest of the application, |
| 355 | | except for 'cookie_prefix', which is ignored here. |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 356 | | |
| 357 | */ |
Andrey Andreev | dfb39be | 2014-10-06 01:50:14 +0300 | [diff] [blame] | 358 | $config['sess_driver'] = 'files'; |
| 359 | $config['sess_cookie_name'] = 'ci_session'; |
| 360 | $config['sess_expiration'] = 7200; |
| 361 | $config['sess_save_path'] = NULL; |
| 362 | $config['sess_match_ip'] = FALSE; |
| 363 | $config['sess_time_to_update'] = 300; |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 364 | |
| 365 | /* |
| 366 | |-------------------------------------------------------------------------- |
| 367 | | Cookie Related Variables |
| 368 | |-------------------------------------------------------------------------- |
| 369 | | |
| 370 | | 'cookie_prefix' = Set a prefix if you need to avoid collisions |
| 371 | | 'cookie_domain' = Set to .your-domain.com for site-wide cookies |
Derek Jones | 4b9c629 | 2011-07-01 17:40:48 -0500 | [diff] [blame] | 372 | | 'cookie_path' = Typically will be a forward slash |
| 373 | | 'cookie_secure' = Cookies will only be set if a secure HTTPS connection exists. |
Iban Eguia | 8310595 | 2012-03-27 18:18:15 +0200 | [diff] [blame] | 374 | | 'cookie_httponly' = Cookie will only be accessible via HTTP(S) (no javascript) |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 375 | | |
| 376 | */ |
Dumk0 | d55f749 | 2012-07-03 11:21:45 +0300 | [diff] [blame] | 377 | $config['cookie_prefix'] = ''; |
| 378 | $config['cookie_domain'] = ''; |
| 379 | $config['cookie_path'] = '/'; |
Robin Sowell | d6d9f45 | 2011-02-11 15:31:27 -0500 | [diff] [blame] | 380 | $config['cookie_secure'] = FALSE; |
freewil | 4ad0fd8 | 2012-03-13 22:37:42 -0400 | [diff] [blame] | 381 | $config['cookie_httponly'] = FALSE; |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 382 | |
| 383 | /* |
| 384 | |-------------------------------------------------------------------------- |
Andrey Andreev | bfb635b | 2014-01-08 18:32:05 +0200 | [diff] [blame] | 385 | | Standardize newlines |
| 386 | |-------------------------------------------------------------------------- |
| 387 | | |
| 388 | | Determines whether to standardize newline characters in input data, |
| 389 | | meaning to replace \r\n, \r, \n occurences with the PHP_EOL value. |
| 390 | | |
| 391 | | This is particularly useful for portability between UNIX-based OSes, |
| 392 | | (usually \n) and Windows (\r\n). |
| 393 | | |
| 394 | */ |
Andrey Andreev | aeed15e | 2014-04-14 16:56:23 +0300 | [diff] [blame] | 395 | $config['standardize_newlines'] = FALSE; |
Andrey Andreev | bfb635b | 2014-01-08 18:32:05 +0200 | [diff] [blame] | 396 | |
| 397 | /* |
| 398 | |-------------------------------------------------------------------------- |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 399 | | Global XSS Filtering |
| 400 | |-------------------------------------------------------------------------- |
| 401 | | |
| 402 | | Determines whether the XSS filter is always active when GET, POST or |
| 403 | | COOKIE data is encountered |
| 404 | | |
| 405 | */ |
| 406 | $config['global_xss_filtering'] = FALSE; |
| 407 | |
| 408 | /* |
| 409 | |-------------------------------------------------------------------------- |
Shane Pearson | 49ced91 | 2010-10-06 17:31:40 -0500 | [diff] [blame] | 410 | | Cross Site Request Forgery |
Derek Allard | 958543a | 2010-07-22 14:10:26 -0400 | [diff] [blame] | 411 | |-------------------------------------------------------------------------- |
Shane Pearson | 49ced91 | 2010-10-06 17:31:40 -0500 | [diff] [blame] | 412 | | Enables a CSRF cookie token to be set. When set to TRUE, token will be |
Derek Allard | 958543a | 2010-07-22 14:10:26 -0400 | [diff] [blame] | 413 | | checked on a submitted form. If you are accepting user data, it is strongly |
| 414 | | recommended CSRF protection be enabled. |
Eric Barnes | 9805ecc | 2011-01-16 23:35:16 -0500 | [diff] [blame] | 415 | | |
| 416 | | 'csrf_token_name' = The token name |
| 417 | | 'csrf_cookie_name' = The cookie name |
| 418 | | 'csrf_expire' = The number in seconds the token should expire. |
RS71 | 4b2e9fe | 2011-12-31 16:02:50 -0200 | [diff] [blame] | 419 | | 'csrf_regenerate' = Regenerate token on every submission |
Alex Bilbie | aeb2c3e | 2011-08-21 16:14:54 +0100 | [diff] [blame] | 420 | | 'csrf_exclude_uris' = Array of URIs which ignore CSRF checks |
Derek Allard | 958543a | 2010-07-22 14:10:26 -0400 | [diff] [blame] | 421 | */ |
| 422 | $config['csrf_protection'] = FALSE; |
Eric Barnes | 9805ecc | 2011-01-16 23:35:16 -0500 | [diff] [blame] | 423 | $config['csrf_token_name'] = 'csrf_test_name'; |
| 424 | $config['csrf_cookie_name'] = 'csrf_cookie_name'; |
| 425 | $config['csrf_expire'] = 7200; |
RS71 | 4b2e9fe | 2011-12-31 16:02:50 -0200 | [diff] [blame] | 426 | $config['csrf_regenerate'] = TRUE; |
Alex Bilbie | aeb2c3e | 2011-08-21 16:14:54 +0100 | [diff] [blame] | 427 | $config['csrf_exclude_uris'] = array(); |
Derek Allard | 958543a | 2010-07-22 14:10:26 -0400 | [diff] [blame] | 428 | |
| 429 | /* |
| 430 | |-------------------------------------------------------------------------- |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 431 | | Output Compression |
| 432 | |-------------------------------------------------------------------------- |
| 433 | | |
Derek Jones | 4b9c629 | 2011-07-01 17:40:48 -0500 | [diff] [blame] | 434 | | Enables Gzip output compression for faster page loads. When enabled, |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 435 | | the output class will test whether your server supports Gzip. |
| 436 | | Even if it does, however, not all browsers support compression |
| 437 | | so enable only if you are reasonably sure your visitors can handle it. |
| 438 | | |
Andrey Andreev | 155ee72 | 2014-01-10 15:50:54 +0200 | [diff] [blame] | 439 | | Only used if zlib.output_compression is turned off in your php.ini. |
| 440 | | Please do not use it together with httpd-level output compression. |
| 441 | | |
Derek Jones | 4b9c629 | 2011-07-01 17:40:48 -0500 | [diff] [blame] | 442 | | VERY IMPORTANT: If you are getting a blank page when compression is enabled it |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 443 | | means you are prematurely outputting something to your browser. It could |
Derek Jones | 4b9c629 | 2011-07-01 17:40:48 -0500 | [diff] [blame] | 444 | | even be a line of whitespace at the end of one of your scripts. For |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 445 | | compression to work, nothing can be sent before the output buffer is called |
Derek Jones | 4b9c629 | 2011-07-01 17:40:48 -0500 | [diff] [blame] | 446 | | by the output class. Do not 'echo' any values with compression enabled. |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 447 | | |
| 448 | */ |
| 449 | $config['compress_output'] = FALSE; |
| 450 | |
| 451 | /* |
| 452 | |-------------------------------------------------------------------------- |
Thor (atiredmachine) | 63678a2 | 2012-01-24 16:56:01 -0800 | [diff] [blame] | 453 | | Minify |
| 454 | |-------------------------------------------------------------------------- |
| 455 | | |
| 456 | | Removes extra characters (usually unnecessary spaces) from your |
| 457 | | output for faster page load speeds. Makes your outputted HTML source |
| 458 | | code less readable. |
| 459 | | |
| 460 | */ |
| 461 | $config['minify_output'] = FALSE; |
| 462 | |
| 463 | /* |
| 464 | |-------------------------------------------------------------------------- |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 465 | | Master Time Reference |
| 466 | |-------------------------------------------------------------------------- |
| 467 | | |
Andrey Andreev | d163e0b | 2012-06-14 03:09:53 +0300 | [diff] [blame] | 468 | | Options are 'local' or any PHP supported timezone. This preference tells |
| 469 | | the system whether to use your server's local time as the master 'now' |
| 470 | | reference, or convert it to the configured one timezone. See the 'date |
Iban Eguia | 7400965 | 2012-06-13 22:57:50 +0200 | [diff] [blame] | 471 | | helper' page of the user guide for information regarding date handling. |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 472 | | |
| 473 | */ |
| 474 | $config['time_reference'] = 'local'; |
| 475 | |
| 476 | |
| 477 | /* |
| 478 | |-------------------------------------------------------------------------- |
| 479 | | Rewrite PHP Short Tags |
| 480 | |-------------------------------------------------------------------------- |
| 481 | | |
| 482 | | If your PHP installation does not have short tag support enabled CI |
| 483 | | can rewrite the tags on-the-fly, enabling you to utilize that syntax |
Derek Jones | 4b9c629 | 2011-07-01 17:40:48 -0500 | [diff] [blame] | 484 | | in your view files. Options are TRUE or FALSE (boolean) |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 485 | | |
| 486 | */ |
| 487 | $config['rewrite_short_tags'] = FALSE; |
| 488 | |
| 489 | |
Derek Jones | c597228 | 2009-02-04 21:40:20 +0000 | [diff] [blame] | 490 | /* |
| 491 | |-------------------------------------------------------------------------- |
| 492 | | Reverse Proxy IPs |
| 493 | |-------------------------------------------------------------------------- |
| 494 | | |
Andrey Andreev | 9ac557f | 2012-10-06 20:27:57 +0300 | [diff] [blame] | 495 | | If your server is behind a reverse proxy, you must whitelist the proxy |
| 496 | | IP addresses from which CodeIgniter should trust headers such as |
| 497 | | HTTP_X_FORWARDED_FOR and HTTP_CLIENT_IP in order to properly identify |
| 498 | | the visitor's IP address. |
Derek Jones | c597228 | 2009-02-04 21:40:20 +0000 | [diff] [blame] | 499 | | |
Andrey Andreev | 9ac557f | 2012-10-06 20:27:57 +0300 | [diff] [blame] | 500 | | You can use both an array or a comma-separated list of proxy addresses, |
| 501 | | as well as specifying whole subnets. Here are a few examples: |
| 502 | | |
| 503 | | Comma-separated: '10.0.1.200,192.168.5.0/24' |
| 504 | | Array: array('10.0.1.200', '192.168.5.0/24') |
Derek Jones | c597228 | 2009-02-04 21:40:20 +0000 | [diff] [blame] | 505 | */ |
| 506 | $config['proxy_ips'] = ''; |
| 507 | |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 508 | |
| 509 | /* End of file config.php */ |
Andrey Andreev | 9c98991 | 2013-09-14 20:55:12 +0300 | [diff] [blame] | 510 | /* Location: ./application/config/config.php */ |