Permalink
Browse files

Updates User Agent detection in client library.

  • Loading branch information...
JB Lebrun
JB Lebrun committed Aug 31, 2018
1 parent 8e7b6b9 commit 5da2eeb58649323838d45d0de35158906b1e67d8
@@ -4,7 +4,7 @@
* @details Engine / Tool Library
* @file engine/lib/tool/client.php.inc
* @author CaMykS Team <camyks.contact@gmail.com>
* @version 1.0.30
* @version 1.0.31
* @date Creation: Jun 2007
* @date Modification: Aug 2018
* @copyright 2007 - 2018 CaMykS Team
@@ -1420,7 +1420,7 @@ function client_getUAInfos($ua=false) {
}
/* check gen computer browsers */
elseif (preg_match('/(Chromium|Netscape|Camino|Minefield|Fennec|Firefox|Galeon|iCab|Konqueror|IEMobile|Shiira|NetNewsWire|Symphony|Lynx|Crazy Browser|UCBrowser|GoBrowser|Cobra|ELinks|HotJava|Tor Browser|Dillo|FortiMail|VSE|MultiZilla|UCWEB|Otter|Netbox|AvantGo|NetFront)(?:\/| )?([a-z0-9\._]*)/', $ua, $matches)) {
elseif (preg_match('/(Chromium|Netscape|Camino|Minefield|Fennec|Firefox|Galeon|iCab|Konqueror|IEMobile|Shiira|NetNewsWire|Symphony|Lynx|Crazy Browser|UCBrowser|GoBrowser|Cobra|ELinks|HotJava|Tor Browser|Dillo|FortiMail|VSE|MultiZilla|UCWEB|Otter|Netbox|AvantGo|NetFront|WhatsApp)(?:\/| )?([a-z0-9\._]*)/i', $ua, $matches)) {
$rep = array('VSE'=>'VSE Link Tester', 'UCWEB' => 'UC Browser', 'NetFront' => 'Access NetFront');
$infos = array_merge(array(
'platform_type' => 'computer',
@@ -4,7 +4,7 @@
* @details Engine / Bot Library
* @file engine/lib/tool/clientBots/Bots.php.inc
* @author CaMykS Team <camyks.contact@gmail.com>
* @version 1.0.12
* @version 1.0.13
* @date Creation: May 2018
* @date Modification: Aug 2018
* @copyright 2018 CaMykS Team
@@ -4216,6 +4216,16 @@ function _client_getKnownBots() {
'engine_url' => '',
);
/* BUFF library - unknown bot */
$knownBots['buff library'] = array(
'platform_type' => 'bot',
'platform_format' => 'desktop',
'bot_title' => 'BUFF library (Unknown bot)',
'bot_url' => '',
'engine_title' => '',
'engine_url' => '',
);
/* return bot list */
return $knownBots;
}
@@ -4,7 +4,7 @@
* @details Engine / Tool Library
* @file engine/lib/tool/clientDevices/Asus.php.inc
* @author CaMykS Team <camyks.contact@gmail.com>
* @version 1.0.4
* @version 1.0.5
* @date Creation: Apr 2018
* @date Modification: Aug 2018
* @copyright 2018 CaMykS Team
@@ -42,6 +42,7 @@ function get_AsusClientDevice($deviceCode='') {
'X007D' => array('platform_model' => 'ZenFone Go', 'platform_year' => 2017),
'X00LD' => array('platform_model' => 'ZenFone 4', 'platform_year' => 2017),
'Z012D' => array('platform_model' => 'ZenFone 3', 'platform_year' => 2016),
'Z017D' => array('platform_model' => 'ZenFone 3', 'platform_year' => 2016),
'Z01GS' => array('platform_model' => 'ZenFone 4 Pro', 'platform_year' => 2017),
'Z01MDA' => array('platform_model' => 'ZenFone 4 Selfie Pro', 'platform_year' => 2017),
@@ -4,7 +4,7 @@
* @details Engine / Tool Library
* @file engine/lib/tool/clientDevices/Huawei.php.inc
* @author CaMykS Team <camyks.contact@gmail.com>
* @version 1.0.10
* @version 1.0.11
* @date Creation: Apr 2018
* @date Modification: Aug 2018
* @copyright 2018 CaMykS Team
@@ -46,6 +46,7 @@ function get_HuaweiClientDevice($deviceCode='') {
'VKY-L29' => array('platform_model' => 'P10 Plus', 'platform_year' => 2017),
'EML-L29' => array('platform_model' => 'P20', 'platform_year' => 2018),
'ANE-LX1' => array('platform_model' => 'P20 Lite', 'platform_year' => 2018),
'ANE-LX3' => array('platform_model' => 'P20 Lite', 'platform_year' => 2018),
'CLT-L29' => array('platform_model' => 'P20 Pro', 'platform_year' => 2018),
'NXT-L09' => array('platform_model' => 'Mate 8', 'platform_year' => 2015),
'NXT-L29' => array('platform_model' => 'Mate 8', 'platform_year' => 2015),
@@ -4,7 +4,7 @@
* @details Engine / Tool Library
* @file engine/lib/tool/clientDevices/Samsung.php.inc
* @author CaMykS Team <camyks.contact@gmail.com>
* @version 1.0.12
* @version 1.0.13
* @date Creation: Apr 2018
* @date Modification: Aug 2018
* @copyright 2018 CaMykS Team
@@ -84,6 +84,7 @@ function get_SamsungClientDevice($deviceCode='') {
'SM-G930F' => array('platform_model' => 'Galaxy S7', 'platform_year' => 2016),
'SM-G930U' => array('platform_model' => 'Galaxy S7', 'platform_year' => 2016),
'SM-G930V' => array('platform_model' => 'Galaxy S7', 'platform_year' => 2016),
'SM-G930W8' => array('platform_model' => 'Galaxy S7', 'platform_year' => 2016),
'SM-G935' => array('platform_model' => 'Galaxy S7 Edge', 'platform_year' => 2016),
'SM-G935F' => array('platform_model' => 'Galaxy S7 Edge', 'platform_year' => 2016),
'SM-G950' => array('platform_model' => 'Galaxy S8', 'platform_year' => 2017),
@@ -4,7 +4,7 @@
* @details Engine / Tool Library
* @file engine/lib/tool/clientDevices/Sony.php.inc
* @author CaMykS Team <camyks.contact@gmail.com>
* @version 1.0.6
* @version 1.0.7
* @date Creation: Apr 2018
* @date Modification: Aug 2018
* @copyright 2018 CaMykS Team
@@ -38,6 +38,8 @@ function get_SonyClientDevice($deviceCode='') {
'E5303' => array('platform_model' => 'Xperia C4', 'platform_year' => 2015),
'E5823' => array('platform_model' => 'Xperia Z5 Compact', 'platform_year' => 2015),
'E6653' => array('platform_model' => 'Xperia Z5', 'platform_year' => 2015),
'F5121' => array('platform_model' => 'Xperia X', 'platform_year' => 2016),
'F5122' => array('platform_model' => 'Xperia X', 'platform_year' => 2016),
'F3111' => array('platform_model' => 'Xperia XA', 'platform_year' => 2016),
'F3311' => array('platform_model' => 'Xperia E5', 'platform_year' => 2016),
'F5121' => array('platform_model' => 'Xperia X', 'platform_year' => 2016),

0 comments on commit 5da2eeb

Please sign in to comment.