From 4b9c62980599228f070b401c7673dce8085b0c61 Mon Sep 17 00:00:00 2001
From: Derek Jones The user agent name definitions are located in a config file located at: application/config/user_agents.php. You may add items to the
+ The user agent name definitions are located in a config file located at: application/config/user_agents.php. You may add items to the
various user agent arrays if needed. When the User Agent class is initialized it will attempt to determine whether the user agent browsing your site is
-a web browser, a mobile device, or a robot. It will also gather the platform information if it is available.User Agent Definitions
-Example
@@ -84,7 +84,7 @@ $this->load->library('user_agent');
if ($this->agent->is_browser())
{
- $agent = $this->agent->browser().' '.$this->agent->version();
+ $agent = $this->agent->browser().' '.$this->agent->version();
}
elseif ($this->agent->is_robot())
{
@@ -143,7 +143,7 @@ else
Returns TRUE/FALSE (boolean) if the user agent is a known robot.
Note: The user agent library only contains the most common robot
-definitions. It is not a complete list of bots. There are hundreds of them so searching for each one would not be
+definitions. It is not a complete list of bots. There are hundreds of them so searching for each one would not be
very efficient. If you find that some bots that commonly visit your site are missing from the list you can add them to your
application/config/user_agents.php file.
@@ -176,7 +176,7 @@ very efficient. If you find that some bots that commonly visit your site are mis
$this->agent->agent_string()
-Returns a string containing the full user agent string. Typically it will be something like this:
+Returns a string containing the full user agent string. Typically it will be something like this:
Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.0.4) Gecko/20060613 Camino/1.0.2
--
cgit v1.2.3-24-g4f1b