summaryrefslogtreecommitdiffstats
path: root/user_guide/libraries/user_agent.html
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2007-07-05 01:54:32 +0200
committerDerek Allard <derek.allard@ellislab.com>2007-07-05 01:54:32 +0200
commitc644128fdd49a47d791240e0e38b54cd22412bc5 (patch)
treefd2135d295c103395f5d0bd89056b0e798cfcdb3 /user_guide/libraries/user_agent.html
parent691010e72ec7fb4a05740332a10b5f046a82c666 (diff)
fixed validation errors... about a zillion of em.
Diffstat (limited to 'user_guide/libraries/user_agent.html')
-rw-r--r--user_guide/libraries/user_agent.html11
1 files changed, 4 insertions, 7 deletions
diff --git a/user_guide/libraries/user_agent.html b/user_guide/libraries/user_agent.html
index e9f6b715b..5bb87a76b 100644
--- a/user_guide/libraries/user_agent.html
+++ b/user_guide/libraries/user_agent.html
@@ -81,7 +81,7 @@ various user agent arrays if needed.</p>
<h2>Example</h2>
<p>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.</p>
<code>
@@ -110,9 +110,6 @@ echo $this->agent->platform(); // Platform info (Windows, Linux, Mac, etc.)
</code>
-
-
-<br />
<h1>Function Reference</h1>
@@ -170,7 +167,7 @@ very efficient. If you find that some bots that commonly visit your site are mis
<code>if ($this->agent->accept_lang('en'))<br />
{<br />
&nbsp;&nbsp;&nbsp;&nbsp;echo 'You accept English!';<br />
-}</cod>
+}</code>
<p class="important"><strong>Note:</strong> 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. </p>
@@ -183,7 +180,7 @@ since some browsers do not provide language info, and even among those that do,
<code>if ($this->agent->accept_charset('utf-8'))<br />
{<br />
&nbsp;&nbsp;&nbsp;&nbsp;echo 'You browser supports UTF-8!';<br />
-}</cod>
+}</code>
<p class="important"><strong>Note:</strong> 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. </p>
@@ -201,7 +198,7 @@ Previous Topic:&nbsp;&nbsp;<a href="uri.html">URI Class</a>
<a href="#top">Top of Page</a>&nbsp;&nbsp;&nbsp;&middot;&nbsp;&nbsp;
<a href="../index.html">User Guide Home</a>&nbsp;&nbsp;&nbsp;&middot;&nbsp;&nbsp;
Next Topic:&nbsp;&nbsp;<a href="validation.html">Validation Class</a>
-<p>
+</p>
<p><a href="http://www.codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2007 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p>
</div>