summaryrefslogtreecommitdiffstats
path: root/system/core/Config.php
AgeCommit message (Collapse)AuthorFilesLines
2017-01-03Update copyright data to 2017Master Yoda1-2/+2
2016-04-28Fix #4605Andrey Andreev1-6/+3
2016-01-11[ci skip] Update ellislab.com links to https tooAndrey Andreev1-1/+1
2016-01-11[ci skip] Update codeigniter.com links to httpsAndrey Andreev1-2/+2
2016-01-11[ci skip] Bump year to 2016Andrey Andreev1-2/+2
2015-11-09Merge pull request #4217 from natesilva/fix-ipv6-base_urlAndrey Andreev1-1/+10
Build base_url correctly if SERVER_ADDR is IPv6
2015-10-31Prevent Host header injectionsAndrey Andreev1-4/+2
2015-09-14Close #4098Andrey Andreev1-2/+18
2015-03-15[ci skip] Use DIRECTORY_SEPARATOR instead of / in CI_ConfigAndrey Andreev1-1/+1
2015-03-05Fix #3642Andrey Andreev1-7/+5
2015-01-21Remove closing blocks at end of PHP filesvlakoff1-3/+0
2015-01-20[ci skip] Change some log messages' levelAndrey Andreev1-1/+4
'Class Loaded' type of messages flood log files when log_threshold is set to 2 (debug). They're now logged as 'info' level. This is manually applying PR #1528, which was created to do the same thing, but became outdated.
2015-01-09Bulk (mostly documentation) updateAndrey Andreev1-3/+3
- Remove PHP version from license notices - Bump year number in copyright notices - Recommend PHP 5.4 or newer to be used - Tell Travis-CI to test on PHP 5.3.0 instead of the latest 5.3 version Related: #3450
2014-12-16Fix #3419Andrey Andreev1-41/+28
2014-10-28Close #3292Andrey Andreev1-1/+3
2014-10-27[ci skip] Switch to MIT license; close #3293Andrey Andreev1-14/+25
2014-10-10Fix #3270Andrey Andreev1-5/+2
Related: #3268, 4bdb66759c24c41fefec7952b12a0595a671eaa2
2014-10-07Attempt a better base_url auto-detectionAndrey Andreev1-3/+5
2014-06-12remove the empty line at the end of fileFu Xu1-1/+1
2014-06-12style changeFu Xu1-1/+1
2014-06-12config load bug fixFu Xu1-2/+3
2014-04-01Discard the unwanted changesvlakoff1-3/+10
2014-04-01Yet another method for determining "base_url"vlakoff1-8/+1
This one is great because we don't have to deal with the special cases: * in Windows, dirname('/foo/index.php') gives "/foo", but dirname('/index.php') gives "\" instead of "/" * dirname() doesn't include the trailing slash, with the expection of "/" (root) props @narfbg
2014-04-01Remove spaces around concatenationsvlakoff1-3/+3
per request
2014-03-31Different method for determining "base_url"vlakoff1-2/+7
Better performance by not using regex.
2014-03-31Robuster determination of "base_url" config itemvlakoff1-1/+3
Remove the basename only at the end, to avoid edge cases.
2014-03-31Refactoring in Config->__construct()vlakoff1-10/+3
Put the $_SERVER['HTTP_HOST'] fallback in a more logical place.
2014-02-112013 > 2014darwinel1-1/+1
Update copyright notices from 2013 to 2014. And update one calendar example in user_guide from year 2013/2014 to 2014/2015.
2014-02-08Deprecate CI_Config::system_url()Andrey Andreev1-0/+1
2013-10-25Implement $protocol parameter in Config base_url() and site_url() methodsvlakoff1-6/+22
Let's keep the implementation logic in one place. Improves 2023c3d05b042cf1322286d69557c2b8bf3bd8d5.
2013-07-25Uniformize slash_item() with item()vlakoff1-2/+2
2013-07-25Adjustments to the previous commitvlakoff1-1/+1
2013-07-24config->item() now returns NULL instead of FALSE when the required item ↵vlakoff1-3/+3
doesn't exist. Uniformization with other functions. This also brings the ability to properly use booleans in configuration.
2013-01-28Remove unnecessary defined('ENVIRONMENT') checksAndrey Andreev1-5/+1
As suggested in issue #2134 & PR #2149
2013-01-01[ci skip] Happy new yearAndrey Andreev1-1/+1
2012-12-03config->site_url(): remove useless castvlakoff1-1/+1
thanks to narfbg
2012-12-03config->site_url() optimizationsvlakoff1-7/+10
- direct access to config array, instead of item() calls - the string cast is just in case 'url_suffix' would be set to false or null; the function produces the same results without this cast, but it leads to a robuster code, as false and null are sanitized and skip the suffix insertion code - altered conditional structure: if no suffix, skip the appending of an empty string to $uri
2012-11-01Manually apply PR #1594 (fixing phpdoc page-level generation/warnings)Andrey Andreev1-1/+2
Also partially fixes issue #1295, fixes inconsistencies in some page-level docblocks and adds include checks in language files.
2012-10-27Input class improvementsAndrey Andreev1-1/+1
- Disable register_globals replication on PHP 5.4+ (no longer exists). - DocBlock improvements. - Add missing changelog entry. - Change user_agent() to return NULL when no value is found (for consistency with other fetcher methods).
2012-10-27Docblock improvements to the Config library and remove ↵Andrey Andreev1-46/+34
CI_Config::_assign_to_config() Existance of _assign_to_config() is pointless as this method consists just of a foreach calling CI_Config::set_item() and is only called by CodeIgniter.php - moved that foreach() in there instead.
2012-10-22Add is_https() as a common functionAndrey Andreev1-1/+1
2012-10-05Fix issue #116 + other space/style fixes [ci skipAndrey Andreev1-1/+1
2012-07-04Fix some whitespace, removed unnecessary string concatenation.Eric Roberts1-3/+3
2012-07-04Moved redundant $check_locations definition out of loop.Eric Roberts1-4/+4
2012-06-16Fix issue #999Andrey Andreev1-3/+15
2012-06-16Fix issue #938 + some related improvementsAndrey Andreev1-13/+7
2012-06-12Change file permissions for system/core/*.php and system/database/DB.php so ↵Andrey Andreev1-0/+0
that they don't differ from the rest
2012-06-04Revert/optimize some changes from ed944a3c70a0bad158cd5a6ca5ce1f2e717aff5dAndrey Andreev1-1/+1
2012-06-02Replaced `==` with `===` and `!=` with `!==` in /system/coreAlex Bilbie1-7/+7
2012-05-17Cleanup the core classesAndrey Andreev1-14/+13