From c644128fdd49a47d791240e0e38b54cd22412bc5 Mon Sep 17 00:00:00 2001
From: Derek Allard
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. +a web browser, a mobile device, or a robot. It will also gather the platform information if it is available.
@@ -110,9 +110,6 @@ echo $this->agent->platform(); // Platform info (Windows, Linux, Mac, etc.)
-
-
-if ($this->agent->accept_lang('en'))
{
echo 'You accept English!';
-}
+}
Note: This function is not typically very reliable since some browsers do not provide language info, and even among those that do, it is not always accurate.
@@ -183,7 +180,7 @@ since some browsers do not provide language info, and even among those that do,if ($this->agent->accept_charset('utf-8'))
{
echo 'You browser supports UTF-8!';
-}
+}
Note: This function is not typically very reliable since some browsers do not provide character-set info, and even among those that do, it is not always accurate.
@@ -201,7 +198,7 @@ Previous Topic: URI Class Top of Page · User Guide Home · Next Topic: Validation Class -+
CodeIgniter · Copyright © 2007 · Ellislab, Inc.
-- cgit v1.2.3-24-g4f1b