From 013b0d19ce22ebb3ea6e8e946609436c69e12066 Mon Sep 17 00:00:00 2001 From: JB Lebrun Date: Tue, 12 Jun 2018 09:57:11 +0200 Subject: [PATCH] Updates User Agent detection. --- engine/lib/tool/clientDevices/Archos.php.inc | 24 ++++++++++++++++---- engine/lib/tool/clientDevices/Lenovo.php.inc | 17 +++++++------- 2 files changed, 28 insertions(+), 13 deletions(-) diff --git a/engine/lib/tool/clientDevices/Archos.php.inc b/engine/lib/tool/clientDevices/Archos.php.inc index ec1889fa..bf26be92 100755 --- a/engine/lib/tool/clientDevices/Archos.php.inc +++ b/engine/lib/tool/clientDevices/Archos.php.inc @@ -4,9 +4,9 @@ * @details Engine / Tool Library * @file engine/lib/tool/clientDevices/Archos.php.inc * @author CaMykS Team - * @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. @@ -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 */ diff --git a/engine/lib/tool/clientDevices/Lenovo.php.inc b/engine/lib/tool/clientDevices/Lenovo.php.inc index f4ec4603..2781d6de 100755 --- a/engine/lib/tool/clientDevices/Lenovo.php.inc +++ b/engine/lib/tool/clientDevices/Lenovo.php.inc @@ -4,7 +4,7 @@ * @details Engine / Tool Library * @file engine/lib/tool/clientDevices/Lenovo.php.inc * @author CaMykS Team - * @version 1.0.3 + * @version 1.0.4 * @date Creation: Apr 2018 * @date Modification: Jun 2018 * @copyright 2018 CaMykS Team @@ -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 */