summaryrefslogtreecommitdiffstats
path: root/system/core/Config.php
AgeCommit message (Collapse)AuthorFilesLines
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
2012-04-27Fix Config.php and partially fix Image_lib.phpTimothy Warren1-7/+0
2012-04-23Use tabs to separate class propertiesTimothy Warren1-3/+3
2012-04-19Additional formatting fixesTimothy Warren1-1/+3
2012-04-19Normalize comments in core filesTimothy Warren1-1/+0
2012-03-14Merge branch 'feature/unit-tests' into developPhil Sturgeon1-1/+1
2012-03-10Fix incomplete and skipped testTaufan Aditya1-1/+1
2012-03-09Bumped CodeIgniter's PHP requirement to 5.2.4.Phil Sturgeon1-1/+1
Yes I know PHP 5.4 just came out, and yes I know PHP 5.3 has lovely features, but there are plenty of corporate systems running on CodeIgniter and PHP 5.3 still is not widely supported enough. CodeIgniter is great for distributed applications, and this is the highest we can reasonably go without breaking support. PHP 5.3 will most likely happen in another year or so. Fingers crossed on that one anyway...
2012-01-31HTTPS detection fixRoss Duggan1-1/+1
More closely follow the wording of the $_SERVER['HTTPS'] description in the PHP manual, which specifies a "non-empty" value rather than "non-null"
2012-01-07Reverted DIRECTORY_SEPARATOR changesAndrey Andreev1-3/+3
2012-01-07Improve the Config libraryAndrey Andreev1-74/+40