summaryrefslogtreecommitdiffstats
path: root/system/libraries/User_agent.php
AgeCommit message (Collapse)AuthorFilesLines
2018-05-18http:// to https://Mehdi Bounya1-2/+2
2018-01-09Annual copyright updateMaster Yoda1-2/+2
2016-12-31Update copyright data to 2017Master Yoda1-2/+2
2016-07-19Fix #4695Andrey Andreev1-4/+2
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-01-21Remove closing blocks at end of PHP filesvlakoff1-3/+0
2015-01-20[ci skip] Change some log messages' levelAndrey Andreev1-1/+1
'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-10-27[ci skip] Switch to MIT license; close #3293Andrey Andreev1-14/+25
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-01-17Minor changes related to CI_User_agentAndrey Andreev1-8/+15
Fixed a bug where both accept_charset() and accept_lang() improperly parsed headers if they contained spaces between data separators (which is valid). Also made is_referral() testable by replacing its static cache var with a class property and added some more unit tests for the library as a whole.
2014-01-09Add CI_User_agent::parse() to allow parsing a custom user-agent stringAndrey Andreev1-0/+28
Based on PR #970
2014-01-08Remove preg_quote() call from CI_User_agent::_set_browser() and add another ↵Andrey Andreev1-1/+1
pattern for Opera Input comes from a configuration file that is barely touched by anyone and the default values only contain letters, so it is safe to not quote them. This enables us to add a more advanced pattern in config/user_agents.php for Opera 10+, which ... quote: Opera/9.80 is hard coded at the beginning of the user agent string because of broken browser sniffing scripts which detect 'Opera/10' and above as Opera 1. (reference: http://my.opera.com/community/openweb/idopera/) Instead, latests versions of Opera append ' Version/<version number>' to the end of the user agent string. Fixes issue #555 (incorrect browser detection for Opera)
2013-07-20Cache result of is_referral()vlakoff1-6/+15
2013-07-20User_agent library: robuster detection in is_referral()vlakoff1-2/+4
2013-01-29Replace is_file() with the faster file_exists()Andrey Andreev1-5/+8
(where it makes sense) Also: - Implemented caching of configuration arrays for smileys, foreign characters and doctypes. - Implemented cascading-style loading of configuration files (except for library configs, DB and constants.php).
2013-01-28Remove unnecessary defined('ENVIRONMENT') checksAndrey Andreev1-1/+1
As suggested in issue #2134 & PR #2149
2013-01-14Replace is_null() with === / !== NULLvlakoff1-1/+1
Exact same behavior, but faster. I also think it's more readable.
2013-01-01[ci skip] Happy new yearAndrey Andreev1-1/+1
2012-11-13Merge pull request #1258 from cryode/feature/robot_mobileAndrey Andreev1-0/+1
Add mobile detection to robot user agents.
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-24Fix #1255Andrey Andreev1-1/+7
2012-05-11User_agent library improvementsAndrey Andreev1-12/+12
2012-04-20Start comment cleanup of librariesTimothy Warren1-15/+105
2012-04-14Add mobile detection to robot user agents.Eric Roberts1-0/+1
2012-04-03Minor style changes and optimizations to the User_agent libraryAndrey Andreev1-27/+27
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-02Updating copyright date to 2012Greg Aker1-1/+1
2011-12-27Revert "Abstracting the loading of files in the config directory depending ↵Greg Aker1-4/+9
on environments." This reverts commit 5c1aa631c5f5ec2f6b75ba1158178418e50ba11a.
2011-12-27Merge pull request #831 from narfbg/develop-user-agentGreg Aker1-68/+35
Improve the User agent library
2011-12-27Remove access lines from method descriptionsAndrey Andreev1-24/+0
2011-12-26Replace private with protected, so the class can be easily extendedAndrey Andreev1-16/+16
2011-12-25Improve the User agent libraryAndrey Andreev1-36/+27
2011-12-25Abstracting the loading of files in the config directory depending on ↵Greg Aker1-9/+4
environments.
2011-10-20adding new license file (OSL 3.0) and updating readme to ReSTDerek Jones1-4/+16
added notice of license to all source files. OSL to all except the few files we ship inside of the application folder, those are AFL. Updated license in user guide. incrementing next dev version to 3.0 due to licensing change
2011-09-27Fix a typo on User agent library.cenk1-2/+2
2011-08-10Fixed #378 Robots identified as regular browsers by the User Agent class.Phil Sturgeon1-1/+1
2011-07-02backed out 648b42a75739, which was a NON-trivial whitespace commit. It ↵Derek Jones1-1/+1
broke the Typography class's string replacements, for instance
2011-04-25Fixed double-space typo.Razican1-1/+1
2011-04-19Removing internal references to the EXT constant. Additionally, marked the ↵Greg Aker1-4/+4
constant as deprecated. Use ".php" instead. Also adding upgrade notes from 2.0.2 to 2.0.3.
2011-04-06Made Environment Support optional. Comment out or delete the constant to ↵Phil Sturgeon1-1/+1
stop environment checks.
2011-03-22Fixed logic and removed the error supressingEric Barnes1-6/+5
2011-03-18Fixed coding to match standards from previous releasesEric Barnes1-1/+1
2011-03-17load config files from environment specific locations in core classes, ↵bubbafoley1-1/+10
helpers and libraries
2011-02-06Fixed is_referral to return proper status. Fixes #40Eric Barnes1-1/+5
2011-01-27Automated merge with https://bitbucket.org/ellislab/codeigniterPhil Sturgeon1-30/+65
2011-01-06Altered User agent library so that is_browser(), is_mobile() and is_robot() ↵Phil Sturgeon1-30/+65
can optionally check for a specific browser or mobile device.
2011-01-05Hey look, it's 2011Greg Aker1-1/+1