Andrey Andreev | e734b38 | 2012-03-26 13:42:36 +0300 | [diff] [blame] | 1 | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); |
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 |
Greg Aker | 0defe5d | 2012-01-01 18:46:41 -0600 | [diff] [blame] | 21 | * @copyright Copyright (c) 2008 - 2012, 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 | */ |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 27 | |
| 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 Sturgeon | 4df8b22 | 2010-12-15 14:23:14 +0000 | [diff] [blame] | 38 | | If this is not set then CodeIgniter will guess the protocol, domain and |
| 39 | | path to your installation. |
| 40 | | |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 41 | */ |
Phil Sturgeon | 4df8b22 | 2010-12-15 14:23:14 +0000 | [diff] [blame] | 42 | $config['base_url'] = ''; |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 43 | |
| 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 Sturgeon | 4df8b22 | 2010-12-15 14:23:14 +0000 | [diff] [blame] | 54 | $config['index_page'] = 'index.php'; |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 55 | |
| 56 | /* |
| 57 | |-------------------------------------------------------------------------- |
| 58 | | URI PROTOCOL |
| 59 | |-------------------------------------------------------------------------- |
| 60 | | |
| 61 | | This item determines which server global should be used to retrieve the |
Derek Jones | 4b9c629 | 2011-07-01 17:40:48 -0500 | [diff] [blame] | 62 | | URI string. The default setting of 'AUTO' works for most servers. |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 63 | | If your links do not seem to work, try one of the other delicious flavors: |
| 64 | | |
| 65 | | 'AUTO' Default - auto detects |
| 66 | | 'PATH_INFO' Uses the PATH_INFO |
| 67 | | 'QUERY_STRING' Uses the QUERY_STRING |
| 68 | | 'REQUEST_URI' Uses the REQUEST_URI |
| 69 | | 'ORIG_PATH_INFO' Uses the ORIG_PATH_INFO |
| 70 | | |
| 71 | */ |
Phil Sturgeon | 4df8b22 | 2010-12-15 14:23:14 +0000 | [diff] [blame] | 72 | $config['uri_protocol'] = 'AUTO'; |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 73 | |
| 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 Sturgeon | 4df8b22 | 2010-12-15 14:23:14 +0000 | [diff] [blame] | 85 | $config['url_suffix'] = ''; |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 86 | |
| 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 Sturgeon | 4df8b22 | 2010-12-15 14:23:14 +0000 | [diff] [blame] | 97 | $config['language'] = 'english'; |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 98 | |
| 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 | | |
freewil | 8cc0cfe | 2011-08-27 21:53:00 -0400 | [diff] [blame] | 107 | | See http://php.net/htmlspecialchars for a list of supported charsets. |
| 108 | | |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 109 | */ |
Phil Sturgeon | 4df8b22 | 2010-12-15 14:23:14 +0000 | [diff] [blame] | 110 | $config['charset'] = 'UTF-8'; |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 111 | |
| 112 | /* |
| 113 | |-------------------------------------------------------------------------- |
| 114 | | Enable/Disable System Hooks |
| 115 | |-------------------------------------------------------------------------- |
| 116 | | |
Phil Sturgeon | 4df8b22 | 2010-12-15 14:23:14 +0000 | [diff] [blame] | 117 | | 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] | 118 | | setting this variable to TRUE (boolean). See the user guide for details. |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 119 | | |
| 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 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 | |
| 138 | |
| 139 | /* |
| 140 | |-------------------------------------------------------------------------- |
| 141 | | Allowed URL Characters |
| 142 | |-------------------------------------------------------------------------- |
| 143 | | |
| 144 | | This lets you specify with a regular expression which characters are permitted |
Derek Jones | 4b9c629 | 2011-07-01 17:40:48 -0500 | [diff] [blame] | 145 | | within your URLs. When someone tries to submit a URL with disallowed |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 146 | | characters they will get a warning message. |
| 147 | | |
| 148 | | As a security measure you are STRONGLY encouraged to restrict URLs to |
Derek Jones | 4b9c629 | 2011-07-01 17:40:48 -0500 | [diff] [blame] | 149 | | 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] | 150 | | |
| 151 | | Leave blank to allow all characters -- but only if you are insane. |
| 152 | | |
| 153 | | DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!! |
| 154 | | |
| 155 | */ |
| 156 | $config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-'; |
| 157 | |
| 158 | |
| 159 | /* |
| 160 | |-------------------------------------------------------------------------- |
| 161 | | Enable Query Strings |
| 162 | |-------------------------------------------------------------------------- |
| 163 | | |
| 164 | | By default CodeIgniter uses search-engine friendly segment based URLs: |
| 165 | | example.com/who/what/where/ |
| 166 | | |
Derek Jones | 4b9c629 | 2011-07-01 17:40:48 -0500 | [diff] [blame] | 167 | | By default CodeIgniter enables access to the $_GET array. If for some |
Dan Horrigan | 65d603e | 2010-12-15 08:38:30 -0500 | [diff] [blame] | 168 | | reason you would like to disable it, set 'allow_get_array' to FALSE. |
| 169 | | |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 170 | | You can optionally enable standard query string based URLs: |
| 171 | | example.com?who=me&what=something&where=here |
| 172 | | |
| 173 | | Options are: TRUE or FALSE (boolean) |
| 174 | | |
Phil Sturgeon | 4df8b22 | 2010-12-15 14:23:14 +0000 | [diff] [blame] | 175 | | The other items let you set the query string 'words' that will |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 176 | | invoke your controllers and its functions: |
| 177 | | example.com/index.php?c=controller&m=function |
| 178 | | |
| 179 | | Please note that some of the helpers won't work as expected when |
| 180 | | this feature is enabled, since CodeIgniter is designed primarily to |
| 181 | | use segment based URLs. |
| 182 | | |
| 183 | */ |
Phil Sturgeon | c808915 | 2010-12-27 19:06:28 +0000 | [diff] [blame] | 184 | $config['allow_get_array'] = TRUE; |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 185 | $config['enable_query_strings'] = FALSE; |
Barry Mieny | dd67197 | 2010-10-04 16:33:58 +0200 | [diff] [blame] | 186 | $config['controller_trigger'] = 'c'; |
| 187 | $config['function_trigger'] = 'm'; |
| 188 | $config['directory_trigger'] = 'd'; // experimental not currently in use |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 189 | |
| 190 | /* |
| 191 | |-------------------------------------------------------------------------- |
| 192 | | Error Logging Threshold |
| 193 | |-------------------------------------------------------------------------- |
| 194 | | |
Barry Mieny | dd67197 | 2010-10-04 16:33:58 +0200 | [diff] [blame] | 195 | | 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] | 196 | | determine what gets logged. Threshold options are: |
| 197 | | You can enable error logging by setting a threshold over zero. The |
| 198 | | threshold determines what gets logged. Threshold options are: |
| 199 | | |
| 200 | | 0 = Disables logging, Error logging TURNED OFF |
| 201 | | 1 = Error Messages (including PHP errors) |
| 202 | | 2 = Debug Messages |
| 203 | | 3 = Informational Messages |
| 204 | | 4 = All Messages |
| 205 | | |
Nithin | 333f9f9 | 2011-08-21 16:52:06 -0400 | [diff] [blame] | 206 | | 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] | 207 | | |
Nithin | 333f9f9 | 2011-08-21 16:52:06 -0400 | [diff] [blame] | 208 | | array(2) = Debug Messages, without Error Messages |
| 209 | | |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 210 | | For a live site you'll usually only enable Errors (1) to be logged otherwise |
| 211 | | your log files will fill up very fast. |
| 212 | | |
| 213 | */ |
| 214 | $config['log_threshold'] = 0; |
| 215 | |
| 216 | /* |
| 217 | |-------------------------------------------------------------------------- |
| 218 | | Error Logging Directory Path |
| 219 | |-------------------------------------------------------------------------- |
| 220 | | |
| 221 | | Leave this BLANK unless you would like to set something other than the default |
Eric Barnes | 3cf4c4e | 2011-01-12 09:10:08 -0500 | [diff] [blame] | 222 | | application/logs/ folder. Use a full server path with trailing slash. |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 223 | | |
| 224 | */ |
| 225 | $config['log_path'] = ''; |
| 226 | |
| 227 | /* |
| 228 | |-------------------------------------------------------------------------- |
| 229 | | Date Format for Logs |
| 230 | |-------------------------------------------------------------------------- |
| 231 | | |
| 232 | | Each item that is logged has an associated date. You can use PHP date |
| 233 | | codes to set your own date formatting |
| 234 | | |
| 235 | */ |
| 236 | $config['log_date_format'] = 'Y-m-d H:i:s'; |
| 237 | |
| 238 | /* |
| 239 | |-------------------------------------------------------------------------- |
| 240 | | Cache Directory Path |
| 241 | |-------------------------------------------------------------------------- |
| 242 | | |
| 243 | | Leave this BLANK unless you would like to set something other than the default |
Derek Jones | 4b9c629 | 2011-07-01 17:40:48 -0500 | [diff] [blame] | 244 | | system/cache/ folder. Use a full server path with trailing slash. |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 245 | | |
| 246 | */ |
| 247 | $config['cache_path'] = ''; |
| 248 | |
| 249 | /* |
| 250 | |-------------------------------------------------------------------------- |
| 251 | | Encryption Key |
| 252 | |-------------------------------------------------------------------------- |
| 253 | | |
Derek Jones | 5485db5 | 2010-08-30 21:31:08 -0500 | [diff] [blame] | 254 | | If you use the Encryption class or the Session class you |
Derek Jones | 4b9c629 | 2011-07-01 17:40:48 -0500 | [diff] [blame] | 255 | | MUST set an encryption key. See the user guide for info. |
Iban Eguia | 8310595 | 2012-03-27 18:18:15 +0200 | [diff] [blame] | 256 | | |
Kyle Ridolfo | 6a33e55 | 2011-10-27 15:40:06 -0300 | [diff] [blame] | 257 | | http://codeigniter.com/user_guide/libraries/encryption.html |
| 258 | | http://codeigniter.com/user_guide/libraries/sessions.html |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 259 | | |
| 260 | */ |
Phil Sturgeon | 4df8b22 | 2010-12-15 14:23:14 +0000 | [diff] [blame] | 261 | $config['encryption_key'] = ''; |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 262 | |
| 263 | /* |
| 264 | |-------------------------------------------------------------------------- |
| 265 | | Session Variables |
| 266 | |-------------------------------------------------------------------------- |
| 267 | | |
Derek Jones | 21ca8cc | 2010-09-27 08:49:29 -0500 | [diff] [blame] | 268 | | 'sess_cookie_name' = the name you want for the cookie |
Barry Mieny | dd67197 | 2010-10-04 16:33:58 +0200 | [diff] [blame] | 269 | | 'sess_expiration' = the number of SECONDS you want the session to last. |
Derek Jones | 4b9c629 | 2011-07-01 17:40:48 -0500 | [diff] [blame] | 270 | | by default sessions last 7200 seconds (two hours). Set to zero for no expiration. |
Derek Jones | 21ca8cc | 2010-09-27 08:49:29 -0500 | [diff] [blame] | 271 | | 'sess_expire_on_close' = Whether to cause the session to expire automatically |
Derek Jones | 4b9c629 | 2011-07-01 17:40:48 -0500 | [diff] [blame] | 272 | | when the browser window is closed |
Derek Jones | 21ca8cc | 2010-09-27 08:49:29 -0500 | [diff] [blame] | 273 | | 'sess_encrypt_cookie' = Whether to encrypt the cookie |
| 274 | | 'sess_use_database' = Whether to save the session data to a database |
| 275 | | 'sess_table_name' = The name of the session database table |
| 276 | | 'sess_match_ip' = Whether to match the user's IP address when reading the session data |
| 277 | | 'sess_match_useragent' = Whether to match the User Agent when reading the session data |
| 278 | | 'sess_time_to_update' = how many seconds between CI refreshing Session Information |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 279 | | |
| 280 | */ |
| 281 | $config['sess_cookie_name'] = 'ci_session'; |
| 282 | $config['sess_expiration'] = 7200; |
Derek Jones | 21ca8cc | 2010-09-27 08:49:29 -0500 | [diff] [blame] | 283 | $config['sess_expire_on_close'] = FALSE; |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 284 | $config['sess_encrypt_cookie'] = FALSE; |
| 285 | $config['sess_use_database'] = FALSE; |
| 286 | $config['sess_table_name'] = 'ci_sessions'; |
| 287 | $config['sess_match_ip'] = FALSE; |
| 288 | $config['sess_match_useragent'] = TRUE; |
Barry Mieny | dd67197 | 2010-10-04 16:33:58 +0200 | [diff] [blame] | 289 | $config['sess_time_to_update'] = 300; |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 290 | |
| 291 | /* |
| 292 | |-------------------------------------------------------------------------- |
| 293 | | Cookie Related Variables |
| 294 | |-------------------------------------------------------------------------- |
| 295 | | |
| 296 | | 'cookie_prefix' = Set a prefix if you need to avoid collisions |
| 297 | | 'cookie_domain' = Set to .your-domain.com for site-wide cookies |
Derek Jones | 4b9c629 | 2011-07-01 17:40:48 -0500 | [diff] [blame] | 298 | | 'cookie_path' = Typically will be a forward slash |
| 299 | | '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] | 300 | | 'cookie_httponly' = Cookie will only be accessible via HTTP(S) (no javascript) |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 301 | | |
| 302 | */ |
Dumk0 | d55f749 | 2012-07-03 11:21:45 +0300 | [diff] [blame^] | 303 | $config['cookie_prefix'] = ''; |
| 304 | $config['cookie_domain'] = ''; |
| 305 | $config['cookie_path'] = '/'; |
Robin Sowell | d6d9f45 | 2011-02-11 15:31:27 -0500 | [diff] [blame] | 306 | $config['cookie_secure'] = FALSE; |
freewil | 4ad0fd8 | 2012-03-13 22:37:42 -0400 | [diff] [blame] | 307 | $config['cookie_httponly'] = FALSE; |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 308 | |
| 309 | /* |
| 310 | |-------------------------------------------------------------------------- |
| 311 | | Global XSS Filtering |
| 312 | |-------------------------------------------------------------------------- |
| 313 | | |
| 314 | | Determines whether the XSS filter is always active when GET, POST or |
| 315 | | COOKIE data is encountered |
| 316 | | |
| 317 | */ |
| 318 | $config['global_xss_filtering'] = FALSE; |
| 319 | |
| 320 | /* |
| 321 | |-------------------------------------------------------------------------- |
Shane Pearson | 49ced91 | 2010-10-06 17:31:40 -0500 | [diff] [blame] | 322 | | Cross Site Request Forgery |
Derek Allard | 958543a | 2010-07-22 14:10:26 -0400 | [diff] [blame] | 323 | |-------------------------------------------------------------------------- |
Shane Pearson | 49ced91 | 2010-10-06 17:31:40 -0500 | [diff] [blame] | 324 | | 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] | 325 | | checked on a submitted form. If you are accepting user data, it is strongly |
| 326 | | recommended CSRF protection be enabled. |
Eric Barnes | 9805ecc | 2011-01-16 23:35:16 -0500 | [diff] [blame] | 327 | | |
| 328 | | 'csrf_token_name' = The token name |
| 329 | | 'csrf_cookie_name' = The cookie name |
| 330 | | 'csrf_expire' = The number in seconds the token should expire. |
RS71 | 4b2e9fe | 2011-12-31 16:02:50 -0200 | [diff] [blame] | 331 | | 'csrf_regenerate' = Regenerate token on every submission |
Alex Bilbie | aeb2c3e | 2011-08-21 16:14:54 +0100 | [diff] [blame] | 332 | | 'csrf_exclude_uris' = Array of URIs which ignore CSRF checks |
Derek Allard | 958543a | 2010-07-22 14:10:26 -0400 | [diff] [blame] | 333 | */ |
| 334 | $config['csrf_protection'] = FALSE; |
Eric Barnes | 9805ecc | 2011-01-16 23:35:16 -0500 | [diff] [blame] | 335 | $config['csrf_token_name'] = 'csrf_test_name'; |
| 336 | $config['csrf_cookie_name'] = 'csrf_cookie_name'; |
| 337 | $config['csrf_expire'] = 7200; |
RS71 | 4b2e9fe | 2011-12-31 16:02:50 -0200 | [diff] [blame] | 338 | $config['csrf_regenerate'] = TRUE; |
Alex Bilbie | aeb2c3e | 2011-08-21 16:14:54 +0100 | [diff] [blame] | 339 | $config['csrf_exclude_uris'] = array(); |
Derek Allard | 958543a | 2010-07-22 14:10:26 -0400 | [diff] [blame] | 340 | |
| 341 | /* |
| 342 | |-------------------------------------------------------------------------- |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 343 | | Output Compression |
| 344 | |-------------------------------------------------------------------------- |
| 345 | | |
Derek Jones | 4b9c629 | 2011-07-01 17:40:48 -0500 | [diff] [blame] | 346 | | Enables Gzip output compression for faster page loads. When enabled, |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 347 | | the output class will test whether your server supports Gzip. |
| 348 | | Even if it does, however, not all browsers support compression |
| 349 | | so enable only if you are reasonably sure your visitors can handle it. |
| 350 | | |
Derek Jones | 4b9c629 | 2011-07-01 17:40:48 -0500 | [diff] [blame] | 351 | | 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] | 352 | | means you are prematurely outputting something to your browser. It could |
Derek Jones | 4b9c629 | 2011-07-01 17:40:48 -0500 | [diff] [blame] | 353 | | 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] | 354 | | 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] | 355 | | by the output class. Do not 'echo' any values with compression enabled. |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 356 | | |
| 357 | */ |
| 358 | $config['compress_output'] = FALSE; |
| 359 | |
| 360 | /* |
| 361 | |-------------------------------------------------------------------------- |
Thor (atiredmachine) | 63678a2 | 2012-01-24 16:56:01 -0800 | [diff] [blame] | 362 | | Minify |
| 363 | |-------------------------------------------------------------------------- |
| 364 | | |
| 365 | | Removes extra characters (usually unnecessary spaces) from your |
| 366 | | output for faster page load speeds. Makes your outputted HTML source |
| 367 | | code less readable. |
| 368 | | |
| 369 | */ |
| 370 | $config['minify_output'] = FALSE; |
| 371 | |
| 372 | /* |
| 373 | |-------------------------------------------------------------------------- |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 374 | | Master Time Reference |
| 375 | |-------------------------------------------------------------------------- |
| 376 | | |
Andrey Andreev | d163e0b | 2012-06-14 03:09:53 +0300 | [diff] [blame] | 377 | | Options are 'local' or any PHP supported timezone. This preference tells |
| 378 | | the system whether to use your server's local time as the master 'now' |
| 379 | | reference, or convert it to the configured one timezone. See the 'date |
Iban Eguia | 7400965 | 2012-06-13 22:57:50 +0200 | [diff] [blame] | 380 | | helper' page of the user guide for information regarding date handling. |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 381 | | |
| 382 | */ |
| 383 | $config['time_reference'] = 'local'; |
| 384 | |
| 385 | |
| 386 | /* |
| 387 | |-------------------------------------------------------------------------- |
| 388 | | Rewrite PHP Short Tags |
| 389 | |-------------------------------------------------------------------------- |
| 390 | | |
| 391 | | If your PHP installation does not have short tag support enabled CI |
| 392 | | 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] | 393 | | in your view files. Options are TRUE or FALSE (boolean) |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 394 | | |
| 395 | */ |
| 396 | $config['rewrite_short_tags'] = FALSE; |
| 397 | |
| 398 | |
Derek Jones | c597228 | 2009-02-04 21:40:20 +0000 | [diff] [blame] | 399 | /* |
| 400 | |-------------------------------------------------------------------------- |
| 401 | | Reverse Proxy IPs |
| 402 | |-------------------------------------------------------------------------- |
| 403 | | |
| 404 | | If your server is behind a reverse proxy, you must whitelist the proxy IP |
| 405 | | addresses from which CodeIgniter should trust the HTTP_X_FORWARDED_FOR |
| 406 | | header in order to properly identify the visitor's IP address. |
| 407 | | Comma-delimited, e.g. '10.0.1.200,10.0.1.201' |
| 408 | | |
| 409 | */ |
| 410 | $config['proxy_ips'] = ''; |
| 411 | |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 412 | |
Thor (atiredmachine) | 63678a2 | 2012-01-24 16:56:01 -0800 | [diff] [blame] | 413 | |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 414 | /* End of file config.php */ |
Phil Sturgeon | 33ed0f3 | 2011-02-16 19:03:49 +0000 | [diff] [blame] | 415 | /* Location: ./application/config/config.php */ |