From ac27fbeee734776ed524a067848c8df148c782a7 Mon Sep 17 00:00:00 2001
From: Derek Allard
Date: Fri, 16 May 2008 18:09:52 +0000
Subject: Considerably expanded list of mobile user-agents in
config/user_agents.php.
---
system/application/config/user_agents.php | 83 ++++++++++++++++++++++++++-----
user_guide/changelog.html | 5 +-
2 files changed, 74 insertions(+), 14 deletions(-)
diff --git a/system/application/config/user_agents.php b/system/application/config/user_agents.php
index 27a9d0c76..61e04715a 100644
--- a/system/application/config/user_agents.php
+++ b/system/application/config/user_agents.php
@@ -87,18 +87,77 @@ $mobiles = array(
'motorola' => 'Motorola'
);
-// There are hundreds of bots but these are the most common.
-$robots = array(
- 'googlebot' => 'Googlebot',
- 'msnbot' => 'MSNBot',
- 'slurp' => 'Inktomi Slurp',
- 'yahoo' => 'Yahoo',
- 'askjeeves' => 'AskJeeves',
- 'fastcrawler' => 'FastCrawler',
- 'infoseek' => 'InfoSeek Robot 1.0',
- 'lycos' => 'Lycos'
- );
-
+$mobiles = array(
+ // Phones and Manufacturers
+ 'motorola' => "Motorola",
+ 'nokia' => "Nokia",
+ 'palm' => "Palm",
+ 'iphone' => "Apple iPhone",
+ 'ipod' => "Apple iPod Touch",
+ 'sony' => "Sony Ericsson",
+ 'ericsson' => "Sony Ericsson",
+ 'blackberry' => "BlackBerry",
+ 'cocoon' => "O2 Cocoon",
+ 'blazer' => "Treo",
+ 'lg' => "LG",
+ 'amoi' => "Amoi",
+ 'xda' => "XDA",
+ 'mda' => "MDA",
+ 'vario' => "Vario",
+ 'htc' => "HTC",
+ 'samsung' => "Samsung",
+ 'sharp' => "Sharp",
+ 'sie-' => "Siemens",
+ 'alcatel' => "Alcatel",
+ 'benq' => "BenQ",
+ 'ipaq' => "HP iPaq",
+ 'mot-' => "Motorola",
+ 'playstation portable' => "PlayStation Portable",
+ 'hiptop' => "Danger Hiptop",
+ 'nec-' => "NEC",
+ 'panasonic' => "Panasonic",
+ 'philips' => "Philips",
+ 'sagem' => "Sagem",
+ 'sanyo' => "Sanyo",
+ 'spv' => "SPV",
+ 'zte' => "ZTE",
+ 'sendo' => "Sendo",
+
+ // Operating Systems
+ 'symbian' => "Symbian",
+ 'elaine' => "Palm",
+ 'palm' => "Palm",
+ 'series60' => "Symbian S60",
+ 'windows ce' => "Windows CE",
+
+ // Browsers
+ 'obigo' => "Obigo",
+ 'netfront' => "Netfront Browser",
+ 'openwave' => "Openwave Browser",
+ 'mobilexplorer' => "Mobile Explorer",
+ 'operamini' => "Opera Mini",
+ 'opera mini' => "Opera Mini",
+
+ // Other
+ 'digital paths' => "Digital Paths",
+ 'avantgo' => "AvantGo",
+ 'xiino' => "Xiino",
+ 'novarra' => "Novarra Transcoder",
+ 'vodafone' => "Vodafone",
+ 'docomo' => "NTT DoCoMo",
+ 'o2' => "O2",
+
+ // Fallback
+ 'mobile' => "Generic Mobile",
+ 'wireless' => "Generic Mobile",
+ 'j2me' => "Generic Mobile",
+ 'midp' => "Generic Mobile",
+ 'cldc' => "Generic Mobile",
+ 'up.link' => "Generic Mobile",
+ 'up.browser' => "Generic Mobile",
+ 'smartphone' => "Generic Mobile",
+ 'cellphone' => "Generic Mobile"
+ );
/* End of file user_agents.php */
diff --git a/user_guide/changelog.html b/user_guide/changelog.html
index 1199149a6..2188c1203 100644
--- a/user_guide/changelog.html
+++ b/user_guide/changelog.html
@@ -75,6 +75,7 @@ SVN Revision: not currently released
- Added ability to use xss_clean() to test images for XSS, useful for upload security.
- Improved security in xss_clean() for the Opera family of browsers.
+ - Considerably expanded list of mobile user-agents in config/user_agents.php.
@@ -84,8 +85,8 @@ SVN Revision: not currently released
- Amended fixes for bug (#3419) with parsing DSN database connections.
- - Fixed a syntax error in upload_lang.php
- - Fixed a bug (#4542) with a regular expression in the Image library
+ - Fixed a syntax error in upload_lang.php.
+ - Fixed a bug (#4542) with a regular expression in the Image library.
Version 1.6.2
--
cgit v1.2.3-24-g4f1b