Skip to content

Commit

Permalink
Updates User Agent detection.
Browse files Browse the repository at this point in the history
  • Loading branch information
JB Lebrun committed Jun 12, 2018
1 parent 54fe3b3 commit 013b0d1
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 13 deletions.
24 changes: 19 additions & 5 deletions engine/lib/tool/clientDevices/Archos.php.inc
Expand Up @@ -4,9 +4,9 @@
* @details Engine / Tool Library
* @file engine/lib/tool/clientDevices/Archos.php.inc
* @author CaMykS Team <camyks.contact@gmail.com>
* @version 1.0.2
* @version 1.0.3
* @date Creation: Apr 2018
* @date Modification: May 2018
* @date Modification: Jun 2018
* @copyright 2018 CaMykS Team
* @note This program is distributed as is - WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Expand All @@ -20,9 +20,23 @@
*/
function get_ArchosClientDevice($deviceCode='') {
$deviceList = array(
'45BHE' => array('platform_model' => 'Helium 45b', 'platform_year' => 2015),
'50BHE' => array('platform_model' => 'Helium 50b', 'platform_year' => 2015),
'50e Neon' => array('platform_model' => '50e Neon', 'platform_year' => 2016),
'45BHE' => array('platform_model' => 'Helium 45b', 'platform_year' => 2015),
'50BHE' => array('platform_model' => 'Helium 50b', 'platform_year' => 2015),
'50e Neon' => array('platform_model' => '50e Neon', 'platform_year' => 2016),

'Access 40 3G' => array('platform_model' => 'Access 40 3G', 'platform_year' => 2017),
'Access 45 3G' => array('platform_model' => 'Access 45 3G', 'platform_year' => 2017),
'Access 50 Color 3G' => array('platform_model' => 'Access 50 Color 3G', 'platform_year' => 2017),
'Access 50 4G' => array('platform_model' => 'Access 50 4G', 'platform_year' => 2017),
'Access 55 3G' => array('platform_model' => 'Access 55 3G', 'platform_year' => 2017),
'Sense 47 X' => array('platform_model' => 'Sense 47X', 'platform_year' => 2017),
'Sense 50 DC' => array('platform_model' => 'Sense 50DC', 'platform_year' => 2017),
'Sense 50 X' => array('platform_model' => 'Sense 50X', 'platform_year' => 2017),
'Sense 55 S' => array('platform_model' => 'Sense 50S', 'platform_year' => 2017),
'Sense 55 DC' => array('platform_model' => 'Sense 55DC', 'platform_year' => 2017),
'Core 50' => array('platform_model' => 'Core 50', 'platform_year' => 2017),
'Core 50 Lite' => array('platform_model' => 'Core 50 Lite', 'platform_year' => 2017),
'Core 50P' => array('platform_model' => 'Core 50P', 'platform_year' => 2017),
);

/* Check for returning list */
Expand Down
17 changes: 9 additions & 8 deletions engine/lib/tool/clientDevices/Lenovo.php.inc
Expand Up @@ -4,7 +4,7 @@
* @details Engine / Tool Library
* @file engine/lib/tool/clientDevices/Lenovo.php.inc
* @author CaMykS Team <camyks.contact@gmail.com>
* @version 1.0.3
* @version 1.0.4
* @date Creation: Apr 2018
* @date Modification: Jun 2018
* @copyright 2018 CaMykS Team
Expand All @@ -21,15 +21,16 @@
function get_LenovoClientDevice($deviceCode='') {
$deviceList = array(
/* Lenovo tablets */
'A2107A-H' => array('platform_model' => 'IdeaTab A2107A-H', 'platform_type' => 'tablet', 'platform_format' => 'tablet', 'plateform_year' => 2013),
'B8000-F' => array('platform_model' => 'Yoga', 'platform_type' => 'tablet', 'platform_format' => 'tablet', 'plateform_year' => 2013),
'YB1-X90F' => array('platform_model' => 'Yoga Book', 'platform_type' => 'tablet', 'platform_format' => 'tablet', 'plateform_year' => 2016),
'Tablet 2-830F' => array('platform_model' => 'Yoga Tab 2', 'platform_type' => 'tablet', 'platform_format' => 'tablet', 'plateform_year' => 2014),
'A2107A-H' => array('platform_model' => 'IdeaTab A2107A-H', 'platform_type' => 'tablet', 'platform_format' => 'tablet', 'platform_year' => 2013),
'B8000-F' => array('platform_model' => 'Yoga', 'platform_type' => 'tablet', 'platform_format' => 'tablet', 'platform_year' => 2013),
'Tablet 2-830F' => array('platform_model' => 'Yoga Tab 2', 'platform_type' => 'tablet', 'platform_format' => 'tablet', 'platform_year' => 2014),
'PB1-770P' => array('platform_model' => 'PHAB Plus', 'platform_type' => 'tablet', 'platform_format' => 'tablet', 'platform_year' => 2015),
'YB1-X90F' => array('platform_model' => 'Yoga Book', 'platform_type' => 'tablet', 'platform_format' => 'tablet', 'platform_year' => 2016),

/* Lenovo phones */
'P70-A' => array('platform_model' => 'P70', 'plateform_year' => 2015),
'A2010-a' => array('platform_model' => 'A2010', 'plateform_year' => 2015),
'K53a48' => array('platform_model' => 'K6 Note', 'plateform_year' => 2016),
'P70-A' => array('platform_model' => 'P70', 'platform_year' => 2015),
'A2010-a' => array('platform_model' => 'A2010', 'platform_year' => 2015),
'K53a48' => array('platform_model' => 'K6 Note', 'platform_year' => 2016),
);

/* Check for returning list */
Expand Down

0 comments on commit 013b0d1

Please sign in to comment.