Permalink
Browse files

Updates user agent detection in client library.

  • Loading branch information...
JB Lebrun
JB Lebrun committed Nov 30, 2018
1 parent b469230 commit 4070ff0579e720e64ac41ac41b5fb5c158413693
@@ -4,7 +4,7 @@
* @details Engine / Tool Library
* @file engine/lib/tool/clientBots/Tools.php.inc
* @author CaMykS Team <camyks.contact@gmail.com>
* @version 1.0.10
* @version 1.0.11
* @date Creation: May 2018
* @date Modification: Nov 2018
* @copyright 2018 CaMykS Team
@@ -1111,6 +1111,16 @@ function _client_getKnownTools() {
'engine_url' => 'https://discordapp.com',
);
/* Google + snippet */
$knownTools['+https://developers.google.com/+/web/snippet/'] = array(
'platform_type' => 'tool',
'platform_format' => 'desktop',
'tool_title' => 'Google + preview/snippet',
'tool_url' => '',
'engine_title' => 'Google',
'engine_url' => 'https://www.google.com',
);
/* return list */
return $knownTools;
}
@@ -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.7
* @version 1.0.8
* @date Creation: Apr 2018
* @date Modification: Nov 2018
* @copyright 2018 CaMykS Team
@@ -31,19 +31,20 @@ function get_AsusClientDevice($deviceCode='') {
/* Asus phones */
'A500KL' => array('platform_model' => 'ZenFone 5\'', 'platform_year' => 2014),
'A002' => array('platform_model' => 'ZenFone AR', 'platform_year' => 2017),
'A007' => array('platform_model' => 'ZenFone Live', 'platform_year' => 2017),
'T00K' => array('platform_model' => 'ZenFone 5\' Lite', 'platform_year' => 2014),
'Z00ED' => array('platform_model' => 'ZenFone 2', 'platform_year' => 2015),
'Z00ED' => array('platform_model' => 'ZenFone 2', 'platform_year' => 2015),
'Z00LD' => array('platform_model' => 'ZenFone 2 Laser', 'platform_year' => 2015),
'X00DD' => array('platform_model' => 'ZenFone 3 Max', 'platform_year' => 2016),
'X008D' => array('platform_model' => 'ZenFone 3 Max', 'platform_year' => 2016),
'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),
'X00HD' => array('platform_model' => 'ZenFone 4', 'platform_year' => 2014),
'X007D' => array('platform_model' => 'ZenFone Go', 'platform_year' => 2017),
'A002' => array('platform_model' => 'ZenFone AR', 'platform_year' => 2017),
'A007' => array('platform_model' => 'ZenFone Live', 'platform_year' => 2017),
'X00LD' => array('platform_model' => 'ZenFone 4', 'platform_year' => 2017),
'X00HD' => array('platform_model' => 'ZenFone 4', 'platform_year' => 2017),
'X00ID' => array('platform_model' => 'ZenFone 4 Max', 'platform_year' => 2017),
'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/Motorola.php.inc
* @author CaMykS Team <camyks.contact@gmail.com>
* @version 1.0.3
* @version 1.0.4
* @date Creation: Apr 2018
* @date Modification: Nov 2018
* @copyright 2018 CaMykS Team
@@ -34,6 +34,7 @@ function get_MotorolaClientDevice($deviceCode='') {
'Moto G' => array('platform_model' => 'Moto G', 'platform_year' => 2013),
'G3' => array('platform_model' => 'Moto G (3rd Gen)', 'platform_year' => 2015),
'G (4)' => array('platform_model' => 'Moto G (4th Gen)', 'platform_year' => 2016),
'G (5S)' => array('platform_model' => 'Moto G5S', 'platform_year' => 2017),
'x4' => array('platform_model' => 'Moto X4', 'platform_year' => 2017),
'RAZR HD' => array('platform_model' => 'Droid Razr HD', 'platform_year' => 2012),
'Droid' => array('platform_model' => 'Droid', 'platform_year' => 2009),
@@ -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.22
* @version 1.0.23
* @date Creation: Apr 2018
* @date Modification: Nov 2018
* @copyright 2018 CaMykS Team
@@ -44,6 +44,7 @@ function get_SamsungClientDevice($deviceCode='') {
'SM-P550' => array('platform_model' => 'Galaxy Tab A', 'platform_type' => 'tablet', 'platform_format' => 'tablet', 'platform_year' => 2015),
'SM-T280' => array('platform_model' => 'Galaxy Tab A 7.0', 'platform_type' => 'tablet', 'platform_format' => 'tablet', 'platform_year' => 2016),
'SM-T285' => array('platform_model' => 'Galaxy Tab A 7.0', 'platform_type' => 'tablet', 'platform_format' => 'tablet', 'platform_year' => 2016),
'SM-T585' => array('platform_model' => 'Galaxy Tab A 10.1', 'platform_type' => 'tablet', 'platform_format' => 'tablet', 'platform_year' => 2016),
'SM-T560' => array('platform_model' => 'Galaxy Tab E', 'platform_type' => 'tablet', 'platform_format' => 'tablet', 'platform_year' => 2015),
'SM-T561' => array('platform_model' => 'Galaxy Tab E', 'platform_type' => 'tablet', 'platform_format' => 'tablet', 'platform_year' => 2015),
'SM-T580' => array('platform_model' => 'Galaxy Tab S8', 'platform_type' => 'tablet', 'platform_format' => 'tablet', 'platform_year' => 2016),
@@ -106,6 +107,7 @@ function get_SamsungClientDevice($deviceCode='') {
'SM-G960W' => array('platform_model' => 'Galaxy S9', 'platform_year' => 2018),
'SM-G9600' => array('platform_model' => 'Galaxy S9', 'platform_year' => 2018),
'SM-G965F' => array('platform_model' => 'Galaxy S9+', 'platform_year' => 2018),
'SM-G965U' => array('platform_model' => 'Galaxy S9+', 'platform_year' => 2018),
'SM-G313HZ' => array('platform_model' => 'Galaxy V', 'platform_year' => 2014),
'SM-A300F' => array('platform_model' => 'Galaxy A3', 'platform_year' => 2014),
'SM-A300FU' => array('platform_model' => 'Galaxy A3', 'platform_year' => 2014),
@@ -119,6 +121,7 @@ function get_SamsungClientDevice($deviceCode='') {
'SM-A510F' => array('platform_model' => 'Galaxy A5', 'platform_year' => 2016),
'SM-A5100' => array('platform_model' => 'Galaxy A5', 'platform_year' => 2016),
'SM-A520F' => array('platform_model' => 'Galaxy A5', 'platform_year' => 2017),
'SM-A600FN' => array('platform_model' => 'Galaxy A6', 'platform_year' => 2018),
'SM-A605FN' => array('platform_model' => 'Galaxy A6+', 'platform_year' => 2018),
'SM-A700F' => array('platform_model' => 'Galaxy A7', 'platform_year' => 2015),
'SM-A700L' => array('platform_model' => 'Galaxy A7', 'platform_year' => 2015),
@@ -221,6 +224,7 @@ function get_SamsungClientDevice($deviceCode='') {
'SM-N930T' => array('platform_model' => 'Galaxy Note 7', 'platform_year' => 2016),
'SM-N950' => array('platform_model' => 'Galaxy Note 8', 'platform_year' => 2017),
'SM-N950F' => array('platform_model' => 'Galaxy Note 8', 'platform_year' => 2017),
'SM-N960F' => array('platform_model' => 'Galaxy Note 9', 'platform_year' => 2018),
'SM-B313E' => array('platform_model' => 'Galaxy Metro 313', 'platform_year' => 2017),
'SM-G350E' => array('platform_model' => 'Galaxy Star 2 Plus', 'platform_year' => 2014),
'SM-G130E' => array('platform_model' => 'Galaxy Star 2 Plus', 'platform_year' => 2014),

0 comments on commit 4070ff0

Please sign in to comment.